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

Revision history [back]

Hi there,

OpenCV is no longer packed inside ROS, instead now it is a system dependency. I guess that the information on the tutorials that you mention is outdated. You should remove all references to opencv2 in your CMakeList.txt.

The correct way to link your node to opencv is by adding the following to CMakeList.txt :

find_package(OpenCV REQUIRED)
add_executable(my_cool_node src/my_cool_node.cpp)
target_link_libraries(my_cool_node ${catkin_LIBRARIES} ${OpenCV_LIBRARIES})

I hope this helps you.