jingweimo的个人博客分享 http://blog.sciencenet.cn/u/jingweimo

博文

CMake configurations for building OpenCV-4.1.0

已有 8083 次阅读 2019-6-17 03:04 |系统分类:科研笔记

Selecting Windows SDK version  to target Windows 10.0.17763.

AVX_512F is not supported by C++ compiler

AVX512_COMMON 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 = 2.0.2, BUILD = opencv-4.1.0-dev-libjpeg-turbo

found Intel IPP (ICV version): 2019.0.0 [2019.0.0 Gold]

at: D:/Software/Programming/OpenCV/opencv-cmake2/3rdparty/ippicv/ippicv_win/icv

found Intel IPP Integration Wrappers sources: 2019.0.0

at: D:/Software/Programming/OpenCV/opencv-cmake2/3rdparty/ippicv/ippicv_win/iw

CUDA detected: 10.0

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;-gencode;arch=compute_75,code=sm_75;-D_FORCE_INLINES

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

Caffe:   NO

Protobuf:   NO

Glog:   NO

freetype2:   NO

harfbuzz:    NO

Module opencv_ovis disabled because OGRE3D was not found

OpenCV Python: during development append to PYTHONPATH: D:/Software/Programming/OpenCV/opencv-cmake2/python_loader

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: <BUILD>/modules/core/test/test_intrin128.avx512_skx.cpp

Excluding from source files list: <BUILD>/modules/core/test/test_intrin256.avx512_skx.cpp

Excluding from source files list: <BUILD>/modules/core/test/test_intrin512.avx512_skx.cpp

Excluding from source files list: modules/imgproc/src/sumpixels.avx512_skx.cpp

Registering hook 'INIT_MODULE_SOURCES_opencv_dnn': D:/Software/Programming/OpenCV/opencv-master/opencv-master/modules/dnn/cmake/hooks/INIT_MODULE_SOURCES_opencv_dnn.cmake

Excluding from source files list: <BUILD>/modules/dnn/layers/layers_common.avx512_skx.cpp

Tesseract:   NO


General configuration for OpenCV 4.1.0-dev =====================================

Version control:               unknown


Platform:

Timestamp:                   2019-06-16T02:58:28Z

Host:                        Windows 10.0.17763 AMD64

CMake:                       3.14.5

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 (15 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 (29 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 14.0/VC/bin/x86_amd64/cl.exe  (ver 19.0.24215.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  /fp:fast     /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  /fp:fast     /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  /fp:fast       /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  /fp:fast       /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:          cudart_static.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 cudnn.lib cufft.lib -LIBPATH:C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.0/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 gapi hfs highgui img_hash imgcodecs imgproc line_descriptor ml objdetect optflow phase_unwrapping photo plot quality reg rgbd saliency shape stereo stitching structured_light superres surface_matching text tracking ts video videoio videostab xfeatures2d ximgproc xobjdetect xphoto

Disabled:                    world

Disabled by dependency:      -

Unavailable:                 cnn_3dobj freetype hdf java js matlab ovis python2 python3 sfm viz

Applications:                tests apps

Documentation:               NO

Non-free algorithms:         YES


Windows RT support:            NO


GUI:

QT:                          YES (ver 5.12.3)

QT OpenGL support:         NO

Win32 UI:                    YES

VTK support:                 NO


Media I/O:

ZLib:                        build (ver 1.2.11)

JPEG:                        build-libjpeg-turbo (ver 2.0.2-62)

WEBP:                        build (ver encoder: 0x020e)

PNG:                         build (ver 1.6.37)

TIFF:                        build (ver 42 - 4.0.10)

JPEG 2000:                   build (ver 1.900.1)

OpenEXR:                     build (ver 2.3.0)

HDR:                         YES

SUNRASTER:                   YES

PXM:                         YES

PFM:                         YES


Video I/O:

DC1394:                      NO

FFMPEG:                      YES (prebuilt binaries)

avcodec:                   YES (58.35.100)

avformat:                  YES (58.20.100)

avutil:                    YES (56.22.100)

swscale:                   YES (5.3.100)

avresample:                YES (4.0.0)

GStreamer:                   NO

DirectShow:                  YES

Media Foundation:            YES

DXVA:                      NO


Parallel framework:            Concurrency


Trace:                         YES (with Intel ITT)


Other third-party libraries:

Intel IPP:                   2019.0.0 Gold [2019.0.0]

at:                   D:/Software/Programming/OpenCV/opencv-cmake2/3rdparty/ippicv/ippicv_win/icv

Intel IPP IW:                sources (2019.0.0)

at:                D:/Software/Programming/OpenCV/opencv-cmake2/3rdparty/ippicv/ippicv_win/iw

Lapack:                      NO

Eigen:                       NO

Custom HAL:                  NO

Protobuf:                    build (3.5.1)


NVIDIA CUDA:                   YES (ver 10.0, CUFFT CUBLAS FAST_MATH)

NVIDIA GPU arch:             30 35 37 50 52 60 61 70 75

NVIDIA PTX archs:


cuDNN:                         YES (ver 7.6.0)


OpenCL:                        YES (NVD3D11)

Include path:                D:/Software/Programming/OpenCV/opencv-master/opencv-master/3rdparty/include/opencl/1.2

Link libraries:              Dynamic load


Python (for build):            C:/Python36/python.exe


Java:

ant:                         NO

JNI:                         C:/Java/include C:/Java/include/win32 C:/Java/include

Java wrappers:               NO

Java tests:                  NO


Install to:                    D:/Software/Programming/OpenCV/opencv-mybuild

-----------------------------------------------------------------


Configuring done

Generating done



..............................................................................................................................................................................

========== Build: 298 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========



..............................................................................................................................................................................

//Test https://docs.opencv.org/master/d7/d66/tutorial_feature_detection.html

    Mat src = imread(imDir+"/box.jpg", IMREAD_GRAYSCALE);
    if(src.empty())
    {
        cout<<imDir+"/box.png"<<"\n"<<endl;
        cout<<"Could not open the image!\n"<<endl;
        return - 1;
    }
    namedWindow("Src");
    imshow("Src",src);

    //SURF Keypoints
    int minHessian = 400;
    Ptr<SURF> detector = SURF::create(minHessian);
    std::vector<KeyPoint> keypoints;
    detector->detect(src, keypoints);
    Mat img_keypoints;
    drawKeypoints(src, keypoints, img_keypoints);
    imshow("SURF Keypoints", img_keypoints);

Untitled.png



https://wap.sciencenet.cn/blog-578676-1185364.html

上一篇:[转载]Extension Cords for Portable Generators
下一篇:[转载]What are the differences between a relay and solenoid
收藏 IP: 68.83.204.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...
扫一扫,分享此博文

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-5-15 14:08

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部