building opencv3 for python in windows,

asked 2014-07-25 17:04:02 -0500

SY gravatar image

Hi,

I'm trying to build opencv3 on my windows 7 system using Visual Studio 2012 using this reference: http://docs.opencv.org/trunk/doc/py_tutorials/py_setup/py_setup_in_windows/py_setup_in_windows.html

I'm using Anaconda Python 2.7 and do not have any other version of Python installed. When I ran CMake on windows, I couldn't find everything related to Python as was described in the reference, so I manually created the ones I could't find with appropriate names and values. These were in the C:/Anaconda folder for me instead of the usual C:/Python27 folder. Of the ones I manually entered, the following were not generated by CMake. This is the error I get:

Configuring done
Generating done
CMake Warning:
Manually-specified variables were not used by the project:
BUILD_opencv_bioinspired
BUILD_opencv_contrib
BUILD_opencv_legacy
BUILD_opencv_softcascade
PYTHON_INCLUDE_DIR
PYTHON_LIBRARY

I have no prior experience with building packages but desperately need openCV3 for my project. I'd be thankful if someone could point me in the right direction and tell me what I need to do next to fix this.

Thanks

edit retag flag offensive close merge delete

Comments

it might not like the anaconda. why not just use a regular python ?

also, maybe try with cmake-gui (as you can easily specify the path to the python headers/libs manually there)

berak gravatar imageberak ( 2014-07-26 01:21:47 -0500 )edit