CMake Error at /opt/ros/kinetic/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. If “OpenCV”
provides a separate development package or SDK, be sure it has been
installed.
Call Stack (most recent call first):
accurate_location/CMakeLists.txt:10 (find_package)
解决办法:
before the find_package() command in my cmakelists file.
首先打开终端:locate OpenCVConfig.cmake
找到目录文件:
添加:/opt/ros/kinetic/share/OpenCV-3.3.1-dev/