ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Indigo ros_core source compile error in actionlib_msgs

asked 2015-11-25 12:32:33 -0600

crunchex gravatar image

updated 2015-11-25 13:20:30 -0600

I'm compiling indigo-ros_core from source on Debian and I'm getting stuck at actionlib_msgs with the following error:

<== Finished processing package [43 of 63]: 'std_msgs'

==> Processing catkin package: 'actionlib_msgs'
==> Building with env: '/opt/ros/indigo/'
==> cmake /home/crunchex/uproot/iso_catkin_ws/src/common_msgs/actionlib_msgs -DCATKIN_DEVEL_PREFIX=/home/crunchex/uproot/iso_catkin_ws/devel_isolated/actionlib_msgs -DCMAKE_INSTALL_PREFIX=/opt/ros/indigo -DCMAKE_BUILD_TYPE=Release -G Unix Makefiles in '/home/crunchex/uproot/iso_catkin_ws/build_isolated/actionlib_msgs'
-- Using CATKIN_DEVEL_PREFIX: /home/crunchex/uproot/iso_catkin_ws/devel_isolated/actionlib_msgs
-- Using CMAKE_PREFIX_PATH: /opt/ros/indigo
-- This workspace overlays: /opt/ros/indigo
-- Using PYTHON_EXECUTABLE: /usr/bin/python
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/crunchex/uproot/iso_catkin_ws/build_isolated/actionlib_msgs/test_results
-- Found gtest sources under '/usr/src/gtest': gtests will be built
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.6.16
-- Using these message generators: gencpp;genlisp;genpy
CMake Error at /home/crunchex/uproot/iso_catkin_ws/build_isolated/actionlib_msgs/cmake/actionlib_msgs-genmsg.cmake:3 (message):
  Could not find messages which
  depends on.  Did you forget to specify generate_messages(DEPENDENCIES ...)?

  Cannot locate message [Header] in package [std_msgs] with paths
Call Stack (most recent call first):
  /home/crunchex/uproot/iso_catkin_ws/devel_isolated/genmsg/share/genmsg/cmake/genmsg-extras.cmake:304 (include)
  CMakeLists.txt:12 (generate_messages)

At this point, I've already finished processing std_msgs, which is where the Header message is defined. So I'm not really sure why it would be failing at this point. Anyone have a clue?

edit retag flag offensive close merge delete


Not a solution, just a fyi: there is a packaging effort for Debian underway at DebianScience/Robotics/ROS. Might save you some time/trouble.

gvdhoorn gravatar image gvdhoorn  ( 2015-11-28 09:57:33 -0600 )edit

Great! Thanks, I will check it out.

crunchex gravatar image crunchex  ( 2015-11-28 10:32:14 -0600 )edit

2 Answers

Sort by » oldest newest most voted

answered 2015-11-28 16:39:53 -0600

crunchex gravatar image

updated 2015-11-28 19:03:59 -0600

Found a workaround to the problem, but I think there is still some sort of bug in the actionlib_msgs dependencies.

Since my original command, part of the official Debian Indigo installation process, is this:

sudo ./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release --install-space /opt/ros/indigo

The packages that were built successfully up to the point where actionlib_msgs fails, will make it into /opt/ros/indigo. If I source that workspace and try the same command again, then the build will work fine (63/63). Not sure why this is.

Update : turned out to be a permissions thing. This answer pointed me in the right direction:

edit flag offensive delete link more

answered 2016-06-04 12:15:48 -0600

This bug is annoying. I spend quite a bit time trying to solve it but I the easiest way to solve it finally was to add a symbolic link of the std_msg folder in the devel isolated space. I mean:

$ ln -s src/std_msgs/msg devel/std_msgs/share/std_msgs/cmake/../msg

Not too much pretty but at least it worked.

edit flag offensive delete link more



this work, thnx from this ~/ros_catkin_ws/src/common_msgs/ to [['~/ros_catkin_ws/devel_isolated/std_msgs/share/std_msgs/cmake/../msg']]

for sudo catkin_make_isolated --install ln -s ... 5-6 times result: Finished processing package [204 of 204]: 'xacro'

dimdim gravatar image dimdim  ( 2016-09-29 07:02:15 -0600 )edit

soft link failed, I have to copy this folder then it works. Thanks

J.C. gravatar image J.C.  ( 2022-03-04 00:41:38 -0600 )edit

Question Tools


Asked: 2015-11-25 12:32:33 -0600

Seen: 1,370 times

Last updated: Jun 04 '16