Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

3.3 Build with VS2015 Errors

Hi I am getting too much error while building the generated CMake source by VS2015. I also include contrib libraries. CMake generation output is below

CMake Deprecation Warning at CMakeLists.txt:81 (cmake_policy): The OLD behavior for policy CMP0020 will be removed from a future version of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all policies are deprecated and that a policy should be set to OLD only under specific short-term circumstances. Projects should be ported to the NEW behavior and not rely on setting a policy to OLD.

CMake Deprecation Warning at CMakeLists.txt:85 (cmake_policy): The OLD behavior for policy CMP0022 will be removed from a future version of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all policies are deprecated and that a policy should be set to OLD only under specific short-term circumstances. Projects should be ported to the NEW behavior and not rely on setting a policy to OLD.

CMake Deprecation Warning at CMakeLists.txt:94 (cmake_policy): The OLD behavior for policy CMP0026 will be removed from a future version of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all policies are deprecated and that a policy should be set to OLD only under specific short-term circumstances. Projects should be ported to the NEW behavior and not rely on setting a policy to OLD.

found Intel IPP (ICV version): 2017.0.2 [2017.0.2] at: C:/opencv33/build/3rdparty/ippicv/ippicv_win found Intel IPP IW binaries: 2017.0.2 at: C:/opencv33/build/3rdparty/ippicv/ippicv_win/../ippiw_win/ Could not find OpenBLAS include. Turning OpenBLAS_FOUND off Could not find OpenBLAS lib. Turning OpenBLAS_FOUND off A library with BLAS API not found. Please specify library location. LAPACK requires BLAS A library with LAPACK API not found. Please specify library location. Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 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) 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 Looking for tiny_dnn.h Looking for tiny_dnn.h - found Found tiny-dnn in: C:/opencv33/build/3rdparty/tinydnn/tiny-dnn-1.0.0a3 Module opencv_dnn_modern disabled because Protobuf is not found freetype2: NO harfbuzz: 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. 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: Eigen Glog/Gflags Excluding from source files list: C:/opencv33/build/modules/imgproc/accum.neon.cpp Torch importer has been enabled. To run the tests you have to install Torch ('th' executable should be available) and generate testdata using opencv_extra/testdata/dnn/generate_torch_models.py script. Tesseract: NO

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

Extra modules: Location (extra): C:/opencv33/opencv_contrib_master/modules Version control (extra): unknown

