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

Revision history [back]

click to hide/show revision 1
initial version

I assume its a precompiled lib you have copied to your project folders /lib directory. If so you need to

link_directoriest(  ${PROJECT_SOURCE_DIR}/lib )

 target_link_libraries( test_service_server ${catkin_LIBRARIES} test )

Note: link_drectories specifies the path for your libs target_link_libraries takes the library names without lib prefix and .so postfix.

Also note that this is only valid if its a somehow outside catkin created lib. If catkin creates the lib it won't put them in the lib folder of your project but into the devel/lib folder of your workspace so the workaround is different then...

I assume its a precompiled lib you have copied to your project folders /lib directory. If so you need to

link_directoriest( link_directories(  ${PROJECT_SOURCE_DIR}/lib )

 target_link_libraries( test_service_server ${catkin_LIBRARIES} test )

Note: link_drectories specifies the path for your libs target_link_libraries takes the library names without lib prefix and .so postfix.

Also note that this is only valid if its a somehow outside catkin created lib. If catkin creates the lib it won't put them in the lib folder of your project but into the devel/lib folder of your workspace so the workaround is different then...

I assume its a precompiled lib you have copied to your project folders /lib directory. If so you need to

link_directories(  ${PROJECT_SOURCE_DIR}/lib )

target_link_libraries( test_service_server ${catkin_LIBRARIES} test )

Note: link_drectorieslink_directories specifies the path for your libs target_link_libraries takes the library names without lib prefix and .so postfix.

Also note that this is only valid if its a somehow outside catkin created lib. If catkin creates the lib it won't put them in the lib folder of your project but into the devel/lib folder of your workspace so the workaround is different then...