Could not find a package configuration file provided by "OpenCV" with any of the following names:

asked 2017-07-10 03:38:14 -0600

归零者 gravatar image

CMake Error at CMakeLists.txt:4 (find_package): By not providing "FindOpenCV.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "OpenCV", but CMake did not find one.

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.

edit retag flag offensive close merge delete

Comments

os, opencv version ? how did you install it ?

berak gravatar imageberak ( 2017-07-10 03:50:57 -0600 )edit

win10 x64, opencv3.20, i just install it by the normal way

归零者 gravatar image归零者 ( 2017-07-11 21:01:31 -0600 )edit