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

前端 未结 12 2235
既然无缘
既然无缘 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:35

    I faced the same error. In my case this "OpenCVConfig.cmake" file is located in /usr/local/share/OpenCV. In CMakeLists.txt add the line

    set(OpenCV_DIR /usr/local/share/OpenCV)

    as suggested by the error message.

提交回复
热议问题