Hello, I already installed opencv on windows. It is fine. Now, I want to use opencv_sfm module. So, I do this under this instruction http://www.siddharth-agrawal.com/build-opencv-sfm-on-windows/. In CMake, it seems fine. In Microsoft VS 2015, it shows errors. Here is my cmake_build output. **Selecting Windows SDK version to target Windows 10.0.17763. Could NOT find PythonInterp: Found unsuitable version "2.7.14", but required is at least "3.4" (found D:/Python2.7.7/python.exe) Could NOT find PythonInterp: Found unsuitable version "2.7.14", but required is at least "3.2" (found D:/Python2.7.7/python.exe) AVX_512F is not supported by C++ compiler AVX512_SKX is not supported by C++ compiler Dispatch optimization AVX512_SKX is not available, skipped libjpeg-turbo: VERSION = 1.5.3, BUILD = opencv-3.4.3-libjpeg-turbo Looking for Mfapi.h Looking for Mfapi.h - found found Intel IPP (ICV version): 2017.0.3 [2017.0.3] at: C:/Users/Yone/Documents/openCV/opencv-3.4.3/build/3rdparty/ippicv/ippicv_win found Intel IPP IW sources: 2017.0.3 at: C:/Users/Yone/Documents/openCV/opencv-3.4.3/build/3rdparty/ippicv/ippiw_win Could not find OpenBLAS include. Turning OpenBLAS_FOUND off Could not find OpenBLAS lib. Turning OpenBLAS_FOUND off Could NOT find BLAS (missing: BLAS_LIBRARIES) LAPACK requires BLAS A library with LAPACK API not found. Please specify library location. 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_LIBRARIES MATLAB_LIBRARY_DIRS MATLAB_MEXEXT MATLAB_ARCH MATLAB_BIN) Found VTK 6.3.0 (C:/Program Files (x86)/VTK/lib/cmake/vtk-6.3/UseVTK.cmake) Caffe: NO Protobuf: NO Glog: NO freetype2: NO harfbuzz: NO Module opencv_ovis disabled because OGRE3D was not found No preference for use of exported gflags CMake configuration set, and no hints for include/library directories provided. Defaulting to preferring an installed/exported gflags CMake configuration if available. Found installed version of gflags: C:/Program Files (x86)/gflags/lib/cmake/gflags Detected gflags version: 2.2.2 CMake Warning (dev) at D:/dev/ceres/ceres-solver-1.13.0/ceres-bin/CeresConfig.cmake:267: Syntax Warning in cmake code at column 40
Argument not separated from preceding token by whitespace. Call Stack (most recent call first): C:/Users/Yone/Documents/openCV/opencv_contrib-3.4.3/modules/sfm/CMakeLists.txt:8 (find_package) This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at D:/dev/ceres/ceres-solver-1.13.0/ceres-bin/CeresConfig.cmake:299: Syntax Warning in cmake code at column 44
Argument not separated from preceding token by whitespace. Call Stack (most recent call first): C:/Users/Yone/Documents/openCV/opencv_contrib-3.4.3/modules/sfm/CMakeLists.txt:8 (find_package) This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at D:/dev/ceres/ceres-solver-1.13.0/ceres-bin/CeresConfig.cmake:302: Syntax Warning in cmake code at column 66
Argument not separated from preceding token by whitespace. Call Stack (most recent call first): C:/Users/Yone/Documents/openCV/opencv_contrib-3.4.3/modules/sfm/CMakeLists.txt:8 (find_package) This warning is for project developers. Use -Wno-dev to suppress it.
Found required Ceres dependency: Eigen version 3.3.4 in C:/eigen3 Found installed version of glog: C:/Program Files (x86)/glog/lib/cmake/glog Detected glog version: 0.4.0 Found required Ceres dependency: glog Found installed version of gflags: C:/Program Files (x86)/gflags/lib/cmake/gflags Detected gflags version: 2.2.2 Found required Ceres dependency: gflags Found Ceres version: 1.13.0 exported from build directory: D:/dev/ceres/ceres-solver-1.13.0/ceres-bin with components: [SchurSpecializations, OpenMP] Checking SFM deps... TRUE Excluding from source files list: <build>/modules/dnn/layers/layers_common.avx512_skx.cpp Tesseract: NO No preference for use of exported gflags CMake configuration set, and no hints for include/library directories provided. Defaulting to preferring an installed/exported gflags CMake configuration if available. Found installed version of gflags: C:/Program Files (x86)/gflags/lib/cmake/gflags Detected gflags version: 2.2.2 CMake Warning (dev) at D:/dev/ceres/ceres-solver-1.13.0/ceres-bin/CeresConfig.cmake:267: Syntax Warning in cmake code at column 40
Argument not separated from preceding token by whitespace. Call Stack (most recent call first): C:/Users/Yone/Documents/openCV/opencv_contrib-3.4.3/modules/sfm/CMakeLists.txt:8 (find_package) This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at D:/dev/ceres/ceres-solver-1.13.0/ceres-bin/CeresConfig.cmake:299: Syntax Warning in cmake code at column 44
Argument not separated from preceding token by whitespace. Call Stack (most recent call first): C:/Users/Yone/Documents/openCV/opencv_contrib-3.4.3/modules/sfm/CMakeLists.txt:8 (find_package) This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at D:/dev/ceres/ceres-solver-1.13.0/ceres-bin/CeresConfig.cmake:302: Syntax Warning in cmake code at column 66
Argument not separated from preceding token by whitespace. Call Stack (most recent call first): C:/Users/Yone/Documents/openCV/opencv_contrib-3.4.3/modules/sfm/CMakeLists.txt:8 (find_package) This warning is for project developers. Use -Wno-dev to suppress it.
Found required Ceres dependency: Eigen version 3.3.4 in C:/eigen3 Found installed version of glog: C:/Program Files (x86)/glog/lib/cmake/glog Detected glog version: 0.4.0 Found required Ceres dependency: glog Found installed version of gflags: C:/Program Files (x86)/gflags/lib/cmake/gflags Detected gflags version: 2.2.2 Found required Ceres dependency: gflags Found Ceres version: 1.13.0 exported from build directory: D:/dev/ceres/ceres-solver-1.13.0/ceres-bin with components: [SchurSpecializations, OpenMP] Checking SFM deps... TRUE
General configuration for OpenCV 3.4.3 ===================================== Version control: unknown
Extra modules: Location (extra): C:/Users/Yone/Documents/openCV/opencv_contrib-3.4.3/modules Version control (extra): unknown
Platform: Timestamp: 2019-06-16T07:30:04Z Host: Windows 10.0.17763 AMD64 CMake: 3.14.4 CMake generator: Visual Studio 14 2015 CMake build tool: C:/Program Files (x86)/MSBuild/14.0/bin/MSBuild.exe MSVC: 1900
CPU/HW features: Baseline: SSE SSE2 SSE3 requested: SSE3 Dispatched code generation: SSE4_1 SSE4_2 FP16 AVX AVX2 requested: SSE4_1 SSE4_2 AVX FP16 AVX2 AVX512_SKX SSE4_1 (5 files): + SSSE3 SSE4_1 SSE4_2 (2 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 (2 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 AVX AVX (6 files): + SSSE3 SSE4_1 POPCNT SSE4_2 AVX AVX2 (11 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2
C/C++: Built as dynamic libs?: YES C++11: YES C++ Compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe (ver 19.0.24210.0) C++ flags (Release): /DWIN32 /D_WINDOWS /W4 /GR /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /EHa /wd4127 /wd4251 /wd4324 /wd4275 /wd4512 /wd4589 /MP4 /MD /O2 /Ob2 /DNDEBUG C++ flags (Debug): /DWIN32 /D_WINDOWS /W4 /GR /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /EHa /wd4127 /wd4251 /wd4324 /wd4275 /wd4512 /wd4589 /MP4 /MDd /Zi /Ob0 /Od /RTC1 C Compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/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 /Oi /MP4 /MD /O2 /Ob2 /DNDEBUG C flags (Debug): /DWIN32 /D_WINDOWS /W3 /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /MP4 /MDd /Zi /Ob0 /Od /RTC1 Linker flags (Release): /machine:x64 /INCREMENTAL:NO Linker flags (Debug): /machine:x64 /debug /INCREMENTAL ccache: NO Precompiled headers: YES Extra dependencies: 3rdparty dependencies:
OpenCV modules: To be built: aruco bgsegm bioinspired calib3d ccalib core datasets dnn dnn_objdetect dpm face features2d flann fuzzy hfs highgui img_hash imgcodecs imgproc java_bindings_generator line_descriptor ml objdetect optflow phase_unwrapping photo plot python_bindings_generator reg rgbd saliency sfm shape stereo stitching structured_light superres surface_matching text tracking ts video videoio videostab viz xfeatures2d ximgproc xobjdetect xphoto Disabled: js world Disabled by dependency: - Unavailable: cnn_3dobj cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev cvv freetype hdf java matlab ovis python2 python3 Applications: tests perf_tests apps Documentation: NO Non-free algorithms: YES
Windows RT support: NO
GUI: Win32 UI: YES VTK support: YES (ver 6.3.0)
Media I/O: ZLib: build (ver 1.2.11) JPEG: build-libjpeg-turbo (ver 1.5.3-62) WEBP: build (ver encoder: 0x020e) PNG: build (ver 1.6.34) TIFF: build (ver 42 - 4.0.9) JPEG 2000: build (ver 1.900.1) OpenEXR: build (ver 1.7.1) HDR: YES SUNRASTER: YES PXM: YES
Video I/O: Video for Windows: YES DC1394: NO FFMPEG: YES (prebuilt binaries) avcodec: YES (ver 57.107.100) avformat: YES (ver 57.83.100) avutil: YES (ver 55.78.100) swscale: YES (ver 4.8.100) avresample: YES (ver 3.7.0) GStreamer: NO DirectShow: YES Media Foundation: YES
Parallel framework: Concurrency
Trace: YES (with Intel ITT)
Other third-party libraries: Intel IPP: 2017.0.3 [2017.0.3] at: C:/Users/Yone/Documents/openCV/opencv-3.4.3/build/3rdparty/ippicv/ippicv_win Intel IPP IW: sources (2017.0.3) at: C:/Users/Yone/Documents/openCV/opencv-3.4.3/build/3rdparty/ippicv/ippiw_win Lapack: NO Eigen: YES (ver 3.3.4) Custom HAL: NO Protobuf: build (3.5.1)
OpenCL: YES (no extra features) Include path: C:/Users/Yone/Documents/openCV/opencv-3.4.3/3rdparty/include/opencl/1.2 Link libraries: Dynamic load
Python (for build): D:/Python2.7.7/python.exe
Java:
ant: NO
JNI: NO
Java wrappers: NO
Java tests: NO
Matlab: NO
Install to: C:/Users/Yone/Documents/openCV/opencv-3.4.3/build/install
Configuring done Generating done**
And this is my errors *1>------ Build started: Project: multiview, Configuration: Release x64 ------ 2>------ Skipped Build: Project: gen_opencv_python_source, Configuration: Release x64 ------ 2>Project not selected to build for this solution configuration 3>------ Skipped Build: Project: opencv_perf_tests, Configuration: Release x64 ------ 3>Project not selected to build for this solution configuration 4>------ Skipped Build: Project: gen_opencv_java_source, Configuration: Release x64 ------ 4>Project not selected to build for this solution configuration 5>------ Skipped Build: Project: RUN_TESTS, Configuration: Release x64 ------ 5>Project not selected to build for this solution configuration 6>------ Skipped Build: Project: uninstall, Configuration: Release x64 ------ 6>Project not selected to build for this solution configuration 1> fundamental.cc 1> homography.cc 1>D:\dev\ceres\ceres-solver-1.13.0\include\ceres/internal/port.h(37): fatal error C1083: Cannot open include file: 'ceres/internal/config.h': No such file or directory (compiling source file C:\Users\Yone\Documents\openCV\opencv_contrib-3.4.3\modules\sfm\src\libmv_light\libmv\multiview\homography.cc) 1>D:\dev\ceres\ceres-solver-1.13.0\include\ceres/internal/port.h(37): fatal error C1083: Cannot open include file: 'ceres/internal/config.h': No such file or directory (compiling source file C:\Users\Yone\Documents\openCV\opencv_contrib-3.4.3\modules\sfm\src\libmv_light\libmv\multiview\fundamental.cc) 7>------ Build started: Project: simple_pipeline, Configuration: Release x64 ------ 7> bundle.cc 7> intersect.cc 7> keyframe_selection.cc 7>D:\dev\ceres\ceres-solver-1.13.0\include\ceres/internal/port.h(37): fatal error C1083: Cannot open include file: 'ceres/internal/config.h': No such file or directory (compiling source file C:\Users\Yone\Documents\openCV\opencv_contrib-3.4.3\modules\sfm\src\libmv_light\libmv\simple_pipeline\keyframe_selection.cc) 7>D:\dev\ceres\ceres-solver-1.13.0\include\ceres/internal/port.h(37): fatal error C1083: Cannot open include file: 'ceres/internal/config.h': No such file or directory (compiling source file C:\Users\Yone\Documents\openCV\opencv_contrib-3.4.3\modules\sfm\src\libmv_light\libmv\simple_pipeline\bundle.cc) 7>D:\dev\ceres\ceres-solver-1.13.0\include\ceres/internal/port.h(37): fatal error C1083: Cannot open include file: 'ceres/internal/config.h': No such file or directory (compiling source file C:\Users\Yone\Documents\openCV\opencv_contrib-3.4.3\modules\sfm\src\libmv_light\libmv\simple_pipeline\intersect.cc) 8>------ Build started: Project: opencv_sfm, Configuration: Release x64 ------ 8>LINK : fatal error LNK1181: cannot open input file '....\lib\Release\multiview.lib' 9>------ Build started: Project: opencv_test_sfm, Configuration: Release x64 ------ 10>------ Skipped Build: Project: opencv_modules, Configuration: Release x64 ------ 10>Project not selected to build for this solution configuration 9>LINK : fatal error LNK1181: cannot open input file '....\lib\Release\opencv_sfm343.lib' 11>------ Skipped Build: Project: opencv_tests, Configuration: Release x64 ------ 11>Project not selected to build for this solution configuration 12>------ Skipped Build: Project: PACKAGE, Configuration: Release x64 ------ 12>Project not selected to build for this solution configuration 13>------ Skipped Build: Project: INSTALL, Configuration: Release x64 ------ 13>Project not selected to build for this solution configuration ========== Build: 0 succeeded, 4 failed, 142 up-to-date, 9 skipped ========== *
Please advice me. Thank you in advance.