ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

Presumably there is more in your CMakeLists, in particular you have a line like:

add_executable(foo foo.cpp)

What you are probably missing is:

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

to actually link against the OpenCV libraries.