Reputation: 391
So , I'm trying to build an opencv project using cmake , but using both the GUI utility and the command line tool , but keep having the same error popping up
CMake Warning at cmake/modules/FindOpenCV.cmake:160 (message):
Found OpenCV 2.4.3 Windows Super 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:48 (FIND_PACKAGE)
If anyone here please could help me here , that would be great;
Upvotes: 9
Views: 11852
Reputation: 184
Change OpenCV_DIR entry under OpenCV in CMake from C:\OpenCV\cmake to C:\OpenCV\build. It will solve your problem.
Upvotes: 8
Reputation: 3379
I think your CMake variable OpenCV_DIR
is not pointing to the correct location. Have a look at where your opencv binaries are kept and where the OpenCV_DIR
variable is pointing to
If you are using window give the command setx
and find out the correct value of it
Upvotes: 0