raulmur / ORB_SLAM2

Real-Time SLAM for Monocular, Stereo and RGB-D Cameras, with Loop Detection and Relocalization Capabilities
Other
9.48k stars 4.7k forks source link

/usr/bin/ld: Cannot find -lEigen3::Eigen #1096

Open SrBlank opened 1 year ago

SrBlank commented 1 year ago

Hello,

I am running into this error trying to build ORB_SLAM2.

[ 70%] Linking CXX shared library ../lib/libORB_SLAM2_CUDA.so
/usr/bin/ld: cannot find -lEigen3::Eigen
collect2: error: ld returned 1 exit status
CMakeFiles/ORB_SLAM2_CUDA.dir/build.make:682: recipe for target '../lib/libORB_SLAM2_CUDA.so' failed
make[2]: *** [../lib/libORB_SLAM2_CUDA.so] Error 1
CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/ORB_SLAM2_CUDA.dir/all' failed
make[1]: *** [CMakeFiles/ORB_SLAM2_CUDA.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

There have already been a numerous amount of lines i've had to to get this far such as issue #41 in orb_slam2_ros.

Please help if you are able to, thank you!