La construction d'opencv avec cmake erreur

Je suis en train de construire opencv avec cmake et suis en cours d'exécution dans des questions.

J'ai téléchargé Windows opencv 2.3.1 à C:/Users/chris/opencv. J'ouvre le CMake GUI (2.8.5 version de CMake) et de mettre le répertoire source comme C:/Users/chris/opencv/modules et le "Où construire les binaires" à C:/temp/opencv_binaries

J'ai frappé Configure et a choisi de Visual Studio 2010. J'ai alors frappé Configure de nouveau et obtenez l'erreur suivante de sortie:

CMake Error at calib3d/CMakeLists.txt:1 (define_opencv_module):
  Unknown CMake command "define_opencv_module".


CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 2.8)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

Configuring incomplete, errors occurred!

Ce qui donne? Que dois-je faire pour résoudre ce problème?

InformationsquelleAutor chris | 2011-09-10