Building OpenCV libraries from source files


Question

I have installed Python 2.7, but when I try to generate the OpenCV 2.3.1 project Makefiles using CMake 2.8, I get the following message. I am running Windows 7 x86 and using Visual Studio 10.

Could NOT find PythonInterp (missing:  PYTHON_EXECUTABLE) 
Could NOT find PythonLibs (missing:  PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS) 

I have followed the guide provided at this link.

1
9
2/3/2012 8:35:36 AM

Yes, this also worked for me.

Check advanced, then manually set the values for the three variables.

In my case:

PYTHON_EXECUTABLE = .../python.exe

PYTHON_INCLUDE_DIR = .../include

PYTHON_LIBRARY = .../python26.lib

Tested with PythonPortable on Windows. (so, no installation required)

14
5/15/2012 2:01:03 PM

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
Icon