Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to Compile Latest OpenCV Master with Eigen on Windows 10 and Visual Studio 2017 #12651

Closed
ahmedyarub opened this issue Sep 26, 2018 · 9 comments
Labels
category: build/install Hackathon https://opencv.org/opencv-hackathon-starts-next-week/ platform: win32

Comments

@ahmedyarub
Copy link

  • OpenCV => 4.0 - alpha
  • Operating System / Platform => Windows 10 64 Bit
  • Compiler => Visual Studio 2017
Detailed description

I'm building the latest master version with Eigen and I'm getting hundreds of errors that looks like this:

2>d:\opencv\eigen\eigen\src\plugins\reshapedmethods.h(121): error C2059: syntax error: '<end Parse>' (compiling source file D:\opencv\opencv\build\modules\core\stat.avx2.cpp)
2>d:\opencv\eigen\eigen\src\plugins\reshapedmethods.h(121): error C2059: syntax error: '<end Parse>' (compiling source file D:\opencv\opencv\build\modules\core\mathfuncs_core.avx2.cpp)
2>d:\opencv\eigen\eigen\src\plugins\reshapedmethods.h(123): error C2988: unrecognizable template declaration/definition (compiling source file D:\opencv\opencv\build\modules\core\stat.avx2.cpp)
2>d:\opencv\eigen\eigen\src\plugins\reshapedmethods.h(123): error C2988: unrecognizable template declaration/definition (compiling source file D:\opencv\opencv\build\modules\core\mathfuncs_core.avx2.cpp)
2>d:\opencv\eigen\eigen\src\plugins\reshapedmethods.h(123): error C2059: syntax error: '{' (compiling source file D:\opencv\opencv\build\modules\core\stat.avx2.cpp)
2>d:\opencv\eigen\eigen\src\plugins\reshapedmethods.h(123): error C2059: syntax error: '{' (compiling source file D:\opencv\opencv\build\modules\core\mathfuncs_core.avx2.cpp)
2>d:\opencv\eigen\eigen\src\plugins\reshapedmethods.h(123): error C2334: unexpected token(s) preceding '{'; skipping apparent function body (compiling source file D:\opencv\opencv\build\modules\core\stat.avx2.cpp)
2>d:\opencv\eigen\eigen\src\plugins\reshapedmethods.h(123): error C2334: unexpected token(s) preceding '{'; skipping apparent function body (compiling source file D:\opencv\opencv\build\modules\core\mathfuncs_core.avx2.cpp)
2>d:\opencv\eigen\eigen\src\plugins\reshapedmethods.h(139): error C2988: unrecognizable template declaration/definition (compiling source file D:\opencv\opencv\build\modules\core\stat.avx2.cpp)
2>d:\opencv\eigen\eigen\src\plugins\reshapedmethods.h(139): error C2988: unrecognizable template declaration/definition (compiling source file D:\opencv\opencv\build\modules\core\mathfuncs_core.avx2.cpp)
2>d:\opencv\eigen\eigen\src\plugins\reshapedmethods.h(139): error C2059: syntax error: 'return' (compiling source file D:\opencv\opencv\build\modules\core\stat.avx2.cpp)
2>d:\opencv\eigen\eigen\src\plugins\reshapedmethods.h(139): error C2059: syntax error: 'return' (compiling source file D:\opencv\opencv\build\modules\core\mathfuncs_core.avx2.cpp)
2>d:\opencv\eigen\eigen\src\plugins\reshapedmethods.h(139): error C2238: unexpected token(s) preceding ';' (compiling source file D:\opencv\opencv\build\modules\core\stat.avx2.cpp)
2>d:\opencv\eigen\eigen\src\plugins\reshapedmethods.h(139): error C2238: unexpected token(s) preceding ';' (compiling source file D:\opencv\opencv\build\modules\core\mathfuncs_core.avx2.cpp)
2>d:\opencv\eigen\eigen\src\plugins\reshapedmethods.h(142): error C2988: unrecognizable template declaration/definition (compiling source file D:\opencv\opencv\build\modules\core\stat.avx2.cpp)
2>d:\opencv\eigen\eigen\src\plugins\reshapedmethods.h(142): error C2988: unrecognizable template declaration/definition (compiling source file D:\opencv\opencv\build\modules\core\mathfuncs_core.avx2.cpp)
2>d:\opencv\eigen\eigen\src\plugins\reshapedmethods.h(142): error C2143: syntax error: missing ';' before ''template<'' (compiling source file D:\opencv\opencv\build\modules\core\stat.avx2.cpp)
2>d:\opencv\eigen\eigen\src\plugins\reshapedmethods.h(142): error C2143: syntax error: missing ';' before ''template<'' (compiling source file D:\opencv\opencv\build\modules\core\mathfuncs_core.avx2.cpp)
7>d:\opencv\eigen\eigen\src\plugins\reshapedmethods.h(121): warning C4346: 'Eigen::internal::get_compiletime_reshape_size<NColsType,NRowsType,& Eigen::DenseBase<Derived>::SizeAtCompileTime>::value': dependent name is not a type (compiling source file D:\opencv\opencv\modules\imgproc\src\imgwarp.sse4_1.cpp)
7>d:\opencv\eigen\eigen\src\plugins\reshapedmethods.h(121): note: prefix with 'typename' to indicate a type (compiling source file D:\opencv\opencv\modules\imgproc\src\imgwarp.sse4_1.cpp)
7>d:\opencv\eigen\eigen\src\core\densebase.h(617): note: see reference to class template instantiation 'Eigen::DenseBase<Derived>' being compiled (compiling source file D:\opencv\opencv\modules\imgproc\src\imgwarp.sse4_1.cpp)
7>d:\opencv\eigen\eigen\src\plugins\reshapedmethods.h(121): error C2059: syntax error: '<end Parse>' (compiling source file D:\opencv\opencv\modules\imgproc\src\imgwarp.sse4_1.cpp)
7>d:\opencv\eigen\eigen\src\plugins\reshapedmethods.h(123): error C2988: unrecognizable template declaration/definition (compiling source file D:\opencv\opencv\modules\imgproc\src\imgwarp.sse4_1.cpp)
7>d:\opencv\eigen\eigen\src\plugins\reshapedmethods.h(123): error C2059: syntax error: '{' (compiling source file D:\opencv\opencv\modules\imgproc\src\imgwarp.sse4_1.cpp)
7>d:\opencv\eigen\eigen\src\plugins\reshapedmethods.h(123): error C2334: unexpected token(s) preceding '{'; skipping apparent function body (compiling source file D:\opencv\opencv\modules\imgproc\src\imgwarp.sse4_1.cpp)
7>d:\opencv\eigen\eigen\src\plugins\reshapedmethods.h(139): error C2988: unrecognizable template declaration/definition (compiling source file D:\opencv\opencv\modules\imgproc\src\imgwarp.sse4_1.cpp)
7>d:\opencv\eigen\eigen\src\plugins\reshapedmethods.h(139): error C2059: syntax error: 'return' (compiling source file D:\opencv\opencv\modules\imgproc\src\imgwarp.sse4_1.cpp)
7>d:\opencv\eigen\eigen\src\plugins\reshapedmethods.h(139): error C2238: unexpected token(s) preceding ';' (compiling source file D:\opencv\opencv\modules\imgproc\src\imgwarp.sse4_1.cpp)
7>d:\opencv\eigen\eigen\src\plugins\reshapedmethods.h(142): error C2988: unrecognizable template declaration/definition (compiling source file D:\opencv\opencv\modules\imgproc\src\imgwarp.sse4_1.cpp)
7>d:\opencv\eigen\eigen\src\plugins\reshapedmethods.h(142): error C2143: syntax error: missing ';' before ''template<'' (compiling source file D:\opencv\opencv\modules\imgproc\src\imgwarp.sse4_1.cpp)
7>d:\opencv\eigen\eigen\src\plugins\reshapedmethods.h(121): warning C4346: 'Eigen::internal::get_compiletime_reshape_size<NColsType,NRowsType,& Eigen::DenseBase<Derived>::SizeAtCompileTime>::value': dependent name is not a type (compiling source file D:\opencv\opencv\modules\imgproc\src\resize.sse4_1.cpp)
7>d:\opencv\eigen\eigen\src\plugins\reshapedmethods.h(121): note: prefix with 'typename' to indicate a type (compiling source file D:\opencv\opencv\modules\imgproc\src\resize.sse4_1.cpp)
7>d:\opencv\eigen\eigen\src\core\densebase.h(617): note: see reference to class template instantiation 'Eigen::DenseBase<Derived>' being compiled (compiling source file D:\opencv\opencv\modules\imgproc\src\resize.sse4_1.cpp)
7>d:\opencv\eigen\eigen\src\plugins\reshapedmethods.h(121): error C2059: syntax error: '<end Parse>' (compiling source file D:\opencv\opencv\modules\imgproc\src\resize.sse4_1.cpp)
7>d:\opencv\eigen\eigen\src\plugins\reshapedmethods.h(123): error C2988: unrecognizable template declaration/definition (compiling source file D:\opencv\opencv\modules\imgproc\src\resize.sse4_1.cpp)
7>d:\opencv\eigen\eigen\src\plugins\reshapedmethods.h(123): error C2059: syntax error: '{' (compiling source file D:\opencv\opencv\modules\imgproc\src\resize.sse4_1.cpp)
7>d:\opencv\eigen\eigen\src\plugins\reshapedmethods.h(123): error C2334: unexpected token(s) preceding '{'; skipping apparent function body (compiling source file D:\opencv\opencv\modules\imgproc\src\resize.sse4_1.cpp)
7>d:\opencv\eigen\eigen\src\plugins\reshapedmethods.h(139): error C2988: unrecognizable template declaration/definition (compiling source file D:\opencv\opencv\modules\imgproc\src\resize.sse4_1.cpp)
7>d:\opencv\eigen\eigen\src\plugins\reshapedmethods.h(139): error C2059: syntax error: 'return' (compiling source file D:\opencv\opencv\modules\imgproc\src\resize.sse4_1.cpp)
7>d:\opencv\eigen\eigen\src\plugins\reshapedmethods.h(139): error C2238: unexpected token(s) preceding ';' (compiling source file D:\opencv\opencv\modules\imgproc\src\resize.sse4_1.cpp)
7>d:\opencv\eigen\eigen\src\plugins\reshapedmethods.h(142): error C2988: unrecognizable template declaration/definition (compiling source file D:\opencv\opencv\modules\imgproc\src\resize.sse4_1.cpp)
7>d:\opencv\eigen\eigen\src\plugins\reshapedmethods.h(142): error C2143: syntax error: missing ';' before ''template<'' (compiling source file D:\opencv\opencv\modules\imgproc\src\resize.sse4_1.cpp)
@ahmedyarub
Copy link
Author

