-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
librealsense make -j5 error #11525
Comments
Hi @tsaiboyu If a build fails when using a '-j' value (which accelerates build time by enabling the use of multiple CPU threads) then you can simply use make - which has a longer build time but can be more stable by having a lower risk of a random crash occurring during the build. |
@MartyG-RealSense HI i used "make -" get same result |
Before, i have deleted build and mkdir build again |
Can you link me to the instructions that you are using to build librealsense from source code, please? For example, is it the Jetson-specific instructions at the link below. |
Hi @tsaiboyu Do you require further assistance with this case, please? Thanks! |
@MartyG-RealSense i'm Taiwanese,my english is not good |
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 |
Hi @MartyG-RealSense |
At #6964 (comment) there is an alternative set of instructions for building from source code on Jetson that works well on different Jetson models including Nano and NX. |
ok,I try it! |
HI @MartyG-RealSense |
It may be worth trying the installation script installLibrealsense provided by the website JetsonHacks instead to build the SDK from packages instead of compiling source code. https://jetsonhacks.com/2019/12/22/install-realsense-camera-in-5-minutes-jetson-nano/ |
@MartyG-RealSense I need "pyrealsense2 module" ,is there any other way to get it? |
Using the JetsonHacks buildLibrealsense script to build librealsense from source code instead of packages includes the instruction to build the pyrealsense2 wrapper. https://github.com/jetsonhacks/installRealSenseSDK#buildlibrealsensesh |
Hi @tsaiboyu Do you require further assistance with this case, please? Thanks! |
@MartyG-RealSense So sad , still have problem
is not able to compile a simple test program. It fails with the following output:
CMake will not be able to correctly generate this project. -- Configuring incomplete, errors occurred! real 0m0.007s real 0m0.008s |
There was a past case of that /usr/local/cuda/bin/nvcc error at #7229 |
Hi @tsaiboyu Was the comment above useful to you, please? Thanks! |
Hi @tsaiboyu Do you require further assistance with this case, please? Thanks! |
Case closed due to no further comments received. |
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, std::allocator >::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
The text was updated successfully, but these errors were encountered: