Я пытаюсь использовать ROS с opencv, но когда я 'catkin-make', это дает мне следующее:
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):
fls_package/CMakeLists.txt:10 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/vered/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/vered/catkin_ws/build/CMakeFiles/CMakeError.log".
Makefile:318: recipe for target 'cmake_check_build_system' failed
make: *** [cmake_check_build_system] Error 1
с помощью cmake- gui, я определил: 1. CMAKE_PREFIX_PATH = / home / vered / opencv / build (где OpenCVConfig.cmake) 2. OpenCV_DIR = / usr / local / include / opencv4 / opencv2 (где opencv.hpp)
сконфигурировано, сгенерировано и затем sudo make install,
и до сих пор, когда делают сережки, у меня та же проблема. есть идеи?