Open aswathselvam opened 4 years ago
Sorry for the late reply. I am not sure, whether you have used the provided build script? It seems that you did not copy the generated liborb_slam2_lib.so
file to the system directory. Check the build_catkin.sh
script - there is an command making the file visible
during compilation:
sudo cp liborb_slam2_lib.so /usr/local/lib
I've just updated the build script and the readme. The installation process should finish flawlessly now.
I would appreciate the feedback, whether the package installs on your machine.
How do i resolve the errors?
Workspace configuration appears valid. [build] Found '2' packages in 0.0 seconds.
[build] Package table is up to date.
Starting >>> orb_slam2_lib
Starting >>> orb_slam2_ros
Finished <<< orb_slam2_lib [ 0.6 seconds ]
Errors << orb_slam2_ros:make /home/aswath/occupancy_ws/logs/orb_slam2_ros/build.make.002.log /usr/bin/ld: cannot find -lorb_slam2_lib collect2: error: ld returned 1 exit status make[2]: [/home/aswath/occupancy_ws/devel/.private/orb_slam2_ros/lib/orb_slam2_ros/Mono] Error 1 make[1]: [CMakeFiles/Mono.dir/all] Error 2 make[1]: Waiting for unfinished jobs.... /usr/bin/ld: cannot find -lorb_slam2_lib collect2: error: ld returned 1 exit status make[2]: [/home/aswath/occupancy_ws/devel/.private/orb_slam2_ros/lib/orb_slam2_ros/RGBD] Error 1 make[1]: [CMakeFiles/RGBD.dir/all] Error 2 /usr/bin/ld: cannot find -lorb_slam2_lib collect2: error: ld returned 1 exit status make[2]: [/home/aswath/occupancy_ws/devel/.private/orb_slam2_ros/lib/orb_slam2_ros/Stereo] Error 1 make[1]: [CMakeFiles/Stereo.dir/all] Error 2 make: [all] Error 2 cd /home/aswath/occupancy_ws/build/orb_slam2_ros; catkin build --get-env orb_slam2_ros | catkin env -si /usr/bin/make --jobserver-fds=6,7 -j; cd -