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

It seems to me that you don't link to OpenCV. Do this by adding the following line to your CMakeLists.txt

find_package(OpenCV REQUIRED)

And you might also need to link your executable/library to it

target_link_libraries(your_target ${OpenCV_LIBS})
click to hide/show revision 2
No.2 Revision

updated 2015-05-04 11:16:52 -0600

Wolf gravatar image

It seems to me that you don't link to OpenCV. Do this by adding the following line to your CMakeLists.txt

find_package(OpenCV REQUIRED)

And you might also need to link your executable/library to it

target_link_libraries(your_target ${OpenCV_LIBS})

In your case change

 target_link_libraries(color_to_gray_node ${catkin_LIBRARIES})

for

 target_link_libraries(color_to_gray_node ${catkin_LIBRARIES} ${OpenCV_LIBS} )