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_make error : /usr/bin/ld: cannot find -loctomap /usr/bin/ld: cannot find -loctomath #5

Open
Awesome1995 opened this issue Aug 13, 2018 · 3 comments

Comments

@Awesome1995
Copy link

Hi Ayushgaud,

thank you for your awesome work. I had some problem when catkin_make the code in my computer,ubuntu16.04 LTS + Kinetic ,and fcl library that I installed is https://github.com/flexible-collision-library/fcl/tree/fcl-0.5 . But when catkin_make, it encountered the following error:
image
and I have tried several ways to fix it ,But failed. Can you tell me what should I do to make it works? Thank you so much!

best regards

@Awesome1995
Copy link
Author

and I found that the two files : liboctomap.so and liboctomath.so are under the path (in my computer): /opt/ros/kinetic/lib,so I even add these follow lines in CMakeLists.txt:
`set(OCTOMAP_INCLUDE_DIRS "/opt/ros/kinetic/include")

set(OCTOMAP_LIBRARY_DIRS "/opt/ros/kinetic/lib")
set(OCTOMAP_LIBRARIES
"/opt/ros/kinetic/lib/liboctomap.so"
"/opt/ros/kinetic/lib/liboctomath.so"
)`
to make sure that the path_planning_node can find the *.so ,But the errors above is still exit.
look forward to your reply! thank you.

@ayushgaud
Copy link
Owner

Hi @Awesome1995
I think there might be some issue with your octomap package installation you can try reinstalling ros-kinetic-octomap and if that doesn't work then maybe try sudo apt install liboctomap-dev. I hope this helps but if you still face any issues feel free to ask!

@Awesome1995
Copy link
Author

Hi, @ayushgaud
I reinstalled ros-kinetic-octomap,and it didn't work. But after I installed the liboctomap-dev ,amazing, just as you said that it works. Now,I can finish the catkin_make. Thank you so much for your timely help!

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