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

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

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

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
7

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

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 image Dave Coleman  ( 2012-12-10 12:26:30 -0500 )edit

Question Tools

1 follower

Stats

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

Seen: 5,131 times

Last updated: Dec 10 '12