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

Most upvoted comments

additionally, libeigenpy.so & eigenpy.pc are 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