Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 566670 - dev-util/catkin-0.6.16-r1: CMAKE_INSTALL_LIBDIR not set when building local workspaces
Summary: dev-util/catkin-0.6.16-r1: CMAKE_INSTALL_LIBDIR not set when building local w...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Robot Operating System team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-23 19:15 UTC by Eric Timmons
Modified: 2015-11-27 12:31 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Error from catkin_make (catkin_error.txt,3.03 KB, text/plain)
2015-11-23 19:15 UTC, Eric Timmons
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Timmons 2015-11-23 19:15:38 UTC
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.
Comment 1 Alexis Ballier gentoo-dev 2015-11-27 12:31:16 UTC
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!