我安装了Python 2.7
,但当我尝试使用CMake 2.8
生成OpenCV 2.3.1
项目的Makefile时,出现以下信息。我正在运行Windows 7 x86,并使用Visual Studio 10。
Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE)
Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS)
我按照这个链接提供的指南进行了操作。
CMakeLists.txt
中,并且需要使用 CMake 语法:set(variable value)
。 - Melebius