Platform: Timestamp: 2017-10-13T08:45:37Z Host: Windows 10.0.15063 AMD64 CMake: 3.9.4 CMake generator: Visual Studio 14 2015 Win64 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 SSE4_1 (2 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 (7 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.24215.1) 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 /Oi /wd4251 /wd4324 /wd4275 /wd4589 /MP6 /MD /O2 /Ob2 /DNDEBUG /Zi 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 /Oi /wd4251 /wd4324 /wd4275 /wd4589 /MP6 /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 /MP6 /MD /O2 /Ob2 /DNDEBUG /Zi 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 /MP6 /MDd /Zi /Ob0 /Od /RTC1 Linker flags (Release): /machine:x64 /INCREMENTAL:NO /debug Linker flags (Debug): /machine:x64 /debug /INCREMENTAL ccache: NO Precompiled headers: YES Extra dependencies: comctl32 gdi32 ole32 setupapi ws2_32 vfw32 C:/Program Files/Anaconda3/Library/lib/hdf5.lib 3rdparty dependencies:

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

Windows RT support: NO

GUI: QT: NO Win32 UI: YES OpenGL support: NO VTK support: NO

Media I/O: ZLib: build (ver 1.2.8) JPEG: build (ver 90) WEBP: build (ver encoder: 0x020e) PNG: build (ver 1.6.24) TIFF: build (ver 42 - 4.0.2) JPEG 2000: build (ver 1.900.1) OpenEXR: build (ver 1.7.1) GDAL: NO GDCM: NO

Video I/O: Video for Windows: YES DC1394 1.x: NO DC1394 2.x: NO FFMPEG: YES (prebuilt binaries) avcodec: YES (ver 57.89.100) avformat: YES (ver 57.71.100) avutil: YES (ver 55.58.100) swscale: YES (ver 4.6.100) avresample: YES (ver 3.5.0) GStreamer: NO OpenNI: NO OpenNI PrimeSensor Modules: NO OpenNI2: NO PvAPI: NO GigEVisionSDK: NO DirectShow: YES Media Foundation: NO XIMEA: NO Intel PerC: NO

Parallel framework: Concurrency

Trace: YES (with Intel ITT)

Other third-party libraries: Use Intel IPP: 2017.0.2 [2017.0.2] at: C:/opencv33/build/3rdparty/ippicv/ippicv_win Use Intel IPP IW: prebuilt binaries (2017.0.2) Use Intel IPP Async: NO Use Lapack: NO Use Eigen: NO Use Cuda: NO Use OpenCL: YES Use OpenVX: NO Use custom HAL: NO

OpenCL: <dynamic loading="" of="" opencl="" library=""> Include path: C:/opencv33/sources/3rdparty/include/opencl/1.2 Use AMDFFT: NO Use AMDBLAS: NO

Python 2: Interpreter: NO

Python 3: Interpreter: C:/Program Files/Anaconda3/python.exe (ver 3.6) Libraries: C:/Program Files/Python36/libs/python36.lib (ver 3.6.0) numpy: C:/Program Files/Anaconda3/lib/site-packages/numpy/core/include (ver 1.11.3) packages path: C:/Program Files/Anaconda3/Lib/site-packages

Python (for build): C:/Program Files/Anaconda3/python.exe

Java: ant: NO JNI: C:/Program Files/Java/jdk1.8.0_131/include C:/Program Files/Java/jdk1.8.0_131/include/win32 C:/Program Files/Java/jdk1.8.0_131/include Java wrappers: NO Java tests: NO

Matlab: Matlab not found or implicitly disabled

Documentation: Doxygen: NO

Tests and samples: Tests: YES Performance tests: YES C/C++ Examples: YES

Install path: C:/opencv33/build/install

cvconfig.h is in: C:/opencv33/build

Configuring done Generating done

And Visual Studio Errors like below: There are 345 errors

Severity Code Description Project File Line Suppression State Error C2664 'void cv::dnn::experimental_dnn_v1::Net::getLayerShapes(const std::vector<cv::dnn::experimental_dnn_v1::matshape,std::allocator<_ty>> &,const int,std::vector<_Ty,std::allocator<_Ty>> *,std::vector<_Ty,std::allocator<_Ty>> *) const': cannot convert argument 3 from 'std::vector<cv::dnn::experimental_dnn_v1::matshape,std::allocator<_ty>>' to 'std::vector<cv::dnn::experimental_dnn_v1::matshape,std::allocator<_ty>> *' opencv_text C:\opencv33\opencv_contrib_master\modules\text\src\ocr_holistic.cpp 74

Severity Code Description Project File Line Suppression State Error C2065 'value': undeclared identifier (compiling source file C:\opencv33\opencv_contrib_master\modules\ximgproc\src\dtfilter_cpu.cpp) opencv_ximgproc c:\opencv33\opencv_contrib_master\modules\ximgproc\src\dtfilter_cpu.inl.hpp 145

I dont know where would I start. Any help would be great. Thanks

click to hide/show revision 2
None

updated 2017-10-13 05:59:17 -0600

berak gravatar image

3.3 Build with VS2015 Errors

Hi I am getting too much error while building the generated CMake source by VS2015. I also include contrib libraries. CMake generation output is below

CMake Deprecation Warning at CMakeLists.txt:81 (cmake_policy):
The OLD behavior for policy CMP0020 will be removed from a future version
of CMake.

CMake. The cmake-policies(7) manual explains that the OLD behaviors of all policies are deprecated and that a policy should be set to OLD only under specific short-term circumstances. Projects should be ported to the NEW behavior and not rely on setting a policy to OLD.

OLD. CMake Deprecation Warning at CMakeLists.txt:85 (cmake_policy): The OLD behavior for policy CMP0022 will be removed from a future version of CMake.

CMake. The cmake-policies(7) manual explains that the OLD behaviors of all policies are deprecated and that a policy should be set to OLD only under specific short-term circumstances. Projects should be ported to the NEW behavior and not rely on setting a policy to OLD.

OLD. CMake Deprecation Warning at CMakeLists.txt:94 (cmake_policy): The OLD behavior for policy CMP0026 will be removed from a future version of CMake.

CMake. The cmake-policies(7) manual explains that the OLD behaviors of all policies are deprecated and that a policy should be set to OLD only under specific short-term circumstances. Projects should be ported to the NEW behavior and not rely on setting a policy to OLD.

OLD. found Intel IPP (ICV version): 2017.0.2 [2017.0.2] at: C:/opencv33/build/3rdparty/ippicv/ippicv_win found Intel IPP IW binaries: 2017.0.2 at: C:/opencv33/build/3rdparty/ippicv/ippicv_win/../ippiw_win/ Could not find OpenBLAS include. Turning OpenBLAS_FOUND off Could not find OpenBLAS lib. Turning OpenBLAS_FOUND off A library with BLAS API not found. Please specify library location. LAPACK requires BLAS A library with LAPACK API not found. Please specify library location. Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 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) 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 Looking for tiny_dnn.h Looking for tiny_dnn.h - found Found tiny-dnn in: C:/opencv33/build/3rdparty/tinydnn/tiny-dnn-1.0.0a3 Module opencv_dnn_modern disabled because Protobuf is not found freetype2: NO harfbuzz: 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. 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: Eigen Glog/Gflags Excluding from source files list: C:/opencv33/build/modules/imgproc/accum.neon.cpp Torch importer has been enabled. To run the tests you have to install Torch ('th' executable should be available) and generate testdata using opencv_extra/testdata/dnn/generate_torch_models.py script. Tesseract: NO

