librealsense: Makefile:129: recipe for target 'all' failed


Required Info
Camera Model D400
Firmware Version
Operating System & Version Linux (Ubuntu 18.04)
Kernel Version (Linux Only) 5.3.0-1017-raspi2
Platform Raspberry Pi
SDK Version 2 }
Language {NA }
Segment

Issue Description

Will not install on RPI3b

c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
CMakeFiles/realsense2.dir/build.make:782: recipe for target 'CMakeFiles/realsense2.dir/src/media/ros/ros_reader.cpp.o' failed
make[2]: *** [CMakeFiles/realsense2.dir/src/media/ros/ros_reader.cpp.o] Error 4
CMakeFiles/Makefile2:68: recipe for target 'CMakeFiles/realsense2.dir/all' failed
make[1]: *** [CMakeFiles/realsense2.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 48

Most upvoted comments

There is a “backend” installation process that requires an internet connection for the build process but is not dependent on Linux versions or kernel versions and does not require patching. The steps for installation with this method are below:

  1. Go to the Librealsense root directory and create a Build folder, and then change to that created folder using the command below:

mkdir build && cd build

  1. Whilst in the Build folder, run the CMake command below to install Librealsense:

cmake …/ -DFORCE_RSUSB_BACKEND=true -DCMAKE_BUILD_TYPE=release -DBUILD_EXAMPLES=true -DBUILD_GRAPHICAL_EXAMPLES=true

If it helps any I did successfully build and run librealsense on Ubuntu 18.04 on the Rpi4. I used the 64-bit link from here: https://ubuntu.com/download/raspberry-pi

I don’t recall having to do anything super special, but the normal pi installer never worked for me. I either use Balena Etcher or win32diskimager. Then of course setting up wifi and ssh manually and getting raspi-config and wiringpi from a shady source (https://launchpad.net/~ubuntu-pi-flavour-makers/+archive/ubuntu/ppa). I used the xubuntu desktop and had the pose, depth, and a few other examples running.

No problem at all. Thanks for the update!

The joy of the smell of freshly unboxed circuit board. 😃