Could not find module FindOpenCV.cmake ( Error in configuration process)

前端 未结 12 2234
既然无缘
既然无缘 2020-11-29 02:04

I wrote a CMakeLists.txt for a project in C++, which uses OpenCV libraries. When I try to create the project using cmake, I ge

12条回答
  •  青春惊慌失措
    2020-11-29 02:17

    1. apt-get install libopencv-dev
    2. export OpenCV_DIR=/usr/share/OpenCV
    3. the header of cpp file should contain: #include #include "opencv2/highgui/highgui.hpp"

    #include #include

    not original cv.h

提交回复
热议问题