Ask Your Question
0

How to set build order/dependencies

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

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

Eg..

make[2]: * No rule to make target /catkin_ws/devel/lib/libmrls_lib.so', 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?

Frank

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

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

tfoote gravatar image

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

edit flag offensive delete link more

Comments

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

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

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

Seen: 289 times

Last updated: Sep 16 '13