It's definitely Eigen. I could build everything when Eigen is disabled.

@Mainvooid
Copy link
Contributor

Mainvooid commented Sep 29, 2018

win10_x64 +VS2017 build opencv3.4.3+CUDA9.2+MKL+TBB+LAPACK+EIGEN3.3.5+contrib+CXX11 support

Success

Do not compile world module first.

If you success then you can include world module.

@fifothekid

@ahmedyarub
Copy link
Author

Master version of OpenCV and Eigen, coupled with MKL, TBB, LAPACK, and contrib still gives the same error
Did you test on the latest master or on the latest official release?
Here is my CMake summary:

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-4.0.0-pre-libjpeg-turbo
Looking for Mfapi.h
Looking for Mfapi.h - found
found Intel IPP (ICV version): 2017.0.3 [2017.0.3]
at: D:/opencv/opencv/build/3rdparty/ippicv/ippicv_win
found Intel IPP IW sources: 2017.0.3
at: D:/opencv/opencv/build/3rdparty/ippicv/ippiw_win
LAPACK(MKL): LAPACK_LIBRARIES: C:/Program Files (x86)/IntelSWTools/compilers_and_libraries/windows/mkl/lib/intel64/mkl_intel_lp64.lib;C:/Program Files (x86)/IntelSWTools/compilers_and_libraries/windows/mkl/lib/intel64/mkl_sequential.lib;C:/Program Files (x86)/IntelSWTools/compilers_and_libraries/windows/mkl/lib/intel64/mkl_core.lib
LAPACK(MKL): Support is enabled.
Found apache ant: C:/apache-ant-1.10.5/bin/ant.bat (1.10.5)
Found VTK 9.0.0 (C:/Program Files/VTK/lib/cmake/vtk-9.0/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.
Failed to find installed gflags CMake configuration, searching for gflags build directories exported with CMake.
Failed to find gflags - Failed to find an installed/exported CMake configuration for gflags, will perform search for installed gflags components.
Failed to find gflags - Could not find gflags include directory, set GFLAGS_INCLUDE_DIR to directory containing gflags/gflags.h
Failed to find glog - Could not find glog include directory, set GLOG_INCLUDE_DIR to directory containing glog/logging.h
Module opencv_sfm disabled because the following dependencies are not found: Glog/Gflags
Excluding from source files list: <BUILD>/modules/dnn/layers/layers_common.avx512_skx.cpp
Tesseract:   YES

General configuration for OpenCV 4.0.0-pre =====================================
  Version control:               4.0.0-alpha-64-gea92c2b1a

  Extra modules:
    Location (extra):            D:/opencv/opencv_contrib/modules
    Version control (extra):     4.0.0-alpha-24-g530f1a23

  Platform:
    Timestamp:                   2018-09-26T21:24:35Z
    Host:                        Windows 10.0.17134 AMD64
    CMake:                       3.12.2
    CMake generator:             Visual Studio 15 2017 Win64
    CMake build tool:            C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/MSBuild/15.0/Bin/MSBuild.exe
    MSVC:                        1915

  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 (4 files):          + SSSE3 SSE4_1
      SSE4_2 (2 files):          + SSSE3 SSE4_1 POPCNT SSE4_2
      FP16 (1 files):            + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 AVX
      AVX (6 files):             + SSSE3 SSE4_1 POPCNT SSE4_2 AVX
      AVX2 (10 files):           + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2

  C/C++:
    Built as dynamic libs?:      YES
    C++ Compiler:                C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/VC/Tools/MSVC/14.15.26726/bin/Hostx86/x64/cl.exe  (ver 19.15.26730.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/2017/Enterprise/VC/Tools/MSVC/14.15.26726/bin/Hostx86/x64/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:         NO
    Extra dependencies:
    3rdparty dependencies:

  OpenCV modules:
    To be built:                 aruco bgsegm bioinspired calib3d ccalib core cvv datasets dnn dnn_objdetect dpm face features2d flann fuzzy gapi hfs highgui img_hash imgcodecs imgproc java java_bindings_generator line_descriptor ml objdetect optflow phase_unwrapping photo plot python3 python_bindings_generator reg rgbd saliency shape stereo stitching structured_light superres surface_matching text tracking ts video videoio videostab viz xfeatures2d ximgproc xobjdetect xphoto
    Disabled:                    python2 world
    Disabled by dependency:      -
    Unavailable:                 cnn_3dobj cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev freetype hdf js matlab ovis sfm
    Applications:                tests perf_tests apps
    Documentation:               NO
    Non-free algorithms:         YES

  Windows RT support:            NO

  GUI: 
    QT:                          YES (ver 5.11.2)
      QT OpenGL support:         NO
    Win32 UI:                    YES
    VTK support:                 YES (ver 9.0.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
    PFM:                         YES

  Video I/O:
    Video for Windows:           YES
    DC1394:                      NO
    FFMPEG:                      YES (prebuilt binaries)
      avcodec:                   YES (ver 58.18.100)
      avformat:                  YES (ver 58.12.100)
      avutil:                    YES (ver 56.14.100)
      swscale:                   YES (ver 5.1.100)
      avresample:                YES (ver 4.0.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:                   D:/opencv/opencv/build/3rdparty/ippicv/ippicv_win
    Intel IPP IW:                sources (2017.0.3)
              at:                D:/opencv/opencv/build/3rdparty/ippicv/ippiw_win
    Lapack:                      YES (C:/Program Files (x86)/IntelSWTools/compilers_and_libraries/windows/mkl/lib/intel64/mkl_intel_lp64.lib C:/Program Files (x86)/IntelSWTools/compilers_and_libraries/windows/mkl/lib/intel64/mkl_sequential.lib C:/Program Files (x86)/IntelSWTools/compilers_and_libraries/windows/mkl/lib/intel64/mkl_core.lib)
    Eigen:                       YES (ver 3.3.90)
    Custom HAL:                  NO
    Protobuf:                    build (3.5.1)

  OpenCL:                        YES (no extra features)
    Include path:                D:/opencv/opencv/3rdparty/include/opencl/1.2
    Link libraries:              Dynamic load

  Python 3:
    Interpreter:                 C:/Users/FiFo/AppData/Local/Programs/Python/Python36/python.exe (ver 3.6.6)
    Libraries:                   C:/Users/FiFo/AppData/Local/Programs/Python/Python36/libs/python36.lib (ver 3.6.6)
    numpy:                       C:/Users/FiFo/AppData/Local/Programs/Python/Python36/lib/site-packages/numpy/core/include (ver 1.15.1)
    packages path:               C:/Users/FiFo/AppData/Local/Programs/Python/Python36/Lib/site-packages

  Python (for build):            C:/Users/FiFo/AppData/Local/Programs/Python/Python27/python.exe

  Java:                          
    ant:                         C:/apache-ant-1.10.5/bin/ant.bat (ver 1.10.5)
    JNI:                         C:/Program Files/Java/jdk1.8.0_181/include C:/Program Files/Java/jdk1.8.0_181/include/win32 C:/Program Files/Java/jdk1.8.0_181/include
    Java wrappers:               YES
    Java tests:                  YES

  Install to:                    D:/opencv/opencv/build/install
-----------------------------------------------------------------

Configuring done
Generating done

@Mainvooid
Copy link
Contributor

Mainvooid commented Sep 30, 2018

@fifothekid
OpenCV3.4.3 SUCCESS

......I hava no idea if you want to compile all options.

and if you include contrib,do not build with python and java,

try one by one ,good luck!

@Mainvooid
Copy link
Contributor

Mainvooid commented Sep 30, 2018

refer this,after success then I include world module.

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 TBB (cmake): D:/ProgramData/tbb2018_20180618oss/bin/intel64/vc14/tbb.dll
found Intel IPP (ICV version): 2017.0.3 [2017.0.3]
at: D:/ProgramData/opencv-3.4.3-with-contrib/opencv/build/3rdparty/ippicv/ippicv_win
found Intel IPP IW sources: 2017.0.3
at: D:/ProgramData/opencv-3.4.3-with-contrib/opencv/build/3rdparty/ippicv/ippiw_win
CUDA detected: 9.2
CUDA NVCC target flags: -gencode;arch=compute_30,code=sm_30;-gencode;arch=compute_35,code=sm_35;-gencode;arch=compute_37,code=sm_37;-gencode;arch=compute_50,code=sm_50;-gencode;arch=compute_52,code=sm_52;-gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_61,code=sm_61;-gencode;arch=compute_70,code=sm_70;-D_FORCE_INLINES
LAPACK(MKL): LAPACK_LIBRARIES: C:/Program Files (x86)/IntelSWTools/compilers_and_libraries_2018.3.210/windows/mkl/lib/intel64/mkl_intel_lp64.lib;C:/Program Files (x86)/IntelSWTools/compilers_and_libraries_2018.3.210/windows/mkl/lib/intel64/mkl_tbb_thread.lib;C:/Program Files (x86)/IntelSWTools/compilers_and_libraries_2018.3.210/windows/mkl/lib/intel64/mkl_core.lib;C:/Program Files (x86)/IntelSWTools/compilers_and_libraries_2018.3.210/windows/tbb/lib/intel64/vc_mt/tbb.lib
LAPACK(MKL): Support is enabled.
VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file
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.
Failed to find installed gflags CMake configuration, searching for gflags build directories exported with CMake.
Failed to find gflags - Failed to find an installed/exported CMake configuration for gflags, will perform search for installed gflags components.
Failed to find gflags - Could not find gflags include directory, set GFLAGS_INCLUDE_DIR to directory containing gflags/gflags.h
Failed to find glog - Could not find glog include directory, set GLOG_INCLUDE_DIR to directory containing glog/logging.h
Module opencv_sfm disabled because the following dependencies are not found: Glog/Gflags
Processing WORLD modules...
General configuration for OpenCV 3.4.3 =====================================
  Version control:               unknown

  Extra modules:
    Location (extra):            D:/ProgramData/opencv-3.4.3-with-contrib/opencv_contrib-3.4.3/modules
    Version control (extra):     unknown

  Platform:
    Timestamp:                   2018-09-07T06:42:07Z
    Host:                        Windows 10.0.16299 AMD64
    CMake:                       3.12.1
    CMake generator:             Visual Studio 15 2017 Win64
    CMake build tool:            d:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/MSBuild/15.0/Bin/MSBuild.exe
    MSVC:                        1913

  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 (3 files):          + SSSE3 SSE4_1
      SSE4_2 (1 files):          + SSSE3 SSE4_1 POPCNT SSE4_2
      FP16 (1 files):            + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 AVX
      AVX (5 files):             + SSSE3 SSE4_1 POPCNT SSE4_2 AVX
      AVX2 (9 files):            + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2

  C/C++:
    Built as dynamic libs?:      YES
    C++11:                       YES
    C++ Compiler:                d:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/VC/Tools/MSVC/14.13.26128/bin/HostX86/x64/cl.exe  (ver 19.13.26132.1)
    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 /MP8   /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 /MP8   /MDd /Zi /Ob0 /Od /RTC1 
    C Compiler:                  d:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/VC/Tools/MSVC/14.13.26128/bin/HostX86/x64/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        /MP8    /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        /MP8  /MDd /Zi /Ob0 /Od /RTC1 
    Linker flags (Release):      /machine:x64  /INCREMENTAL:NO 
    Linker flags (Debug):        /machine:x64  /debug /INCREMENTAL 
    ccache:                      NO
    Precompiled headers:         NO
    Extra dependencies:          cudart.lib nppc.lib nppial.lib nppicc.lib nppicom.lib nppidei.lib nppif.lib nppig.lib nppim.lib nppist.lib nppisu.lib nppitc.lib npps.lib cublas.lib cufft.lib -LIBPATH:C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v9.2/lib/x64
    3rdparty dependencies:

  OpenCV modules:
    To be built:                 aruco bgsegm bioinspired calib3d ccalib core cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev datasets dnn dnn_objdetect dpm face features2d flann fuzzy hdf hfs highgui img_hash imgcodecs imgproc line_descriptor ml objdetect optflow phase_unwrapping photo plot reg rgbd saliency shape stereo stitching structured_light superres surface_matching text tracking ts video videoio videostab world xfeatures2d ximgproc xobjdetect xphoto
    Disabled:                    java_bindings_generator js python3 python_bindings_generator
    Disabled by dependency:      -
    Unavailable:                 cnn_3dobj cvv freetype java matlab ovis python2 python2 sfm viz
    Applications:                apps
    Documentation:               NO
    Non-free algorithms:         NO

  Windows RT support:            NO

  GUI: 
    Win32 UI:                    YES
    VTK support:                 NO

  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:            TBB (ver . interface )

  Trace:                         YES (with Intel ITT)

  Other third-party libraries:
    Intel IPP:                   2017.0.3 [2017.0.3]
           at:                   D:/ProgramData/opencv-3.4.3-with-contrib/opencv/build/3rdparty/ippicv/ippicv_win
    Intel IPP IW:                sources (2017.0.3)
              at:                D:/ProgramData/opencv-3.4.3-with-contrib/opencv/build/3rdparty/ippicv/ippiw_win
    Lapack:                      YES (C:/Program Files (x86)/IntelSWTools/compilers_and_libraries_2018.3.210/windows/mkl/lib/intel64/mkl_intel_lp64.lib C:/Program Files (x86)/IntelSWTools/compilers_and_libraries_2018.3.210/windows/mkl/lib/intel64/mkl_tbb_thread.lib C:/Program Files (x86)/IntelSWTools/compilers_and_libraries_2018.3.210/windows/mkl/lib/intel64/mkl_core.lib C:/Program Files (x86)/IntelSWTools/compilers_and_libraries_2018.3.210/windows/tbb/lib/intel64/vc_mt/tbb.lib)
    Eigen:                       YES (ver 3.3.5)
    Custom HAL:                  NO
    Protobuf:                    build (3.5.1)

  NVIDIA CUDA:                   YES (ver 9.2, CUFFT CUBLAS NVCUVID)
    NVIDIA GPU arch:             30 35 37 50 52 60 61 70
    NVIDIA PTX archs:

  OpenCL:                        YES (no extra features)
    Include path:                D:/ProgramData/opencv-3.4.3-with-contrib/opencv/sources/3rdparty/include/opencl/1.2
    Link libraries:              Dynamic load

  Python (for build):            D:/ProgramData/Python/Python36/python.exe

  Install to:                    D:/ProgramData/opencv-3.4.3-with-contrib/opencv/build/install
-----------------------------------------------------------------

cuda9.2 highest support MSVC=1913 (MSVC++ 14.13 _MSC_VER==1913 VS2017 version 15.6)
c:\program files\nvidia gpu computing toolkit\cuda\v9.2\include\crt /host_config.h

#if defined(_WIN32)
#if _MSC_VER < 1600 || _MSC_VER > 1913
#error -- unsupported Microsoft Visual Studio version! http://fanyi.baidu.com/Only the versions 2012, 2013, 2015 and 2017 are supported!
#elif _MSC_VER == 1600 /* _MSC_VERION == 1600 */
#pragma message("support for Microsoft Visual Studio 2010 has been deprecated!")
#endif /* _MSC_VER < 1600 || _MSC_VER > 1800 || _MSC_VERSION == 1600 */
#endif /* _WIN32 */

maybe cuda10.0 does not have this problem.

@ahmedyarub
Copy link
Author

ahmedyarub commented Sep 30, 2018

I'm sorry this makes no sense to me at all! I do not have an Nvidia graphics card and I'm not compiling for CUDA. I don't know why are we talking about this subject and why is this issue tagged with "gpu/cuda"?!! I'm neither compiling the world module and that assumption of "and if you include contrib,do not build with python and java," is simply wrong because I've been doing that at least for the last 50 builds and it has always worked
@alalek can you explain to me please?

@ahmedyarub
Copy link
Author

still looking for a solution
do you have any advice on how I can investigate this problem?

@ahmedyarub
Copy link
Author

problem solved after latest update to Eigen
http://eigen.tuxfamily.org/bz/show_bug.cgi?id=1603

@bonsoirval
Copy link

bonsoirval commented Jul 18, 2019

CMAKE_INSTALL_PREFIX to CMAKE_INSTALL_PREFIX=/usr/local
helped me to build https://www.learnopencv.com/install-opencv-4-on-raspberry-pi/

@asmorkalov asmorkalov added the Hackathon https://opencv.org/opencv-hackathon-starts-next-week/ label Mar 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: build/install Hackathon https://opencv.org/opencv-hackathon-starts-next-week/ platform: win32
Projects
None yet
Development

No branches or pull requests

5 participants