Cannot build Opencv project with cmake

11,186

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

Share:
11,186
coolcoolcool
Author by

coolcoolcool

Updated on July 25, 2022

Comments

  • coolcoolcool
    coolcoolcool almost 2 years

    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;

  • coolcoolcool
    coolcoolcool about 11 years
    Thanks , but I did that and still get the same results