ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
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...
2 | No.2 Revision |
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...
3 | No.3 Revision |
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:
specifies the path for your libs
link_drectorieslink_directoriestarget_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...