(1)报错提示

OpenCV中CMakeLists.txt:“OpenCV“ to CMAKE_PREFIX_PATH_公众号

(2)解决方案

在客户端输入:locate OpenCVConfig.cmake,查看OpenCV的安装路径,并在CMakeLists.txt里面输入:

set(OpenCV_DIR /usr/local/opencv3.2/share/OpenCV/)

更多《计算机视觉与图形学》知识,可关注下方公众号:

OpenCV中CMakeLists.txt:“OpenCV“ to CMAKE_PREFIX_PATH_OpenCV_02