2016-07-27 99 views
0

我正在嘗試使用「catkin_make」命令構建需要OpenCV的ROS包。ROS「catkin_make」找不到OpenCVConfig.cmake

在試圖建立,我得到CMakeList命令下面的錯誤 「find_package(OpenCV的必需)」:

CMake Error at /opt/ros/indigo/share/catkin/cmake/catkinConfig.cmake:83 (find_package): 
Could not find a package configuration file provided by "OpenCV" with any of the following names: 

OpenCVConfig.cmake 
opencv-config.cmake 

Add the installation prefix of "OpenCV" to CMAKE_PREFIX_PATH or set "OpenCV_DIR" to a directory containing one of the above files. 

我找到了 「OpenCVConfig.cmake」 文件位於/ usr /共享/ OpenCV的/和已經在「OpenCV_DIR」env變量中設置了這個位置。 儘管如此,我仍然得到上面列出的錯誤。

任何想法?

這可能是知道,我想OpenCV4Tegra與包裝上杰特森TX1

回答

1

解決了問題由我cmakelists文件find_package()命令之前添加行set(OpenCV_DIR /usr/share/OpenCV/)鏈接有用。