ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
It appears that your image_viewer
program uses ros::spin
, therefore you will need to link against at least roscpp
, this diff should work:
--- cmake_minimum_required(VERSION 2.8.3)
+++ (clipboard)
@@ -20,4 +20,4 @@
find_package(OpenCV REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})
add_executable(image_viewer src/see_image.cpp)
- target_link_libraries(image_viewer ${OpenCV_LIBRARIES})
+ target_link_libraries(image_viewer ${OpenCV_LIBRARIES} ${catkin_LIBRARIES})