Compile OpenCV3.2 with Python2 on Windows 7
I am able to run cmake-gui with the default settings and compile and install OpenCV 3.2.0 with Visual Studio 14 2015 Win64 on Windows 7, if I don't use Python 2 or 3. The C++ samples programs work as expected.
I am now trying to compile, including WITH_PYTHON2 and WITH_XIMEA (I don't have Python 3 installed). Cmake finds the Python2.7 (64bit) files as follows:
PYTHON2_EXECUTABLE C:/Python27/python.exe
PYTHON2_INCLUDE_DIR C:/Python27/include
PYTHON2_INCLUDE_DIR2
PYTHON2_LIBRARY C:/Python27/libs/python27.lib
PYTHON2_LIBRARY_DEBUG PYTHON_DEBUG_LIBRARY-NOTFOUND
PYTHON2_PACKAGES_PATH C:/Python27/Lib/site-packages
but then concludes that both the python2 and python3 modules will be "Unavailable":`
OpenCV modules:
To be built: cudev core cudaarithm flann imgproc ml objdetect video cudabgsegm cudafilters cudaimgproc cudawarping imgcodecs photo shape videoio cudacodec highgui ts features2d calib3d cudafeatures2d cudalegacy cudaobjdetect cudaoptflow cudastereo stitching superres videostab
Disabled: world
Disabled by dependency: -
Unavailable: java python2 python3 viz`
What is missing? Do I need some PYTHON2_LIBRARY_DEBUG for this to work, if so where do I get that? Thanks for any hints!
May be you can find some help in this tutorial. have you clone opencv?
your python2 install needs a recent numpy (10.x).
also, since there is no DEBUG library for python, it will only get built in RELEASE mode.
if you still can't get it to build, we need to see the complete cmake output