ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I found the solution for my problem.
There was a problem with CMakeLists.txt
.
Basically, I create shared library:
add_library(${PROJECT_NAME}
src/camera/dummy_camera.cpp
src/handler/camera_service.cpp
src/handler/camera_info_topic_publisher.cpp
src/manager/camera_node_manager.cpp
)
That library has 3rd parties dependencies such as OpenCV. I did not link this shared library's target against all depended libraries.
I added that part to CMakeLists.txt
and it started to build and link without any error:
target_link_libraries(${PROJECT_NAME}
${catkin_LIBRARIES}
${Boost_LIBRARIES}
${OpenCV_LIBRARIES}
)
2 | No.2 Revision |
I found the solution for my problem.
There was a problem with CMakeLists.txt
.
Basically, I create shared library:
add_library(${PROJECT_NAME}
src/camera/dummy_camera.cpp
src/handler/camera_service.cpp
src/handler/camera_info_topic_publisher.cpp
src/manager/camera_node_manager.cpp
)
That library has 3rd parties dependencies such as OpenCV. I did not link this shared library's target against all depended libraries.
I added that part to CMakeLists.txt
and it started to build and link without any error:
target_link_libraries(${PROJECT_NAME}
${catkin_LIBRARIES}
${Boost_LIBRARIES}
${OpenCV_LIBRARIES}
)
I cannot mark my reply as an answer, but it should be treated as an answer for this topic's question.