NO General configuration for OpenCV 3.3.0 ===================================== Version control: unknown

unknown Extra modules: Location (extra): C:/opencv33/opencv_contrib_master/modules Version control (extra): unknown

unknown Platform: Timestamp: 2017-10-13T08:45:37Z Host: Windows 10.0.15063 AMD64 CMake: 3.9.4 CMake generator: Visual Studio 14 2015 Win64 CMake build tool: C:/Program Files (x86)/MSBuild/14.0/bin/MSBuild.exe MSVC: 1900

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

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.24215.1) 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 /Oi /wd4251 /wd4324 /wd4275 /wd4589 /MP6 /MD /O2 /Ob2 /DNDEBUG /Zi 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 /Oi /wd4251 /wd4324 /wd4275 /wd4589 /MP6 /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 /MP6 /MD /O2 /Ob2 /DNDEBUG /Zi 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 /MP6 /MDd /Zi /Ob0 /Od /RTC1 Linker flags (Release): /machine:x64 /INCREMENTAL:NO /debug Linker flags (Debug): /machine:x64 /debug /INCREMENTAL ccache: NO Precompiled headers: YES Extra dependencies: comctl32 gdi32 ole32 setupapi ws2_32 vfw32 C:/Program Files/Anaconda3/Library/lib/hdf5.lib 3rdparty dependencies:

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

sfm Windows RT support: NO

NO GUI: QT: NO Win32 UI: YES OpenGL support: NO VTK support: NO

NO Media I/O: ZLib: build (ver 1.2.8) JPEG: build (ver 90) WEBP: build (ver encoder: 0x020e) PNG: build (ver 1.6.24) TIFF: build (ver 42 - 4.0.2) JPEG 2000: build (ver 1.900.1) OpenEXR: build (ver 1.7.1) GDAL: NO GDCM: NO

