Open alexge233 opened 6 years ago
https://github.com/raulmur/ORB_SLAM2/issues/202#issuecomment-263280081 This resolved this problem in my case. I had other issues after that.
Linking CXX shared library lib/libORB_SLAM2.so
/usr/bin/ld: cannot find -lnvToolsExt
collect2: error: ld returned 1 exit status
CMakeFiles/ORB_SLAM2.dir/build.make:1957: recipe for target 'lib/libORB_SLAM2.so' failed
make[2]: *** [lib/libORB_SLAM2.so] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/ORB_SLAM2.dir/all' failed
make[1]: *** [CMakeFiles/ORB_SLAM2.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
This resolved this problem in my case. I had other issues after that.
Linking CXX shared library lib/libORB_SLAM2.so /usr/bin/ld: cannot find -lnvToolsExt collect2: error: ld returned 1 exit status CMakeFiles/ORB_SLAM2.dir/build.make:1957: recipe for target 'lib/libORB_SLAM2.so' failed make[2]: [lib/libORB_SLAM2.so] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/ORB_SLAM2.dir/all' failed make[1]: [CMakeFiles/ORB_SLAM2.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2
did you have solved it?
This resolved this problem in my case. I had other issues after that.
Linking CXX shared library lib/libORB_SLAM2.so /usr/bin/ld: cannot find -lnvToolsExt collect2: error: ld returned 1 exit status CMakeFiles/ORB_SLAM2.dir/build.make:1957: recipe for target 'lib/libORB_SLAM2.so' failed make[2]: [lib/libORB_SLAM2.so] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/ORB_SLAM2.dir/all' failed make[1]: [CMakeFiles/ORB_SLAM2.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2
did you have solved it?
You should find libnvToolsExt.so
and copy/link it to your library path.
In my case, the shared library path is /usr/local/cuda-9.0/targets/aarch64-linux/lib/libnvToolsExt.so
Hi @yunchih , @Halcao . I had a similar error with eigen , here is the error log:
-- Configuring incomplete, errors occurred!
See also "/home/mad/ORB_SLAM2/build/CMakeFiles/CMakeOutput.log".
See also "/home/mad/ORB_SLAM2/build/CMakeFiles/CMakeError.log".
[ 3%] Linking CXX shared library ../lib/libORB_SLAM2.so
/usr/bin/ld: cannot find -lEigen3::Eigen
collect2: error: ld returned 1 exit status
CMakeFiles/ORB_SLAM2.dir/build.make:601: recipe for target '../lib/libORB_SLAM2.so' failed
make[2]: *** [../lib/libORB_SLAM2.so] Error 1
CMakeFiles/Makefile2:252: recipe for target 'CMakeFiles/ORB_SLAM2.dir/all' failed
make[1]: *** [CMakeFiles/ORB_SLAM2.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
I tried with all the solutions in this issue it did not work any help how to solve this error. thank you in advance.
Hi,
Thanks for the code! Sadly it fails to build with an Eigen static assertion error: