So i've been trying to build a github project but it requires opencv, so i installed it according to it's website.
After i tried to build but it gets me this error:
CMake Error at CMakeLists.txt:41 (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.
So I tried to set opencv's location using this:
cmake -DOpenCV_DIR=/c/lib/build_opencv/
But this time it gets me this error:
CMake Error: The source directory "C:/lib" does not appear to contain CMakeLists.txt.
How can i solve it?
I use windows.