-2

I'm trying to compile a project with CMake. I'm getting an error:

Found OpenCV Windows Pack but it has not binaries compatible with your configuration.

You should manually point CMake variable OpenCV_DIR to your build of OpenCV library. Call Stack (most recent call first): CMakeLists.txt:9 (FIND_PACKAGE)

CMake Error at CMakeLists.txt:9 (FIND_PACKAGE): Found package configuration file:

C:/Users/Ghenja/AppData/Local/opencv/build/OpenCVConfig.cmake

but it set OpenCV_FOUND to FALSE so package "OpenCV" is considered to be NOT FOUND.

I don't understand what is happening. Please help me to solve this problem.

GIGay
  • 1

1 Answers1

0

Clean your project and remove CMakeCache.txt. OpenCV_FOUND is probably cached now.

If that doesn't work, then run your cmake command with additional flags just to be sure:

cmake -DOpenCV_FOUND:BOOL=ON -DOpenCV_DIR=/path/to/your/OpenCV
Cinder Biscuits
  • 4,880
  • 31
  • 51