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

Revision history [back]

Since you're using the regular CMake find_package mechanism, it picks up the system-installed OpenCV first. The ROS fuerte setup sets your CMAKE_PREFIX_PATH environment variable. You can try to override it by putting your local CMake installation path in front of the CMAKE_PREFIX_PATH, or exporting the variable OpenCV_DIR to point to your local installation containing OpenCVConfig.cmake.

Since you're using the regular CMake find_package mechanism, it picks up the system-installed OpenCV first. The ROS fuerte setup sets your CMAKE_PREFIX_PATH environment variable. You can try to override it by putting your local CMake installation path in front of the CMAKE_PREFIX_PATH, or exporting the variable OpenCV_DIR to point to your local installation containing OpenCVConfig.cmake.

And yes, I agree that copying stuff over your system-installed OpenCV is a bad idea. It will break most ROS libs depending on it if it's not binary-compatible.