I am trying to get the non-free module of OpenCV3.0.0 working on Python 2.7. In doing the Cmake configure process (with the GUI), I get the following dialog that leads to a hard fail when I try to compile it in Visual Studio.
Module opencv_datasets disabled because opencv_face dependency can't be resolved! Assume that non-module dependency is available: WRAP (for module opencv_optflow) Assume that non-module dependency is available: python (for module opencv_optflow) Assume that non-module dependency is available: WRAP (for module opencv_optflow) Assume that non-module dependency is available: python (for module opencv_optflow)
There are several modules that throw the same dialog (not just optflow). I have been able to get around the errors by turning them off in cmake, but am interested in getting the optflow module working.
The whole cmake output is below (I don't know how to format it nicely):
Checking for Windows Platform SDK Checking for Visual Studio 2012 Could NOT find Jasper (missing: JASPER_LIBRARIES JASPER_INCLUDE_DIR) found IPP (ICV version): 8.2.1 [8.2.1] at: C:/opencv/sources/3rdparty/ippicv/unpack/ippicv_win Could NOT find PythonInterp: Found unsuitable version "2.7.8", but required is at least "3.4" (found C:/Anaconda/python.exe) Could NOT find PythonInterp: Found unsuitable version "2.7.8", but required is at least "3.2" (found C:/Anaconda/python.exe) Found Sphinx 1.2.3: C:/Anaconda/Scripts/sphinx-build.exe Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH) Could NOT find Matlab (missing: MATLAB_MEX_SCRIPT MATLAB_INCLUDE_DIRS MATLAB_ROOT_DIR MATLAB_LIBRARIES MATLAB_LIBRARY_DIRS MATLAB_MEXEXT MATLAB_ARCH MATLAB_BIN) Found VTK ver. 6.2.0 (usefile: C:/VTK-6.2.0/CMake/UseVTK.cmake) Tesseract: NO Module opencv_datasets disabled because opencv_face dependency can't be resolved! Assume that non-module dependency is available: WRAP (for module opencv_optflow) Assume that non-module dependency is available: python (for module opencv_optflow) Assume that non-module dependency is available: WRAP (for module opencv_optflow) Assume that non-module dependency is available: python (for module opencv_optflow)
General configuration for OpenCV 3.0.0-beta ===================================== Version control: unknown
Platform: Host: Windows 6.1 AMD64 CMake: 2.8.11.2 CMake generator: Visual Studio 12 CMake build tool: C:/PROGRA~2/MSBuild/12.0/Bin/MSBuild.exe MSVC: 1800
C/C++: Built as dynamic libs?: NO C++ Compiler: C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/cl.exe (ver 18.0.31101.0) C++ flags (Release): /DWIN32 /D_WINDOWS /W4 /GR /EHa /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /arch:SSE2 /Oi /fp:fast /wd4251 /MT /O2 /Ob2 /D NDEBUG C++ flags (Debug): /DWIN32 /D_WINDOWS /W4 /GR /EHa /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /arch:SSE2 /Oi /fp:fast /wd4251 /D_DEBUG /MTd /Zi /Ob0 /Od /RTC1 C Compiler: C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/cl.exe C flags (Release): /DWIN32 /D_WINDOWS /W3 /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /arch:SSE2 /Oi /fp:fast /MT /O2 /Ob2 /D NDEBUG C flags (Debug): /DWIN32 /D_WINDOWS /W3 /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /arch:SSE2 /Oi /fp:fast /D_DEBUG /MTd /Zi /Ob0 /Od /RTC1 Linker flags (Release): /machine:X86 /NODEFAULTLIB:atlthunk.lib /NODEFAULTLIB:msvcrt.lib /NODEFAULTLIB:msvcrtd.lib /INCREMENTAL:NO /NODEFAULTLIB:libcmtd.lib Linker flags (Debug): /machine:X86 /NODEFAULTLIB:atlthunk.lib /NODEFAULTLIB:msvcrt.lib /NODEFAULTLIB:msvcrtd.lib /debug /INCREMENTAL /NODEFAULTLIB:libcmt.lib Precompiled headers: YES
OpenCV modules: To be built: core imgproc imgcodecs videoio highgui bioinspired flann ml features2d calib3d objdetect latentsvm video optflow photo shape xfeatures2d stitching superres videostab xphoto python2 tracking ts Disabled: viz world adas bgsegm ccalib contrib_world face line_descriptor reg rgbd saliency surface_matching text ximgproc xobjdetect Disabled by dependency: datasets(deps: face text) Unavailable: androidcamera cuda cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaoptflow cudastereo cudawarping cudev java python3 cvv matlab
Windows RT support: NO
GUI: QT: NO Win32 UI: YES OpenGL support: NO VTK support: YES (ver 6.2.0)
Media I/O: ZLib: build (ver 1.2.8) JPEG: libjpeg (ver 90) WEBP: build (ver 0.3.1) PNG: build (ver 1.5.12) TIFF: build (ver 42 - 4.0.2) JPEG 2000: build (ver 1.900.1) OpenEXR: build (ver 1.7.1) GDAL: NO
Video I/O: Video for Windows: YES DC1394 1.x: NO DC1394 2.x: NO FFMPEG: YES (prebuilt binaries) codec: YES (ver 55.18.102) format: YES (ver 55.12.100) util: YES (ver 52.38.100) swscale: YES (ver 2.3.100) gentoo-style: YES OpenNI: NO OpenNI PrimeSensor Modules: NO OpenNI2: NO PvAPI: NO GigEVisionSDK: NO DirectShow: YES Media Foundation: NO XIMEA: NO Intel PerC: NO
Other third-party libraries: Use IPP: 8.2.1 [8.2.1] at: C:/opencv/sources/3rdparty/ippicv/unpack/ippicv_win Use IPP Async: NO Use Eigen: YES (ver 3.2.4) Use TBB: NO Use OpenMP: NO Use GCD NO Use Concurrency YES Use C=: NO Use Cuda: NO Use OpenCL: YES
OpenCL: Version: dynamic Include path: C:/opencv/sources/3rdparty/include/opencl/1.2 Use AMDFFT: NO Use AMDBLAS: NO
Python 2: Interpreter: C:/Anaconda/python.exe (ver 2.7.8) Libraries: C:/Anaconda/libs/python27.lib (ver 2.7.8) numpy: C:/Anaconda/lib/site-packages/numpy/core/include (ver 1.9.0) packages path: C:/Anaconda/Lib/site-packages
Python 3: Interpreter: NO
Python (for build): C:/Anaconda/python.exe
Java: ant: NO JNI: NO Java wrappers: NO Java tests: NO
Matlab: mex: NO
Documentation: Build Documentation: YES (only HTML and without math expressions) Sphinx: C:/Anaconda/Scripts/sphinx-build.exe (ver 1.2.3) PdfLaTeX compiler: NO PlantUML: NO Doxygen: NO
Tests and samples: Tests: YES Performance tests: NO C/C++ Examples: NO
Install path: C:/opencv/build/install
cvconfig.h is in: C:/opencv/build
Configuring done