compiler error while processing libcostmap_2d.so
Hello, I have been working with navigation stack for a while without any problem but now, i am facing compiler error written below
make[2]: *** No rule to make target '/usr/lib/x86_64-linux-gnu/libproj.so', needed by '/home/serhatsony/catkin_ws/devel/lib/libcostmap_2d.so'. Stop.
CMakeFiles/Makefile2:20521: recipe for target 'navigation/costmap_2d/CMakeFiles/costmap_2d.dir/all' failed
make[1]: *** [navigation/costmap_2d/CMakeFiles/costmap_2d.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make[2]: *** No rule to make target '/usr/lib/x86_64-linux-gnu/libproj.so', needed by '/home/serhatsony/catkin_ws/devel/lib/libcostmap_2d.so'. Stop.
CMakeFiles/Makefile2:20521: recipe for target 'navigation/costmap_2d/CMakeFiles/costmap_2d.dir/all' failed
make[1]: *** [navigation/costmap_2d/CMakeFiles/costmap_2d.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
I guess, the problem is related to 'some update situtation'. I had executed these two commands: sudo apt-get update sudo apt-get upgrade
any relationship? Or how can i solve this problem? Thank you! UBUNTU 16.04 - Kinetic (I have uploaded directly navigation stack with the branch of kinetic-devel )
Hello Jarvis again, after doing "apt-get update/upgrade", i am still facing the same problem. I saw the updates on Kinetic Kame as you mentioned in your comment and even upgraded my system too. But the problem keeps resisting. What should i do? Can you explain the solution with a little bit of explanation please? Or what might be the problem? I am new in the Ros in fact.
Thank you!
@serhat please do not post answers that are not actually answers. I've moved your answer into a question comment. First, I'd figure out what versions of VTK, libproj, and pcl you have installed (
dpkg -l |grep "vtk\|libproj\|pcl"
). Ensure you havelibproj-dev
installed, ensure you're on the6.2.0+dfsg1-10ubuntu0.1
versions of VTK (e.g.libvtk6-dev
), and on the ROS PCL packages from December 3 (e.g. 1.4.4-0xenial-20201203-014302+0000 forros-kinetic-perception-pcl
). If yes to all of those, did you try cleaning your workspace before building? Can you confirm/usr/lib/x86_64-linux-gnu/libproj.so
doesn't exist which is what the error in your question indicates is the problem (it should be installed bylibproj-dev
package)?Hi Jarvis, I installed libproj-dev. And this solved my problem. I don't get any error while compiling anymore. Thank you for your explanations and patience. Regards.
Glad that worked! The only thing that surprises me a bit is that it wasn't already installed. The latest version of
libvtk6-dev
(6.2.0+dfsg1-10ubuntu0.1) has a Deb dependency onlibproj-dev
. Meaning, if your apt upgrade had worked according to my answer you should have hadlibproj-dev
installed automatically. I'm guessing that even though you've fixed your issue, you might still have different package versions installed. For example, if you still had the version oflibvtk6-dev
from OSRF's repositories (6.2.0+dfsg1-10build1+debian11.1+osrf1) then you wouldn't getlibproj-dev
installed automatically.Hi Jarvis, the problem might be my internet connection. I work in a university whose wifi is kind of under control(firewall or something like that). I see some errors occasionally while downloading somethings from internet such as "Failed to fetch". In these kind of situations, I open my internet to download properly. But I forget sometimes... and go on with broken downloaded packages or programs. This is my opinion how the some files are overlooked.
Sounds like a reasonable theory. Thanks for the update