pinocchio: The ${libdir} variable in pinocchio.pc file wrong when built with catkin
Since recently, the pinocchio.pc file generated in a Pinocchio build with catkin (ros noetic) contains an error. This also holds for the package that is distributed by the ros package repository. I can confirm that the same error does not occur when building Pinocchio manually without catkin.
It seems that CMAKE_INSTALL_FULL_LIBDIR is somehow set to be /opt/ros/noetic/lib/x86_64-linux-gnu, because of that the libdir variable in pinocchio.pc also ends up to be this path; regardless of where pinocchio is being installed (e.g., local prefix in local workspace). Since the pinocchio library is actually installed to the lib directory and not lib/x86_64-linux-gnu, linker errors arise.
Although the root cause may not actually be in Pinocchio, I wanted to make you aware of this problem such that you may be able to construct a workaround and have a working version of Pinocchio distributed for ROS (Noetic, not test for other versions).
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 20 (13 by maintainers)
Commits related to this issue
- Fix accidentally overridden libdir variable in pkg-config files Cf. issue report https://github.com/stack-of-tasks/pinocchio/issues/1524 — committed to wxmerkt/jrl-cmakemodules by wxmerkt 5 years ago
- pkg-config: compute relative path to prefix instead of hardcoding "../..". Specially useful for ROS which sets LIBDIR to "lib/x86_64-linux-gnu" fix: https://github.com/humanoid-path-planner/hpp-fcl/... — committed to jrl-umi3218/jrl-cmakemodules by nim65s 4 years ago
additionally,
libeigenpy.so&eigenpy.pcare in/opt/ros/noetic/lib/x86_64-linux-gnu, while I would expect this to be at least consistent with pinocchio.ref. https://github.com/stack-of-tasks/eigenpy/issues/116