很多人发了opencv的编译方法,很少见到启动和关闭了那些模块,现在发个WIN64 opencv编译后的信息。
执行opencv_version_win32.exe
因为显卡较老 2060 super, NVIDIA GPU arch: 75 80 86 87 89 90。至于更高的反本没有显卡因此不知道。
BLAS库使用效率较高的Intel MKL代替
仅编译时长超过了5小时
bash
General configuration for OpenCV 4.12.0-dev =====================================
Version control: 4.11.0-414-g9d2d927fa9-dirty
Extra modules:
Location (extra): D:/build/opencv/opencv_contrib/modules
Version control (extra): 4.11.0-43-geebd8977-dirty
Platform:
Timestamp: 2025-05-20T14:46:08Z
Host: Windows 10.0.26100 AMD64
CMake: 3.31.6
CMake generator: Visual Studio 16 2019
CMake build tool: C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/MSBuild/Current/Bin/MSBuild.exe
MSVC: 1929
Configuration: Debug Release
Algorithm Hint: ALGO_HINT_ACCURATE
CPU/HW features:
Baseline: SSE SSE2 SSE3
requested: SSE3
Dispatched code generation: SSE4_1 SSE4_2 AVX FP16 AVX2 AVX512_SKX
SSE4_1 (17 files): + SSSE3 SSE4_1
SSE4_2 (1 files): + SSSE3 SSE4_1 POPCNT SSE4_2
AVX (9 files): + SSSE3 SSE4_1 POPCNT SSE4_2 AVX
FP16 (0 files): + SSSE3 SSE4_1 POPCNT SSE4_2 AVX FP16
AVX2 (37 files): + SSSE3 SSE4_1 POPCNT SSE4_2 AVX FP16 AVX2 FMA3
AVX512_SKX (6 files): + SSSE3 SSE4_1 POPCNT SSE4_2 AVX FP16 AVX2 FMA3 AVX_512F AVX512_COMMON AVX512_SKX
C/C++:
Built as dynamic libs?: YES
C++ standard: 17
C++ Compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe (ver 19.29.30159.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 /fp:fast /EHa /wd4127 /wd4251 /wd4324 /wd4275 /wd4512 /wd4589 /wd4819 /MP /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 /wd4819 /MP /Zi /Ob0 /Od /RTC1
C Compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.29.30133/bin/Hostx64/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 /fp:fast /MP /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 /MP /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_static.lib nppc.lib nppial.lib nppicc.lib nppidei.lib nppif.lib nppig.lib nppim.lib nppist.lib nppisu.lib nppitc.lib npps.lib cublas.lib cudnn.lib cufft.lib -LIBPATH:D:/tools/cuda12/lib/x64
3rdparty dependencies:
OpenCV modules:
To be built: alphamat aruco bgsegm bioinspired calib3d ccalib core cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev datasets dnn dnn_objdetect dnn_superres dpm face features2d flann fuzzy gapi hdf hfs highgui img_hash imgcodecs imgproc intensity_transform line_descriptor mcc ml objdetect optflow phase_unwrapping photo plot python3 quality rapid reg rgbd saliency sfm shape signal stereo stitching structured_light superres surface_matching text tracking ts video videoio videostab viz wechat_qrcode world xfeatures2d ximgproc xobjdetect xphoto
Disabled: cvv python_tests
Disabled by dependency: -
Unavailable: cannops fastcv freetype java js julia matlab ovis python2 python2
Applications: perf_tests examples apps
Documentation: js
Non-free algorithms: YES
Windows RT support: NO
GUI:
QT: YES (ver 5.15.2 )
QT OpenGL support: YES (Qt5::OpenGL 5.15.2)
Win32 UI: YES
OpenGL support: YES (opengl32 glu32)
VTK support: YES (ver 9.4.2)
Media I/O:
ZLib: build (ver 1.3.1)
JPEG: build-libjpeg-turbo (ver 3.1.0-70)
SIMD Support Request: YES
SIMD Support: YES
WEBP: build (ver decoder: 0x0209, encoder: 0x020f, demux: 0x0107)
AVIF: D:/library/vs/libavif/lib/avif.lib
PNG: build (ver 1.6.43)
SIMD Support Request: YES
SIMD Support: YES (Intel SSE)
TIFF: build (ver 42 - 4.6.0)
JPEG 2000: build (ver 2.5.3)
OpenEXR: build (ver 2.3.0)
GIF: YES
HDR: YES
SUNRASTER: YES
PXM: YES
PFM: YES
Video I/O:
FFMPEG: YES (prebuilt binaries)
avcodec: YES (58.134.100)
avformat: YES (58.76.100)
avutil: YES (56.70.100)
swscale: YES (5.9.100)
avresample: YES (4.0.0)
GStreamer: YES (1.26.0)
DirectShow: YES
Media Foundation: YES
DXVA: YES
XIMEA: YES
Parallel framework: TBB (ver 2022.1 interface 12150)
Trace: YES (with Intel ITT(3.25.4))
Other third-party libraries:
Intel IPP: 2022.0.0 [2022.0.0]
at: D:/build/opencv/build1/3rdparty/ippicv/ippicv_win/icv
Intel IPP IW: sources (2022.0.0)
at: D:/build/opencv/build1/3rdparty/ippicv/ippicv_win/iw
Lapack: YES (D:/tools/mkl/lib/mkl_intel_lp64.lib D:/tools/mkl/lib/mkl_sequential.lib D:/tools/mkl/lib/mkl_core.lib)
Eigen: YES (ver ..)
Custom HAL: YES (ipp (ver 0.0.1))
Protobuf: build (3.19.1)
Flatbuffers: builtin/3rdparty (23.5.9)
NVIDIA CUDA: YES (ver 12.6, CUFFT CUBLAS NVCUVID NVCUVENC FAST_MATH)
NVIDIA GPU arch: 75 80 86 87 89 90
NVIDIA PTX archs:
cuDNN: YES (ver 9.10.1)
Vulkan: YES
Include path: D:/build/opencv/3rdparty/include
Link libraries: Dynamic load
OpenCL: YES (NVD3D11)
Include path: D:/build/opencv/3rdparty/include/opencl/1.2
Link libraries: Dynamic load
Python 3:
Interpreter: D:/tools/anaconda3/python.exe (ver 3.12.7)
Libraries: D:/tools/anaconda3/libs/python3.lib (ver 3.12.7)
Limited API: NO
numpy: D:/tools/anaconda3/Lib/site-packages/numpy/core/include (ver 1.26.4)
install path: D:/tools/anaconda3/Lib/site-packages/cv2/python-3.12
Python (for build): D:/tools/anaconda3/python.exe
Java:
ant: NO
Java: YES (ver 1.8.0.311)
JNI: D:/tools/jdk/include D:/tools/jdk/include/win32 D:/tools/jdk/include
Java wrappers: NO
Java tests: NO
Install to: D:/library/vs/opencv
-----------------------------------------------------------------
OpenCL Platforms:
NVIDIA CUDA
dGPU: NVIDIA GeForce RTX 2060 SUPER (OpenCL 3.0 CUDA)
Intel(R) OpenCL
CPU: Intel(R) Core(TM) i9-9900KF CPU @ 3.60GHz (OpenCL 3.0 (Build 0))
Current OpenCL device:
Type = dGPU
Name = NVIDIA GeForce RTX 2060 SUPER
Version = OpenCL 3.0 CUDA
Driver version = 576.02
Address bits = 64
Compute units = 34
Max work group size = 1024
Local memory size = 48 KB
Max memory allocation size = 1 GB 1023 MB 912 KB
Double support = Yes
Half support = No
Host unified memory = No
Device extensions:
cl_khr_global_int32_base_atomics
cl_khr_global_int32_extended_atomics
cl_khr_local_int32_base_atomics
cl_khr_local_int32_extended_atomics
cl_khr_fp64
cl_khr_3d_image_writes
cl_khr_byte_addressable_store
cl_khr_icd
cl_khr_gl_sharing
cl_nv_compiler_options
cl_nv_device_attribute_query
cl_nv_pragma_unroll
cl_nv_d3d10_sharing
cl_khr_d3d10_sharing
cl_nv_d3d11_sharing
cl_nv_copy_opts
cl_nv_create_buffer
cl_khr_int64_base_atomics
cl_khr_int64_extended_atomics
cl_khr_device_uuid
cl_khr_pci_bus_info
cl_khr_external_semaphore
cl_khr_external_memory
cl_khr_external_semaphore_win32
cl_khr_external_memory_win32
cl_khr_semaphore
Has AMD Blas = No
Has AMD Fft = No
Preferred vector width char = 1
Preferred vector width short = 1
Preferred vector width int = 1
Preferred vector width long = 1
Preferred vector width float = 1
Preferred vector width double = 1
Preferred vector width half = 0
OpenCV's HW features list:
ID= 1 (MMX) -> ON
ID= 2 (SSE) -> ON
ID= 3 (SSE2) -> ON
ID= 4 (SSE3) -> ON
ID= 5 (SSSE3) -> ON
ID= 6 (SSE4.1) -> ON
ID= 7 (SSE4.2) -> ON
ID= 8 (POPCNT) -> ON
ID= 9 (FP16) -> ON
ID= 10 (AVX) -> ON
ID= 11 (AVX2) -> ON
ID= 12 (FMA3) -> ON
Total available: 12
Parallel framework: tbb (nthreads=16)