goodrobots / maverick

UAV Autonomous Systems Management
https://goodrobots.github.io/maverick/
MIT License
175 stars 61 forks source link

orb_slam2 install doesn't work #313

Closed fnoop closed 7 years ago

fnoop commented 7 years ago
[dev] [mav@fnoop-joule ~/software/orb_slam2]$ Examples/Monocular/mono_kitti Vocabulary/ORBvoc.txt Examples/Monocular/KITTI04-12.yaml ~/data/08/
Examples/Monocular/mono_kitti: error while loading shared libraries: libORB_SLAM2.so: cannot open shared object file: No such file or directory
[dev] [mav@fnoop-joule ~/software/orb_slam2]$ ldd Examples/Monocular/mono_kitti
    linux-vdso.so.1 =>  (0x00007fff58bd0000)
    libORB_SLAM2.so => not found
[dev] [mav@fnoop-joule ~/software/orb_slam2]$ echo $LD_LIBRARY_PATH
/srv/maverick/software/gstreamer/lib:/srv/maverick/software/opencv/lib:/srv/maverick/software/aruco/lib:/opt/ros/kinetic/lib
[dev] [mav@fnoop-joule ~/software/orb_slam2]$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/srv/maverick/software/orb_slam2/lib
[dev] [mav@fnoop-joule ~/software/orb_slam2]$Examples/Monocular/mono_kitti Vocabulary/ORBvoc.txt Examples/Monocular/KITTI04-12.yaml ~/data/08/
Examples/Monocular/mono_kitti: error while loading shared libraries: libDBoW2.so: cannot open shared object file: No such file or directory
[dev] [mav@fnoop-joule ~/software/orb_slam2]$ find /srv/maverick/software/ -name 'libDBoW2.so'
fnoop commented 7 years ago

Ok just build in place rather than trying to install it. orb_slam2 just isn't geared up for proper installation, it has dependent 3rd party libraries included, a build script and it sets rpath which then ignores ldconfig. CMAKE_INSTALL_RPATH is ignored.

fnoop commented 7 years ago

orb_slam2 install broken, fix and add both samples and ros builds