Hi i tried to opencv and opencv_contrib with cuda in release configuration. It works
Now In debug it fails. @cudawarped
Cmake output :
-- 'Release' build type is used by default. Use CMAKE_BUILD_TYPE to specify build type (Release or Debug)
-- The CXX compiler identification is MSVC 19.35.32215.0
-- The C compiler identification is MSVC 19.35.32215.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.35.32215/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.35.32215/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detected processor: AMD64
-- Found PythonInterp: C:/Program Files/Python310/python.exe (found suitable version "3.10.10", minimum required is "2.7")
CMake Warning at cmake/OpenCVDetectPython.cmake:81 (message):
CMake's 'find_host_package(PythonInterp 2.7)' found wrong Python version:
PYTHON_EXECUTABLE=C:/Program Files/Python310/python.exe
PYTHON_VERSION_STRING=3.10.10
Consider providing the 'PYTHON2_EXECUTABLE' variable via CMake command line
or environment variables
Call Stack (most recent call first):
cmake/OpenCVDetectPython.cmake:271 (find_python)
CMakeLists.txt:646 (include)
-- Could NOT find Python2 (missing: Python2_EXECUTABLE Interpreter)
Reason given by package:
Interpreter: Wrong major version for the interpreter "C:/Program Files/Python310/python.exe"
-- Found PythonInterp: C:/Program Files/Python310/python.exe (found suitable version "3.10.10", minimum required is "3.2")
-- Found PythonLibs: optimized;C:/Program Files/Python310/libs/python310.lib;debug;C:/Program Files/Python310/libs/python310_d.lib (found suitable exact version "3.10.10")
-- Performing Test HAVE_CXX_FP:PRECISE
-- Performing Test HAVE_CXX_FP:PRECISE - Success
-- Performing Test HAVE_C_FP:PRECISE
-- Performing Test HAVE_C_FP:PRECISE - Success
-- Performing Test HAVE_CPU_SSE3_SUPPORT (check file: cmake/checks/cpu_sse3.cpp)
-- Performing Test HAVE_CPU_SSE3_SUPPORT - Success
-- Performing Test HAVE_CPU_SSSE3_SUPPORT (check file: cmake/checks/cpu_ssse3.cpp)
-- Performing Test HAVE_CPU_SSSE3_SUPPORT - Success
-- Performing Test HAVE_CPU_SSE4_1_SUPPORT (check file: cmake/checks/cpu_sse41.cpp)
-- Performing Test HAVE_CPU_SSE4_1_SUPPORT - Success
-- Performing Test HAVE_CPU_POPCNT_SUPPORT (check file: cmake/checks/cpu_popcnt.cpp)
-- Performing Test HAVE_CPU_POPCNT_SUPPORT - Success
-- Performing Test HAVE_CPU_SSE4_2_SUPPORT (check file: cmake/checks/cpu_sse42.cpp)
-- Performing Test HAVE_CPU_SSE4_2_SUPPORT - Success
-- Performing Test HAVE_CXX_ARCH:AVX (check file: cmake/checks/cpu_fp16.cpp)
-- Performing Test HAVE_CXX_ARCH:AVX - Success
-- Performing Test HAVE_CXX_ARCH:AVX2 (check file: cmake/checks/cpu_avx2.cpp)
-- Performing Test HAVE_CXX_ARCH:AVX2 - Success
-- Performing Test HAVE_CXX_ARCH:AVX512 (check file: cmake/checks/cpu_avx512.cpp)
-- Performing Test HAVE_CXX_ARCH:AVX512 - Success
-- Performing Test HAVE_CPU_BASELINE_FLAGS
-- Performing Test HAVE_CPU_BASELINE_FLAGS - Success
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_SSE4_1
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_SSE4_1 - Success
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_SSE4_2
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_SSE4_2 - Success
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_FP16
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_FP16 - Success
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX - Success
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX2
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX2 - Success
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX512_SKX
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX512_SKX - Success
-- Performing Test HAVE_CXX_W15240
-- Performing Test HAVE_CXX_W15240 - Success
-- Performing Test HAVE_C_W15240
-- Performing Test HAVE_C_W15240 - Success
-- Looking for malloc.h
-- Looking for malloc.h - found
-- Looking for _aligned_malloc
-- Looking for _aligned_malloc - found
-- Found ZLIB: optimized;C:/install/zlib/lib/zlib.lib;debug;C:/install/zlib/lib/zlibd.lib (found suitable version "1.2.13", minimum required is "1.2.3")
-- libjpeg-turbo: VERSION = 2.1.3, BUILD = opencv-4.7.0-dev-libjpeg-turbo
-- Looking for sys/types.h
-- .........- Looking for memalign
-- Looking for memalign - not found
-- OpenJPEG libraries will be built from sources: libopenjp2 (version "2.4.0")
-- Found ZLIB: optimized;C:/install/zlib/lib/zlib.lib;debug;C:/install/zlib/lib/zlibd.lib (found version "1.2.13")
-- Found PNG: optimized;C:/install/libpng/lib/libpng16.lib;debug;C:/install/libpng/lib/libpng16d.lib (found version "1.6.40.git")
-- Looking for C:/install/libpng/include/libpng/png.h
-- Looking for C:/install/libpng/include/libpng/png.h - not found
-- Found TBB (cmake): C:/Program Files (x86)/Intel/oneAPI/tbb/2021.8.0/redist/intel64/vc14/tbb12.dll
-- IPPICV: Downloading ippicv_2020_win_intel64_20191018_general.zip from https://raw.githubusercontent.com/opencv/opencv_3rdparty/a56b6ac6f030c312b2dce17430eef13aed9af274/ippicv/ippicv_2020_win_intel64_20191018_general.zip
-- found Intel IPP (ICV version): 2020.0.0 [2020.0.0 Gold]
-- at: C:/lib/build_cuda/opencv/3rdparty/ippicv/ippicv_win/icv
-- found Intel IPP Integration Wrappers sources: 2020.0.0
-- at: C:/lib/build_cuda/opencv/3rdparty/ippicv/ippicv_win/iw
-- Found CUDNN: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.1/lib/x64/cudnn.lib (found suitable version "8.8.0", minimum required is "7.5")
-- CUDA detected: 12.1
-- CUDA: Using CUDA_ARCH_BIN=8.6
-- CUDA NVCC target flags: -gencode;arch=compute_86,code=sm_86;-D_FORCE_INLINES
-- CUDA: MSVS generator is detected. Disabling CMake re-run checks (CMAKE_SUPPRESS_REGENERATION=ON). You need to run CMake manually if updates are required.
-- Check size of int
-- Check size of int - done
-- Found MKL 2023.0.0 at: C:/Program Files (x86)/Intel/oneAPI/mkl/2023.0.0
-- LAPACK(MKL): LAPACK_LIBRARIES: C:/Program Files (x86)/Intel/oneAPI/mkl/2023.0.0/lib/intel64/mkl_intel_lp64.lib;C:/Program Files (x86)/Intel/oneAPI/mkl/2023.0.0/lib/intel64/mkl_sequential.lib;C:/Program Files (x86)/Intel/oneAPI/mkl/2023.0.0/lib/intel64/mkl_core.lib
-- LAPACK(MKL): Support is enabled.
-- Found apache ant: C:/apache-ant-1.10.13/bin/ant.bat (1.10.13)
-- Found JNI: C:/Program Files/Java/jdk-19/include found components: AWT JVM
-- Found Pylint: C:/Users/laurent/AppData/Roaming/Python/Python310/Scripts/pylint.exe (found version "2.16.2")
-- Found Flake8: C:/Users/laurent/AppData/Roaming/Python/Python310/Scripts/flake8.exe (found version "6.0.0")
-- Found VTK 9.2.5
-- ADE: Downloading v0.1.2a.zip from https://github.com/opencv/ade/archive/v0.1.2a.zip
-- FFMPEG: Downloading opencv_videoio_ffmpeg.dll from https://raw.githubusercontent.com/opencv/opencv_3rdparty/7dd0d4f1d6fe75f05f3d3b5e38cbc96c1a2d2809/ffmpeg/opencv_videoio_ffmpeg.dll
-- FFMPEG: Downloading opencv_videoio_ffmpeg_64.dll from https://raw.githubusercontent.com/opencv/opencv_3rdparty/7dd0d4f1d6fe75f05f3d3b5e38cbc96c1a2d2809/ffmpeg/opencv_videoio_ffmpeg_64.dll
-- FFMPEG: Downloading ffmpeg_version.cmake from https://raw.githubusercontent.com/opencv/opencv_3rdparty/7dd0d4f1d6fe75f05f3d3b5e38cbc96c1a2d2809/ffmpeg/ffmpeg_version.cmake
-- Looking for mfapi.h
-- Looking for mfapi.h - found
-- Looking for vidcap.h
-- Looking for vidcap.h - found
-- Looking for d3d11_4.h
-- Looking for d3d11_4.h - found
-- freetype2: NO
-- harfbuzz: NO
-- Julia not found. Not compiling Julia Bindings.
-- Module opencv_ovis disabled because OGRE3D was not found
-- Found Threads: TRUE
-- Failed to find SuiteSparse - Did not find BLAS library (required for SuiteSparse).
-- Found AMD headers in: C:/install/amd/include
-- Found AMD library: C:/install/AMD/lib/amd.lib
-- Found CAMD headers in: C:/install/amd/include
-- Found CAMD library: C:/install/AMD/lib/amd.lib
-- Found CCOLAMD headers in: C:/install/CCOLAMD/include
-- Found CCOLAMD library: C:/install/CCOLAMD/lib/ccolamd.lib
-- Found CHOLMOD headers in: C:/install/CHOLMOD/include
-- Found CHOLMOD library: C:/install/CHOLMOD/lib/cholmod.lib
-- Found COLAMD headers in: C:/install/COLAMD/include
-- Found COLAMD library: C:/install/COLAMD/lib/colamd.lib
-- Found SPQR headers in: C:/install/SPQR/include
-- Found SPQR library: C:/install/SPQR/lib/spqr.lib
-- Found Config headers in: C:/install/SuiteSparse/include
-- Found Config library: C:/install/SuiteSparse/lib/suitesparseconfig.lib
-- Found Intel Thread Building Blocks (TBB) library (2021.8 / 12080) include location: . Assuming SuiteSparseQR was compiled with TBB.
-- Looking for shm_open in rt
-- Looking for shm_open in rt - not found
-- Could not find librt, but found SuiteSparse_config, assuming that SuiteSparse was compiled without timing.
-- Could NOT find METIS (missing: METIS_INCLUDE_DIR METIS_LIBRARY)
-- Found SuiteSparse: C:/install/amd/include (Required is at least version "7.0.1") found components: AMD CAMD CCOLAMD CHOLMOD COLAMD SPQR Config
-- Found required Ceres dependency: Eigen version 3.4.90 in C:/install/Eigen/share/eigen3/cmake
-- Found required Ceres dependency: glog
-- Found required Ceres dependency: gflags
-- Found Ceres version: 2.2.0 installed in: C:/install/ceres-solver with components: [EigenSparse, SparseLinearAlgebraLibrary, LAPACK, SuiteSparse, SchurSpecializations]
-- Checking SFM glog/gflags deps... TRUE
-- Tesseract: YES (ver unknown)
-- Can't use Tesseract (details: https://github.com/opencv/opencv_contrib/pull/2220)
-- Allocator metrics storage type: 'long long'
-- Excluding from source files list: modules/imgproc/src/imgwarp.lasx.cpp
-- Excluding from source files list: modules/imgproc/src/resize.lasx.cpp
-- Registering hook 'INIT_MODULE_SOURCES_opencv_dnn': C:/lib/opencv/modules/dnn/cmake/hooks/INIT_MODULE_SOURCES_opencv_dnn.cmake
-- Excluding from source files list: <BUILD>/modules/dnn/layers/layers_common.rvv.cpp
-- Excluding from source files list: <BUILD>/modules/dnn/layers/layers_common.lasx.cpp
-- Excluding from source files list: <BUILD>/modules/dnn/int8layers/layers_common.lasx.cpp
-- imgcodecs: OpenEXR codec is disabled in runtime. Details: https://github.com/opencv/opencv/issues/21326
-- highgui: using builtin backend: WIN32UI
-- wechat_qrcode: Downloading detect.caffemodel from https://raw.githubusercontent.com/WeChatCV/opencv_3rdparty/a8b69ccc738421293254aec5ddb38bd523503252/detect.caffemodel
-- wechat_qrcode: Downloading detect.prototxt from https://raw.githubusercontent.com/WeChatCV/opencv_3rdparty/a8b69ccc738421293254aec5ddb38bd523503252/detect.prototxt
-- wechat_qrcode: Downloading sr.caffemodel from https://raw.githubusercontent.com/WeChatCV/opencv_3rdparty/a8b69ccc738421293254aec5ddb38bd523503252/sr.caffemodel
-- wechat_qrcode: Downloading sr.prototxt from https://raw.githubusercontent.com/WeChatCV/opencv_3rdparty/a8b69ccc738421293254aec5ddb38bd523503252/sr.prototxt
-- xfeatures2d/boostdesc: Downloading boostdesc_bgm.i from https://raw.githubusercontent.com/opencv/opencv_3rdparty/34e4206aef44d50e6bbcd0ab06354b52e7466d26/boostdesc_bgm.i
-- xfeatures2d/boostdesc: Downloading boostdesc_bgm_bi.i from https://raw.githubusercontent.com/opencv/opencv_3rdparty/34e4206aef44d50e6bbcd0ab06354b52e7466d26/boostdesc_bgm_bi.i
-- xfeatures2d/boostdesc: Downloading boostdesc_bgm_hd.i from https://raw.githubusercontent.com/opencv/opencv_3rdparty/34e4206aef44d50e6bbcd0ab06354b52e7466d26/boostdesc_bgm_hd.i
-- xfeatures2d/boostdesc: Downloading boostdesc_binboost_064.i from https://raw.githubusercontent.com/opencv/opencv_3rdparty/34e4206aef44d50e6bbcd0ab06354b52e7466d26/boostdesc_binboost_064.i
-- xfeatures2d/boostdesc: Downloading boostdesc_binboost_128.i from https://raw.githubusercontent.com/opencv/opencv_3rdparty/34e4206aef44d50e6bbcd0ab06354b52e7466d26/boostdesc_binboost_128.i
-- xfeatures2d/boostdesc: Downloading boostdesc_binboost_256.i from https://raw.githubusercontent.com/opencv/opencv_3rdparty/34e4206aef44d50e6bbcd0ab06354b52e7466d26/boostdesc_binboost_256.i
-- xfeatures2d/boostdesc: Downloading boostdesc_lbgm.i from https://raw.githubusercontent.com/opencv/opencv_3rdparty/34e4206aef44d50e6bbcd0ab06354b52e7466d26/boostdesc_lbgm.i
-- xfeatures2d/vgg: Downloading vgg_generated_48.i from https://raw.githubusercontent.com/opencv/opencv_3rdparty/fccf7cd6a4b12079f73bbfb21745f9babcd4eb1d/vgg_generated_48.i
-- xfeatures2d/vgg: Downloading vgg_generated_64.i from https://raw.githubusercontent.com/opencv/opencv_3rdparty/fccf7cd6a4b12079f73bbfb21745f9babcd4eb1d/vgg_generated_64.i
-- xfeatures2d/vgg: Downloading vgg_generated_80.i from https://raw.githubusercontent.com/opencv/opencv_3rdparty/fccf7cd6a4b12079f73bbfb21745f9babcd4eb1d/vgg_generated_80.i
-- xfeatures2d/vgg: Downloading vgg_generated_120.i from https://raw.githubusercontent.com/opencv/opencv_3rdparty/fccf7cd6a4b12079f73bbfb21745f9babcd4eb1d/vgg_generated_120.i
-- data: Downloading face_landmark_model.dat from https://raw.githubusercontent.com/opencv/opencv_3rdparty/8afa57abc8229d611c4937165d20e2a2d9fc5a12/face_landmark_model.dat
-- Failed to find SuiteSparse - Did not find BLAS library (required for SuiteSparse).
-- Found AMD headers in: C:/install/amd/include
-- Found AMD library: C:/install/AMD/lib/amd.lib
-- Found CAMD headers in: C:/install/amd/include
-- Found CAMD library: C:/install/AMD/lib/amd.lib
-- Found CCOLAMD headers in: C:/install/CCOLAMD/include
-- Found CCOLAMD library: C:/install/CCOLAMD/lib/ccolamd.lib
-- Found CHOLMOD headers in: C:/install/CHOLMOD/include
-- Found CHOLMOD library: C:/install/CHOLMOD/lib/cholmod.lib
-- Found COLAMD headers in: C:/install/COLAMD/include
-- Found COLAMD library: C:/install/COLAMD/lib/colamd.lib
-- Found SPQR headers in: C:/install/SPQR/include
-- Found SPQR library: C:/install/SPQR/lib/spqr.lib
-- Found Config headers in: C:/install/SuiteSparse/include
-- Found Config library: C:/install/SuiteSparse/lib/suitesparseconfig.lib
-- Found Intel Thread Building Blocks (TBB) library (2021.8 / 12080) include location: . Assuming SuiteSparseQR was compiled with TBB.
-- Could not find librt, but found SuiteSparse_config, assuming that SuiteSparse was compiled without timing.
-- Could NOT find METIS (missing: METIS_INCLUDE_DIR METIS_LIBRARY)
-- Found required Ceres dependency: Eigen version 3.4.90 in C:/install/Eigen/share/eigen3/cmake
-- Found required Ceres dependency: glog
-- Found required Ceres dependency: gflags
-- Found Ceres version: 2.2.0 installed in: C:/install/ceres-solver with components: [EigenSparse, SparseLinearAlgebraLibrary, LAPACK, SuiteSparse, SchurSpecializations]
-- NVIDIA_OPTICAL_FLOW: Downloading edb50da3cf849840d680249aa6dbef248ebce2ca.zip from https://github.com/NVIDIA/NVIDIAOpticalFlowSDK/archive/edb50da3cf849840d680249aa6dbef248ebce2ca.zip
-- Building with NVIDIA Optical Flow API 2.0
-- Found 'misc' Python modules from C:/lib/opencv/modules/python/package/extra_modules
-- Found 'mat_wrapper;utils' Python modules from C:/lib/opencv/modules/core/misc/python/package
-- Found 'gapi' Python modules from C:/lib/opencv/modules/gapi/misc/python/package
-- Found 'misc' Python modules from C:/lib/opencv/modules/python/package/extra_modules
-- Found 'mat_wrapper;utils' Python modules from C:/lib/opencv/modules/core/misc/python/package
-- Found 'gapi' Python modules from C:/lib/opencv/modules/gapi/misc/python/package
-- DNNL_CONFIGURATION is unset, defaulting to cpu_dpcpp_gpu_dpcpp
-- DNNL_CONFIGURATION: cpu_dpcpp_gpu_dpcpp
-- SYCL/OpenCL samples are skipped: SYCL SDK is required
-- - check configuration of SYCL_DIR/SYCL_ROOT/CMAKE_MODULE_PATH
-- - ensure that right compiler is selected from SYCL SDK (e.g, clang++): CMAKE_CXX_COMPILER=C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.35.32215/bin/Hostx64/x64/cl.exe
-- Registered 'check_pylint' target: using C:/Users/laurent/AppData/Roaming/Python/Python310/Scripts/pylint.exe (ver: 2.16.2), checks: 191
-- Registered 'check_flake8' target: using C:/Users/laurent/AppData/Roaming/Python/Python310/Scripts/flake8.exe (ver: 6.0.0)
CMake Warning at cmake/OpenCVGenSetupVars.cmake:54 (message):
CONFIGURATION IS NOT SUPPORTED: validate setupvars script in install
directory
Call Stack (most recent call first):
CMakeLists.txt:1063 (include)
--
-- General configuration for OpenCV 4.7.0-dev =====================================
-- Version control: 4.7.0-86-g6c235c8edb
--
-- Extra modules:
-- Location (extra): C:/lib/opencv_contrib/modules
-- Version control (extra): 4.7.0-23-ged1873bc-dirty
--
-- Platform:
-- Timestamp: 2023-03-06T16:50:45Z
-- Host: Windows 10.0.22621 AMD64
-- CMake: 3.26.0-rc4
-- CMake generator: Visual Studio 17 2022
-- CMake build tool: C:/Program Files/Microsoft Visual Studio/2022/Community/MSBuild/Current/Bin/amd64/MSBuild.exe
-- MSVC: 1935
-- Configuration: Debug Release
--
-- CPU/HW features:
-- Baseline: SSE SSE2 SSE3
-- requested: SSE3
-- Dispatched code generation: SSE4_1 SSE4_2 FP16 AVX AVX2 AVX512_SKX
-- requested: SSE4_1 SSE4_2 AVX FP16 AVX2 AVX512_SKX
-- SSE4_1 (18 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 (34 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2
-- AVX512_SKX (8 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2 AVX_512F AVX512_COMMON AVX512_SKX
--
-- C/C++:
-- Built as dynamic libs?: YES
-- C++ standard: 11
-- C++ Compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.35.32215/bin/Hostx64/x64/cl.exe (ver 19.35.32215.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:precise /EHa /wd4127 /wd4251 /wd4324 /wd4275 /wd4512 /wd4589 /wd4819 /MP /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:precise /EHa /wd4127 /wd4251 /wd4324 /wd4275 /wd4512 /wd4589 /wd4819 /MP /MDd /Zi /Ob0 /Od /RTC1
-- C Compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.35.32215/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:precise /MP /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:precise /MP /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 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/v12.1/lib/x64
-- 3rdparty dependencies:
--
-- OpenCV modules:
-- To be built: alphamat aruco barcode 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 hfs highgui img_hash imgcodecs imgproc intensity_transform java line_descriptor mcc ml objdetect optflow phase_unwrapping photo plot python3 quality rapid reg rgbd saliency sfm shape stereo stitching structured_light superres surface_matching text tracking ts video videoio videostab viz wechat_qrcode xfeatures2d ximgproc xobjdetect xphoto
-- Disabled: world
-- Disabled by dependency: -
-- Unavailable: cvv freetype hdf julia matlab ovis python2
-- Applications: tests perf_tests examples apps
-- Documentation: NO
-- Non-free algorithms: YES
--
-- Windows RT support: NO
--
-- GUI: WIN32UI
-- Win32 UI: YES
-- OpenGL support: YES (opengl32 glu32)
-- VTK support: YES (ver 9.2.5)
--
-- Media I/O:
-- ZLib: optimized C:/install/zlib/lib/zlib.lib debug C:/install/zlib/lib/zlibd.lib (ver 1.2.13)
-- JPEG: build-libjpeg-turbo (ver 2.1.3-62)
-- SIMD Support Request: YES
-- SIMD Support: NO
-- WEBP: build (ver encoder: 0x020f)
-- PNG: optimized C:/install/libpng/lib/libpng16.lib debug C:/install/libpng/lib/libpng16d.lib (ver 1.6.40)
-- TIFF: build (ver 42 - 4.2.0)
-- JPEG 2000: build (ver 2.4.0)
-- 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.134.100)
-- avformat: YES (58.76.100)
-- avutil: YES (56.70.100)
-- swscale: YES (5.9.100)
-- avresample: YES (4.0.0)
-- GStreamer: NO
-- DirectShow: YES
-- Media Foundation: YES
-- DXVA: YES
--
-- Parallel framework: TBB (ver 2021.8 interface 12080)
--
-- Other third-party libraries:
-- Intel IPP: 2020.0.0 Gold [2020.0.0]
-- at: C:/lib/build_cuda/opencv/3rdparty/ippicv/ippicv_win/icv
-- Intel IPP IW: sources (2020.0.0)
-- at: C:/lib/build_cuda/opencv/3rdparty/ippicv/ippicv_win/iw
-- Lapack: YES (C:/Program Files (x86)/Intel/oneAPI/mkl/2023.0.0/lib/intel64/mkl_intel_lp64.lib C:/Program Files (x86)/Intel/oneAPI/mkl/2023.0.0/lib/intel64/mkl_sequential.lib C:/Program Files (x86)/Intel/oneAPI/mkl/2023.0.0/lib/intel64/mkl_core.lib)
-- Eigen: YES (ver ..)
-- Custom HAL: NO
-- Protobuf: build (3.19.1)
--
-- NVIDIA CUDA: YES (ver 12.1, CUFFT CUBLAS)
-- NVIDIA GPU arch: 86
-- NVIDIA PTX archs:
--
-- cuDNN: YES (ver 8.8.0)
--
-- OpenCL: YES (NVD3D11)
-- Include path: C:/lib/opencv/3rdparty/include/opencl/1.2
-- Link libraries: Dynamic load
--
-- Python 3:
-- Interpreter: C:/Program Files/Python310/python.exe (ver 3.10.10)
-- Libraries: optimized C:/Program Files/Python310/libs/python310.lib debug C:/Program Files/Python310/libs/python310_d.lib (ver 3.10.10)
-- numpy: C:/Users/laurent/AppData/Roaming/Python/Python310/site-packages/numpy/core/include (ver 1.24.2)
-- install path: C:/Users/laurent/AppData/Roaming/Python/Python310/site-packages/cv2/python-3.10
--
-- Python (for build): C:/Program Files/Python310/python.exe
--
-- Java:
-- ant: C:/apache-ant-1.10.13/bin/ant.bat (ver 1.10.13)
-- JNI: C:/Program Files/Java/jdk-19/include C:/Program Files/Java/jdk-19/include/win32 C:/Program Files/Java/jdk-19/include
-- Java wrappers: YES
-- Java tests: YES
--
-- Install to: C:/install/cuda/opencv
-- -----------------------------------------------------------------
--
-- Configuring done (55.6s)
-- Generating done (6.9s)
full output is here
First error is (sorry it’s in french) is dnn module
2>Building NVCC (Device) object modules/dnn/CMakeFiles/cuda_compile_1.dir/src/cuda/debug/cuda_compile_1_generated_activation_eltwise.cu.obj
3>Building NVCC (Device) object modules/dnn/CMakeFiles/cuda_compile_1.dir/src/cuda/debug/cuda_compile_1_generated_activations.cu.obj
1>Processing OpenCL kernels (dnn)
5>Building NVCC (Device) object modules/dnn/CMakeFiles/cuda_compile_1.dir/src/cuda/debug/cuda_compile_1_generated_bias_activation_eltwise.cu.obj
23>Building NVCC (Device) object modules/dnn/CMakeFiles/cuda_compile_1.dir/src/cuda/debug/cuda_compile_1_generated_roi_pooling.cu.obj
6>Building NVCC (Device) object modules/dnn/CMakeFiles/cuda_compile_1.dir/src/cuda/debug/cuda_compile_1_generated_bias_eltwise_activation.cu.obj
12>Building NVCC (Device) object modules/dnn/CMakeFiles/cuda_compile_1.dir/src/cuda/debug/cuda_compile_1_generated_fill_copy.cu.obj
7>Building NVCC (Device) object modules/dnn/CMakeFiles/cuda_compile_1.dir/src/cuda/debug/cuda_compile_1_generated_concat.cu.obj
4>Building NVCC (Device) object modules/dnn/CMakeFiles/cuda_compile_1.dir/src/cuda/debug/cuda_compile_1_generated_bias_activation.cu.obj
13>Building NVCC (Device) object modules/dnn/CMakeFiles/cuda_compile_1.dir/src/cuda/debug/cuda_compile_1_generated_fp_conversion.cu.obj
26>Building NVCC (Device) object modules/dnn/CMakeFiles/cuda_compile_1.dir/src/cuda/debug/cuda_compile_1_generated_slice.cu.obj
17>Building NVCC (Device) object modules/dnn/CMakeFiles/cuda_compile_1.dir/src/cuda/debug/cuda_compile_1_generated_normalize.cu.obj
14>Building NVCC (Device) object modules/dnn/CMakeFiles/cuda_compile_1.dir/src/cuda/debug/cuda_compile_1_generated_grid_nms.cu.obj
24>Building NVCC (Device) object modules/dnn/CMakeFiles/cuda_compile_1.dir/src/cuda/debug/cuda_compile_1_generated_scale_shift.cu.obj
10>Building NVCC (Device) object modules/dnn/CMakeFiles/cuda_compile_1.dir/src/cuda/debug/cuda_compile_1_generated_eltwise_activation.cu.obj
22>Building NVCC (Device) object modules/dnn/CMakeFiles/cuda_compile_1.dir/src/cuda/debug/cuda_compile_1_generated_resize.cu.obj
15>Building NVCC (Device) object modules/dnn/CMakeFiles/cuda_compile_1.dir/src/cuda/debug/cuda_compile_1_generated_max_unpooling.cu.obj
25>Building NVCC (Device) object modules/dnn/CMakeFiles/cuda_compile_1.dir/src/cuda/debug/cuda_compile_1_generated_shortcut.cu.obj
8>Building NVCC (Device) object modules/dnn/CMakeFiles/cuda_compile_1.dir/src/cuda/debug/cuda_compile_1_generated_crop_and_resize.cu.obj
9>Building NVCC (Device) object modules/dnn/CMakeFiles/cuda_compile_1.dir/src/cuda/debug/cuda_compile_1_generated_detection_output.cu.obj
16>Building NVCC (Device) object modules/dnn/CMakeFiles/cuda_compile_1.dir/src/cuda/debug/cuda_compile_1_generated_mvn.cu.obj
18>Building NVCC (Device) object modules/dnn/CMakeFiles/cuda_compile_1.dir/src/cuda/debug/cuda_compile_1_generated_padding.cu.obj
19>Building NVCC (Device) object modules/dnn/CMakeFiles/cuda_compile_1.dir/src/cuda/debug/cuda_compile_1_generated_permute.cu.obj
11>Building NVCC (Device) object modules/dnn/CMakeFiles/cuda_compile_1.dir/src/cuda/debug/cuda_compile_1_generated_eltwise_ops.cu.obj
20>Building NVCC (Device) object modules/dnn/CMakeFiles/cuda_compile_1.dir/src/cuda/debug/cuda_compile_1_generated_prior_box.cu.obj
21>Building NVCC (Device) object modules/dnn/CMakeFiles/cuda_compile_1.dir/src/cuda/debug/cuda_compile_1_generated_region.cu.obj
roi_pooling.cu
bias_activation_eltwise.cu
activations.cu
bias_eltwise_activation.cu
activation_eltwise.cu
concat.cu
fill_copy.cu
fp_conversion.cu
normalize.cu
slice.cu
bias_activation.cu
max_unpooling.cu
detection_output.cu
prior_box.cu
mvn.cu
crop_and_resize.cu
grid_nms.cu
scale_shift.cu
permute.cu
resize.cu
region.cu
eltwise_ops.cu
shortcut.cu
padding.cu
eltwise_activation.cu
fill_copy.cu
fp_conversion.cu
tmpxft_00002790_00000000-10_fp_conversion.cudafe1.cpp
C:\Users\laurent\AppData\Local\Temp\tmpxft_00002790_00000000-10_fp_conversion.cudafe1.cpp : fatal error C1041: impossible d'ouvrir la base de donn├®es du programme 'C:\lib\build_cuda\opencv\modules\dnn\CMakeFiles\cuda_compile_1.dir\src\cuda\vc140.pdb'┬á; si plusieurs CL.EXE ├®crivent dans le m├¬me fichier .PDB, utilisez /FS. [C:\lib\build_cuda\opencv\modules\dnn\opencv_dnn.vcxproj]
CMake Error at cuda_compile_1_generated_fp_conversion.cu.obj.Debug.cmake:280 (message):
Error generating file
C:/lib/build_cuda/opencv/modules/dnn/CMakeFiles/cuda_compile_1.dir/src/cuda/debug/cuda_compile_1_generated_fp_conversion.cu.obj
Le système ne trouve pas le nom de fichier de commandes - VCEnd
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(230,5): error MSB8066: la build personnalisée de 'C:\lib\opencv\modules\dnn\src\cuda\fp_conversion.cu' s'est arrêtée. Code 1. [C:\lib\build_cuda\opencv\modules\dnn\opencv_dnn.vcxproj]
concat.cu
tmpxft_000007e8_00000000-10_concat.cudafe1.cpp
C:\Users\laurent\AppData\Local\Temp\tmpxft_000007e8_00000000-10_concat.cudafe1.cpp : fatal error C1041: impossible d'ouvrir la base de donn├®es du programme 'C:\lib\build_cuda\opencv\modules\dnn\CMakeFiles\cuda_compile_1.dir\src\cuda\vc140.pdb'┬á; si plusieurs CL.EXE ├®crivent dans le m├¬me fichier .PDB, utilisez /FS. [C:\lib\build_cuda\opencv\modules\dnn\opencv_dnn.vcxproj]
normalize.cu
CMake Error at cuda_compile_1_generated_concat.cu.obj.Debug.cmake:280 (message):
Error generating file
C:/lib/build_cuda/opencv/modules/dnn/CMakeFiles/cuda_compile_1.dir/src/cuda/debug/cuda_compile_1_generated_concat.cu.obj
Le système ne trouve pas le nom de fichier de commandes - VCEnd