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

How to set build order/dependencies

asked 2013-09-14 22:26:20 -0600

frank gravatar image

In my workspace I have created 3 packages - 2 nodes and a library. I use catkin_make to build, however it compiles the packages alphabetically; the nodes first then the library. I get compiler errors because the library isn't built yet


make[2]: * No rule to make target /catkin_ws/devel/lib/', needed bycatkin_ws/devel/lib/mrls_laser_range_finder/mrls_laser_range_finder_node'. Stop

I can compile everything if I manually make the library first, eg.. catkin_make mrls_lib

I've added the library package to find_package() in CMakeLists.txt. Have I missed something?


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-09-16 21:31:53 -0600

tfoote gravatar image

Do you have a package dependency in the package.xml?

edit flag offensive delete link more


Ah ha! That was it. The <build_depend> tag.

frank gravatar image frank  ( 2013-09-16 22:56:15 -0600 )edit

Question Tools

1 follower


Asked: 2013-09-14 22:26:20 -0600

Seen: 468 times

Last updated: Sep 16 '13