Summary: | dev-util/catkin-0.6.16-r1: CMAKE_INSTALL_LIBDIR not set when building local workspaces | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Eric Timmons <gentoo-bugs> |
Component: | Current packages | Assignee: | Robot Operating System team <ros> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | Error from catkin_make |
commit 3bc8f1430d487b57c71bb0129853466b6514afba Author: Alexis Ballier <aballier@gentoo.org> Date: Fri Nov 27 13:30:48 2015 +0100 dev-util/catkin: include GNUInstallDirs in all.cmake so that LIBDIR is always defined. Bug #566670. thanks! |
Created attachment 417700 [details] Error from catkin_make Now that 566094 is fixed (thanks!) I've been able to do some more poking around with local workspaces. Any package that tries to install libraries in the local workspace fails because no install destination is set for it. This is because CATKIN_PACKAGE_LIB_DESTINATION has no value, due to CMAKE_INSTALL_LIBDIR (which is inserted into catkin by the ebuild) not being set. This can be replicated with (assumes wstool and rosinstall_generator are installed): 1. mkdir -p ~/test_catkin_ws 2. cd ~/test_catkin_ws 3. rosinstall_generator sicktoolbox --rosdistro jade > sicktoolbox.rosinstall 4. wstool init src sicktoolbox.rosinstall 5. catkin_make You can see this diagnosis is correct by replacing step 5 with: catkin_make --cmake-args -DCMAKE_INSTALL_LIBDIR=lib I haven't tested yet, but this looks like it will also affect more things, like the catkin_project macro, the catkin_workspace function, and installing python libraries.