librealsense: librealsense make -j5 error
HI everyone , I have a problem compiling librealsense I used jetson nano Xvaier nx
[ 2%] Built target libcurl
[ 3%] Built target fw
[ 8%] Built target realsense-file
[ 41%] Built target realsense2
[ 46%] Built target pybackend2
[ 50%] Built target pyrealsense2
[ 55%] Built target glfw
[ 59%] Built target realsense2-gl
[ 59%] Built target rs-hello-realsense
[ 60%] Built target rs-software-device
[ 61%] Built target rs-capture
[ 61%] Built target rs-callback
[ 62%] Built target rs-save-to-disk
[ 62%] Built target rs-multicam
[ 63%] Built target rs-pointcloud
[ 64%] Built target rs-align
[ 65%] Built target rs-align-advanced
[ 65%] Built target rs-sensor-control
[ 66%] Built target rs-measure
[ 66%] Linking C executable rs-depth
…/…/…/librealsense2.so.2.53.1: undefined reference to std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >::basic_stringstream()@GLIBCXX_3.4.26' ../../../librealsense2.so.2.53.1: undefined reference to
std::__throw_bad_array_new_length()@GLIBCXX_3.4.29’
…/…/…/librealsense2.so.2.53.1: undefined reference to `std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::basic_ostringstream()@GLIBCXX_3.4.26’
collect2: error:ld return 1
examples/C/depth/CMakeFiles/rs-depth.dir/build.make:101: recipe for target ‘examples/C/depth/rs-depth’ failed
make[2]: *** [examples/C/depth/rs-depth] Error 1
CMakeFiles/Makefile2:1221: recipe for target ‘examples/C/depth/CMakeFiles/rs-depth.dir/all’ failed
make[1]: *** [examples/C/depth/CMakeFiles/rs-depth.dir/all] Error 2
Makefile:129: recipe for target ‘all’ failed
make: *** [all] Error 2
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 20
Your English is good, don’t worry. 😃 If you would prefer to use your native language though then that is okay as I can translate.
When building with CMake, build problems may occur if your gcc version is older than 5.0. You can check your current gcc version with the command gcc -v
https://github.com/IntelRealSense/librealsense/blob/master/doc/installation.md#building-librealsense2-sdk