Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 566094 - dev-util/catkin-0.6.16: Needs additional configuration to build local workspaces
Summary: dev-util/catkin-0.6.16: Needs additional configuration to build local workspaces
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-18 03:50 UTC by Eric Timmons
Modified: 2015-11-19 09:59 UTC (History)
0 users

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


Attachments
Error from catkin_make (catkin_make_error.txt,1.41 KB, text/plain)
2015-11-18 03:53 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-18 03:50:53 UTC
I have ros-meta/desktop_full installed (~amd64 system). When I try to compile a local catkin workspace, catkin_make is unable to find Catkin's CMake packages or any ROS CMake packages.

Reproducible: Always

Steps to Reproduce:
1. mkdir -p ~/test_catkin_ws/src
2. cd ~/test_catkin_ws/src
3. catkin_init_workspace
4. cd ..
5. catkin_make
Actual Results:  
CMake fails to find_package(catkin).

Expected Results:  
No error.

This can be fixed with:

export CMAKE_PREFIX_PATH=/usr

before catkin_make or by running

catkin_make --cmake-args -DCMAKE_PREFIX_PATH=/usr

This seems to work because catkin abuses CMAKE_PREFIX_PATH by using it internally to search for packages instead of relying on CMake's standard find_package method. If this is the correct way to run catkin on Gentoo though, there should be some documentation to that effect.

It looks like /etc/env.d/40roslaunch (from dev-ros/roslaunch) tries to fix this by setting CATKIN_PREFIX_PATH=/usr. But catkin ignores this because it only ever reads CATKIN_PREFIX_PATH from the CMake cache, never from the environment.
Comment 1 Eric Timmons 2015-11-18 03:53:18 UTC
Created attachment 417256 [details]
Error from catkin_make
Comment 2 Alexis Ballier gentoo-dev 2015-11-19 09:59:17 UTC
should be fixed in dev-util/catkin-0.6.16-r1, thanks!