Ask Your Question

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.


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

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

tfoote gravatar image

In your CMakeLists your telling it to link against that:


just remove ${PROJECT_NAME}

edit flag offensive delete link more


that'll do it, thanks!

Dave Coleman gravatar image Dave 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


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

Seen: 3,403 times

Last updated: Dec 10 '12