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

This is solved by mentioning the library location and the path separately in the CMakeLists.txt

set(OpenCV_INCLUDE_DIRS /usr/local/)

set(OpenCV_LIBS /usr/local/lib/libopencv_core.so)

This fixed the problem on most cases.

If catkin fails to compile with the local openCV after setting the CMakeLists.txt as above, open the CMakeCache.txt after it compiles and change the opencv path in that and recompile. Works!