Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot build Opencv project with cmake

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;

like image 789
coolcoolcool Avatar asked Mar 08 '13 18:03

coolcoolcool


1 Answers

Change OpenCV_DIR entry under OpenCV in CMake from C:\OpenCV\cmake to C:\OpenCV\build. It will solve your problem.

like image 55
Quoros Avatar answered Oct 12 '22 21:10

Quoros