ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
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.
2 | No.2 Revision |
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.