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

catkin_make ignores dependencies?

asked 2013-10-25 23:07:23 -0600

Hendrik Wiese gravatar image

updated 2014-01-28 17:18:21 -0600

ngrennan gravatar image

I'm not sure what's causing this but catkin_make ignores dependencies for one or two of my packages.

The package x_competitor_layer depends on the message generation of x_eth_interface. I've added this dependency in

  • package.xml (build_depend and run_depend)
  • CMakeLists.txt (x_eth_interface in find_package as well as x_eth_interface_generate_messages in add_dependencies)

of x_competitor_layer package.

But still catkin_make doesn't build x_eth_interface_generate_messages first and keeps complaining about a missing header file. I can solve this problem manually by calling catkin_make x_eth_interface_generate_messages first. But catkin should be able to solve it on its own, shouldn't it?

So what could possibly have gone wrong? What might be missing?

Thanks guys!

Cheers, Hendrik

edit retag flag offensive close merge delete


Maybe it's a different problem, but have you tried to call catkin_make, a few times in row?

Artem gravatar image Artem  ( 2013-10-26 07:08:24 -0600 )edit

Yepp, I have. Sadly to no avail.

Hendrik Wiese gravatar image Hendrik Wiese  ( 2013-10-26 15:01:05 -0600 )edit

Please provide a minimal rosinstall file for your workspace (or point to repos containing the code in question) which allows to reproduce your issue.

Dirk Thomas gravatar image Dirk Thomas  ( 2013-10-27 21:02:32 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2013-10-26 02:22:55 -0600

KruseT gravatar image

Difficult to tell what goes wrong without seeing the actual cmake code of x_competitor_layer. Check for typos.

Note that it should be preferable not to refer to implicit targets anymore, as discussed here:

I realize nobody updated the docs though ( ).

edit flag offensive delete link more


Hmm, I'm afraid, I don't really get it, because I don't have that much of an insight into the guts of ROS, yet. I guess, the best for me is to stick with the unresolved dependencies for the time being and solve them manually whenever recompiling comes necessary.

Hendrik Wiese gravatar image Hendrik Wiese  ( 2013-10-30 00:32:31 -0600 )edit

This is not much about ROS, but mostly about cmake. Possibly you made a typo in find_dependencies, or used it on the wrong target, or missed a target, etc. The possibilities are endless, if you want help, paste the error log and the CMakeLists.txt

KruseT gravatar image KruseT  ( 2013-11-03 03:56:01 -0600 )edit

Question Tools

1 follower


Asked: 2013-10-25 23:07:23 -0600

Seen: 459 times

Last updated: Oct 26 '13