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

Besides ${OpenCV_LIBRARIES} you need to link your exec against ${catkin_LIBRARIES}:

target_link_libraries(image_converter ${OpenCV_LIBRARIES} ${catkin_LIBRARIES} )

Besides ${OpenCV_LIBRARIES} you need to link your exec against ${catkin_LIBRARIES}:

target_link_libraries(image_converter ${OpenCV_LIBRARIES} ${catkin_LIBRARIES} )

Note that you need to call

find_package(catkin REQUIRED COMPONENTS genmsg cv_bridge image_transport roscpp std_msgs )

before target_link_libraries