Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

cmake windows openCV found but ... no compatible

Hi, ok here my configuration/installation:

  • I am on windows 7

  • Visual studio 2015 vc14 + command line tool c++ vc14

  • cmake windows

  • Last build for windows 3.3.1

Here my cmake:

cmake_minimum_required(VERSION 3.2)
project( projet)
find_package( OpenCV REQUIRED )
add_executable( 
    projetC
    Main.cpp
 )
target_link_libraries( projetC ${OpenCV_LIBS} )

Here my path to openCV_dir

echo %OPENCV_DIR%
C:\OpenCV\build\x64\vc14

When I do cmake . I have this error message:

Found OpenCV Windows Pack but it has no 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:10 (find_package)


CMake Error at CMakeLists.txt:10 (find_package):
  Found package configuration file:

  C:/Users/qqch/Desktop/opencv/build/openCVConfig.cmake !!!!!!!!!! WTF is not the good path

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

Obviously I tested Billion of others methods