Ask Your Question
1

Catkin conversion: /usr/bin/ld: cannot find -lPACKAGE_NAME

asked 2012-12-10 11:47:43 -0600

Dave Coleman gravatar image

I'm trying to convert some packages to catkin from rosbuild but one of my packages, "clam_controller", keeps getting the error:

/usr/bin/ld: cannot find -lclam_controller

Which appears to me to be trying to link against itself. Nothing else is yet linking to this library - nothing depends on clam_controller yet.

I'm sure this is a simple fix but I have tried everything I could in tweaking my new CMakeLists.txt. The super simple old rosbuild script is here.

I'm on Groovy and Ubuntu 12.04.

Thanks!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
5

answered 2012-12-10 12:04:07 -0600

tfoote gravatar image

In your CMakeLists your telling it to link against that:

target_link_libraries(joint_state_aggregator 
  ${PROJECT_NAME} ${catkin_LIBRARIES} )

just remove ${PROJECT_NAME}

edit flag offensive delete link more

Comments

that'll do it, thanks!

Dave Coleman gravatar imageDave Coleman ( 2012-12-10 12:26:30 -0600 )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: 2012-12-10 11:47:43 -0600

Seen: 2,845 times

Last updated: Dec 10 '12