Robotics StackExchange | Archived questions

No rule to make target - liborocos-kdl.so.1.4.0 - install space issues?

Hi guys,

I'm building ROS melodic from source to an install space inside a docker container. Everything is fine and I copy the workspace from the install space out of the container.

I then try and build the Geometry2 package in a container. I pull the artifacts from the melodic workspace install space into the container and source the setup.bash at /opt/roscustom/setup.bash. The ROS melodic workspace is relocated from its install space /opt/roscustom/install to /opt/ros_custom.

However I get 2 issues. First issue:

CMake Error at /opt/roscustom/share/tf2kdl/cmake/tf2kdlConfig.cmake:113 (message): Project 'tf2kdl' specifies '/opt/roscustom/install/include' as an include dir, which is not found. It does neither exist as an absolute directory nor in '${{prefix}}//opt/roscustom/install/include'.

I think this issue is to do with catkin putting hard-coded paths into the .cmake file for packages that include plain cmake packages. orocoskdl in this example for tf2kdl.

At an attempt to continue with the build I create the /opt/ros_custom/install/include directory inside the container and the build continues with the next error.

[ 46%] Building CXX object third-party-src/testtf2/CMakeFiles/testbufferserver.dir/test/testbufferserver.cpp.o make[3]: *** No rule to make target '/opt/roscustom/install/lib/liborocos-kdl.so.1.4.0', needed by '/opt/roscustom/devel/lib/testtf2/testbufferserver'. Stop.

Again the build is looking for the library that is now in /opt/roscustom/lib/ not /opt/roscustom/install/lib. This isn't an issue for any other catkin package but is for orocoskdl. I applied this PR from the orocoskdl repo to see if it would help https://github.com/orocos/orocos_kinematics_dynamics/pull/255/files/b2cf2070b95e4d842d37dd13922ae3e99ea50381 however it doesn't.

Does orocos_kdl require the ROS workspace installation space remains?

Thanks for your help!

Asked by Dwil on 2020-09-14 16:08:01 UTC

Comments

Answers

This question is related to this other question/answer: https://answers.ros.org/question/361692/catkin-adds-hardcoded-paths-to-auto-generated-cmake-files/

Asked by Dwil on 2020-09-17 03:54:53 UTC

Comments

Is that some packages such as moveit, are built from outdated source codes? In my case, just update the source codes and build again.

Asked by lyh458 on 2022-05-27 21:02:49 UTC

Comments