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

In the update history you have ros-kinetic-opencv3 I guess that now your ${OpenCV_INCLUDE_DIRS} points to opencv3 instead of opencv2

Add this line in your CMakeList.txt, in order to see if this gets the value that you want

message( STATUS "OpenCV Include Dir: " ${OpenCV_INCLUDE_DIRS} )

You can define the version of OpenCV that you prefer in the CMakeLists.txt.

Example:

find_package(OpenCV 2.4.8 EXACT REQUIRED)

I hope this helps