Install OpenCV with SIFT on Windows 10

asked 2019-06-05 11:59:37 -0500

OssNass gravatar image

updated 2019-06-06 09:56:07 -0500

At your request, This is my problem: I am trying to compile OpenCV and OpenCV Contrib with SURF and SIFT support on Windows 10 x64 1904 using MS Visual Studio 2019 version 16.1.2 and Anaconda 1.9.7 and Python 3.7.3.

When I compile openCV without openCV Contrib, it is a success. However, when I try to compile openCV contrib I get the following output with failed compile (I am using CMake for windows):

Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.18362.
CMake Warning at cmake/OpenCVDetectCXXCompiler.cmake:147 (message):
  OpenCV does not recognize MSVC_VERSION "1921".  Cannot set OpenCV_RUNTIME
Call Stack (most recent call first):
  CMakeLists.txt:156 (include)

Can't detect runtime and/or arch
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.1-libjpeg-turbo
Looking for Mfapi.h
Looking for Mfapi.h - found
found Intel IPP (ICV version): 2019.0.0 [2019.0.0 Gold]
at: C:/Users/Ossama/Downloads/Compressed/opencv/build/3rdparty/ippicv/ippicv_win/icv
found Intel IPP Integration Wrappers sources: 2019.0.0
at: C:/Users/Ossama/Downloads/Compressed/opencv/build/3rdparty/ippicv/ippicv_win/iw
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.
VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file
CMake Error at cmake/OpenCVModule.cmake:288 (message):
  No modules has been found:
Call Stack (most recent call first):
  cmake/OpenCVModule.cmake:370 (_glob_locations)
  modules/CMakeLists.txt:7 (ocv_glob_modules)

OpenCV Python: during development append to PYTHONPATH: C:/Users/Ossama/Downloads/Compressed/opencv/build/python_loader
Excluding from source files list: <BUILD>/modules/dnn/layers/layers_common.avx512_skx.cpp
CMake Warning at cmake/OpenCVGenSetupVars.cmake:54 (message):
  CONFIGURATION IS NOT SUPPORTED: validate setupvars script in install
Call Stack (most recent call first):
  CMakeLists.txt:1062 (include)

General configuration for OpenCV 4.0.1 =====================================
  Version control:               unknown

  Extra modules:
    Location (extra):            C:/Users/Ossama/Downloads/Compressed/opencv/opencvcontrib
    Version control (extra):     unknown

    Timestamp:                   2019-06-06T14:17:47Z
    Host:                        Windows 10.0.18362 AMD64
    CMake:                       3.15.0-rc1
    CMake generator:             Visual Studio 16 2019
    CMake build tool:            C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe
    MSVC:                        1921

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

    Built as dynamic libs?:      YES
    C++ Compiler:                C:/Program Files ...
edit retag flag offensive close merge delete


I cannot read error : it 's only some test which failed. give full cmake output. vtk is off topics

LBerger gravatar imageLBerger ( 2019-06-05 12:08:35 -0500 )edit

Visual Studio 16 2019 may be it should be Visual Studio 16 2019 win64. When did you clone opencv?

LBerger gravatar imageLBerger ( 2019-06-06 09:40:08 -0500 )edit

It's openCV 4.0.1

OssNass gravatar imageOssNass ( 2019-06-06 09:56:16 -0500 )edit

I have QT with MinGW I will try that.

OssNass gravatar imageOssNass ( 2019-06-06 09:56:50 -0500 )edit

Update to last opencv-version

LBerger gravatar imageLBerger ( 2019-06-06 09:57:54 -0500 )edit

I don't why I keep reinstalling windows, I going back to linux

OssNass gravatar imageOssNass ( 2019-06-06 10:01:08 -0500 )edit