Ask Your Question
0

Can I add dependencies after using catkin_create_pkg?

asked 2014-04-30 02:40:58 -0500

paturdc gravatar image

I used first

catkin_init_workspace

and thereafter

catking_create_pkg example1 roscpp rospy std_msgs

and building a simple example file works flawlessly.

Now if I run

catkin_create_pkg example2

without specifying dependencies, it doesn't work, even though I edited the package.xml and imported exactly the same source code. The reason I want to do this, is I need to move some source code from Fuerte to Hydro, and I'd rather just copy the <build_depend> tags from one xml file to the other. But it doens't work.

edit retag flag offensive close merge delete

Comments

What doesn't work?

dornhege gravatar image dornhege  ( 2014-04-30 03:24:46 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-04-30 03:25:05 -0500

paturdc gravatar image

updated 2014-04-30 03:38:55 -0500

Turns out I need to add dependencies in CMakelist also, and I had not seen the one at the top

find_package(catkin REQUIRED COMPONENTS roscpp rospy std_msgs )

edit flag offensive delete link more

Comments

This looks like CMakeLists.txt, not package.xml.

dornhege gravatar image dornhege  ( 2014-04-30 03:31:34 -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: 2014-04-30 02:40:58 -0500

Seen: 283 times

Last updated: Apr 30 '14