ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
The problem was that OpenCV_INCLUDE_DIRS was not getting set properly. It gets set by this line in /usr/lib64/OpenCVConfig.cmake
set(OpenCV_INCLUDE_DIRS "${OpenCV_INSTALL_PATH}/include/opencv;${OpenCV_INSTALL_PATH}/include")
The root cause is probably that OpenCV_INSTALL_PATH is not set properly, but I just changed the line to this:
set(OpenCV_INCLUDE_DIRS "/usr/include/opencv;/usr/include")
This seemed to work.