NO Video I/O: Video for Windows: YES DC1394 1.x: NO DC1394 2.x: NO FFMPEG: YES (prebuilt binaries) avcodec: YES (ver 57.89.100) avformat: YES (ver 57.71.100) avutil: YES (ver 55.58.100) swscale: YES (ver 4.6.100) avresample: YES (ver 3.5.0) GStreamer: NO OpenNI: NO OpenNI PrimeSensor Modules: NO OpenNI2: NO PvAPI: NO GigEVisionSDK: NO DirectShow: YES Media Foundation: NO XIMEA: NO Intel PerC: NO

NO Parallel framework: Concurrency

Concurrency Trace: YES (with Intel ITT)

ITT) Other third-party libraries: Use Intel IPP: 2017.0.2 [2017.0.2] at: C:/opencv33/build/3rdparty/ippicv/ippicv_win Use Intel IPP IW: prebuilt binaries (2017.0.2) Use Intel IPP Async: NO Use Lapack: NO Use Eigen: NO Use Cuda: NO Use OpenCL: YES Use OpenVX: NO Use custom HAL: NO

NO OpenCL: <dynamic loading="" of="" opencl="" library=""> <Dynamic loading of OpenCL library> Include path: C:/opencv33/sources/3rdparty/include/opencl/1.2 Use AMDFFT: NO Use AMDBLAS: NO

NO Python 2: Interpreter: NO

NO Python 3: Interpreter: C:/Program Files/Anaconda3/python.exe (ver 3.6) Libraries: C:/Program Files/Python36/libs/python36.lib (ver 3.6.0) numpy: C:/Program Files/Anaconda3/lib/site-packages/numpy/core/include (ver 1.11.3) packages path: C:/Program Files/Anaconda3/Lib/site-packages

Files/Anaconda3/Lib/site-packages Python (for build): C:/Program Files/Anaconda3/python.exe

Files/Anaconda3/python.exe Java: ant: NO JNI: C:/Program Files/Java/jdk1.8.0_131/include C:/Program Files/Java/jdk1.8.0_131/include/win32 C:/Program Files/Java/jdk1.8.0_131/include Java wrappers: NO Java tests: NO

NO Matlab: Matlab not found or implicitly disabled

disabled Documentation: Doxygen: NO

NO Tests and samples: Tests: YES Performance tests: YES C/C++ Examples: YES

YES Install path: C:/opencv33/build/install

C:/opencv33/build/install cvconfig.h is in: C:/opencv33/build

C:/opencv33/build ----------------------------------------------------------------- Configuring done Generating done

done

And Visual Studio Errors like below: There are 345 errors

Severity Code Description Project File Line Suppression State
Error C2664 'void cv::dnn::experimental_dnn_v1::Net::getLayerShapes(const std::vector<cv::dnn::experimental_dnn_v1::matshape,std::allocator<_ty>> std::vector<cv::dnn::experimental_dnn_v1::MatShape,std::allocator<_Ty>> &,const int,std::vector<_Ty,std::allocator<_Ty>> *,std::vector<_Ty,std::allocator<_Ty>> *) const': cannot convert argument 3 from 'std::vector<cv::dnn::experimental_dnn_v1::matshape,std::allocator<_ty>>' 'std::vector<cv::dnn::experimental_dnn_v1::MatShape,std::allocator<_Ty>>' to 'std::vector<cv::dnn::experimental_dnn_v1::matshape,std::allocator<_ty>> 'std::vector<cv::dnn::experimental_dnn_v1::MatShape,std::allocator<_Ty>> *' opencv_text C:\opencv33\opencv_contrib_master\modules\text\src\ocr_holistic.cpp 74 

Severity Code Description Project File Line Suppression State Error C2065 'value': undeclared identifier (compiling source file C:\opencv33\opencv_contrib_master\modules\ximgproc\src\dtfilter_cpu.cpp) opencv_ximgproc c:\opencv33\opencv_contrib_master\modules\ximgproc\src\dtfilter_cpu.inl.hpp 145

145

I dont know where would I start. Any help would be great. Thanks