path_planning icon indicating copy to clipboard operation
path_planning copied to clipboard

catkin_make error : /usr/bin/ld: cannot find -loctomap /usr/bin/ld: cannot find -loctomath

Open Awesome1995 opened this issue 7 years ago • 3 comments

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 avatar Aug 13 '18 11:08 Awesome1995

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.

Awesome1995 avatar Aug 13 '18 13:08 Awesome1995

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!

ayushgaud avatar Aug 14 '18 16:08 ayushgaud

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!

Awesome1995 avatar Aug 15 '18 09:08 Awesome1995