Skip to content
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

catkin build error #4

Open
aswathselvam opened this issue May 5, 2020 · 1 comment
Open

catkin build error #4

aswathselvam opened this issue May 5, 2020 · 1 comment

Comments

@aswathselvam
Copy link

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 -

@rayvburn
Copy link
Owner

rayvburn commented Jun 5, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants