我正在尝试使用“catkin_make”命令构建一个需要 OpenCV 的 ROS 包。
在尝试构建时,我收到 CMakeList 命令“find_package(OpenCV REQUIRED)”的以下错误:
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.
我在 /usr/share/OpenCV/ 找到了“OpenCVConfig.cmake”文件,并在“OpenCV_DIR”环境变量中设置了这个位置。尽管如此,我仍然收到上面列出的错误。
有任何想法吗?
知道我正在尝试将 OpenCV4Tegra 与 Jetson TX1 上的包链接可能很有用