Do I need Python to build OpenCV from source using cmake?
I'm getting this message in cmake-gui after I click configure:
CUDA detected: 7.5
CUDA NVCC target flags: -gencode;arch=compute_20,code=sm_20;-gencode;arch=compute_20,code=sm_21;-gencode;arch=compute_30,code=sm_30;-gencode;arch=compute_35,code=sm_35;-gencode;arch=compute_30,code=compute_30
To enable PlantUML support, set PLANTUML_JAR environment variable or pass -DPLANTUML_JAR=<filepath> option to cmake
Found PythonInterp: C:/Python27/python.exe (found suitable version "2.7.11", minimum required is "2.7")
Found PythonLibs: C:/Users/Maxwell/AppData/Local/Enthought/Canopy32/User/libs/python27.lib (found suitable exact version "2.7.11")
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named numpy.distutils
Could NOT find PythonInterp: Found unsuitable version "2.7.11", but required is at least "3.4" (found C:/Python27/python.exe)
Could NOT find PythonInterp: Found unsuitable version "2.7.11", but required is at least "3.2" (found C:/Python27/python.exe)
I don't plan to write any Python in OpenCV. Just C/C++. OpenCV is written in C/C++, right? Can I build it without Python? I know how to uncheck modules in cmake when I don't need them, but don't see the Python module I could unclick.
Re: Do I need Python to build OpenCV from source using cmake?
You should only have to unclick the Python entries. With OpenCV 3.1 there
are 8 entries for Python 2 and 8 more for Python 3. Cmake-gui has a search
text box to help you find it for other versions of OpenCV.