opencv-rust icon indicating copy to clipboard operation
opencv-rust copied to clipboard

fatal error: 'cuda_runtime.h' file not found

Open chang0959 opened this issue 5 months ago • 8 comments

Hello. I’m a beginner user who wants to use the CUDA functionality of opencv-rust. So far, I have completed the following steps:


  1. Built OpenCV with CUDA support manually

  2. Set environment variables:

  • CUDA_PATH : C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.5

  • CUDA_PATH_V12_5 : C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.5

  • LD_LIBRARY_PATH : C:\Program Files\LLVM\bin

  • LIBCLANG_PATH : C:\Program Files\LLVM\bin

  • OPENCV_INCLUDE_PATHS : C:\opencv\build\include

  • OPENCV_LINK_LIBS : opencv_world4100

  • OPENCV_LINK_PATHS : C:\opencv\build\x64\vc17\staticlib

  • Added to Path : C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.5, C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.5\bin, C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.5\include, C:\Program Files\LLVM\bin, C:\opencv\build\x64\vc17\staticlib, C:\opencv\build\include

  • Added to Cargo.toml:

opencv = { version = "0.95.1" }


This is how far I’ve gotten.

However, when I run:

cargo clean cargo build --verbose

I get the following error.

     Running `C:\Users\m\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin\rustc.exe --crate-name hyper --edition=2021 C:\Users\m\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\hyper-1.7.0\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=226 --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --warn=unexpected_cfgs --check-cfg cfg(hyper_unstable_tracing) --check-cfg cfg(hyper_unstable_ffi) --cfg "feature=\"client\"" --cfg "feature=\"default\"" --cfg "feature=\"http1\"" --cfg "feature=\"http2\"" --check-cfg cfg(docsrs,test) --check-cfg "cfg(feature, values(\"capi\", \"client\", \"default\", \"ffi\", \"full\", \"http1\", \"http2\", \"nightly\", \"server\", \"tracing\"))" -C metadata=9a10b0cc38a19e99 -C extra-filename=-df0bc42e2bf7c2d2 --out-dir D:\00.Work\24.cctv_ptz_det_cuda\cctv_ptz_det_cuda\target\debug\deps -L dependency=D:\00.Work\24.cctv_ptz_det_cuda\cctv_ptz_det_cuda\target\debug\deps --extern atomic_waker=D:\00.Work\24.cctv_ptz_det_cuda\cctv_ptz_det_cuda\target\debug\deps\libatomic_waker-9beb998af85f6048.rmeta --extern bytes=D:\00.Work\24.cctv_ptz_det_cuda\cctv_ptz_det_cuda\target\debug\deps\libbytes-85ec0a7083af1893.rmeta --extern futures_channel=D:\00.Work\24.cctv_ptz_det_cuda\cctv_ptz_det_cuda\target\debug\deps\libfutures_channel-afa2c79fcb65f814.rmeta --extern futures_core=D:\00.Work\24.cctv_ptz_det_cuda\cctv_ptz_det_cuda\target\debug\deps\libfutures_core-0f56b4401eeed948.rmeta --extern h2=D:\00.Work\24.cctv_ptz_det_cuda\cctv_ptz_det_cuda\target\debug\deps\libh2-512c8558343ac157.rmeta --extern http=D:\00.Work\24.cctv_ptz_det_cuda\cctv_ptz_det_cuda\target\debug\deps\libhttp-a1208e8761d039fe.rmeta --extern http_body=D:\00.Work\24.cctv_ptz_det_cuda\cctv_ptz_det_cuda\target\debug\deps\libhttp_body-02b524123f9b1e66.rmeta --extern httparse=D:\00.Work\24.cctv_ptz_det_cuda\cctv_ptz_det_cuda\target\debug\deps\libhttparse-20f3b0e448f76f28.rmeta --extern itoa=D:\00.Work\24.cctv_ptz_det_cuda\cctv_ptz_det_cuda\target\debug\deps\libitoa-234f3f64f0f0d5e2.rmeta --extern pin_project_lite=D:\00.Work\24.cctv_ptz_det_cuda\cctv_ptz_det_cuda\target\debug\deps\libpin_project_lite-2fa5e6199ff16a29.rmeta --extern pin_utils=D:\00.Work\24.cctv_ptz_det_cuda\cctv_ptz_det_cuda\target\debug\deps\libpin_utils-8af04ec5b63c27a1.rmeta --extern smallvec=D:\00.Work\24.cctv_ptz_det_cuda\cctv_ptz_det_cuda\target\debug\deps\libsmallvec-bf7233d6695be6fe.rmeta --extern tokio=D:\00.Work\24.cctv_ptz_det_cuda\cctv_ptz_det_cuda\target\debug\deps\libtokio-0e1424ed6b6f9b72.rmeta --extern want=D:\00.Work\24.cctv_ptz_det_cuda\cctv_ptz_det_cuda\target\debug\deps\libwant-d0ade955ecf71225.rmeta --cap-lints allow -L native=C:\Users\m\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\windows_x86_64_msvc-0.52.6\lib`
error: failed to run custom build command for `opencv v0.95.1`

Caused by:
  process didn't exit successfully: `D:\00.Work\24.cctv_ptz_det_cuda\cctv_ptz_det_cuda\target\debug\build\opencv-cd805e1fbec9756b\build-script-build` (exit code: 101)
  --- stdout
  cargo::rustc-check-cfg=cfg(ocvrs_opencv_branch_34)
  cargo::rustc-check-cfg=cfg(ocvrs_opencv_branch_4)
  cargo::rustc-check-cfg=cfg(ocvrs_opencv_branch_5)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_3d)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_alphamat)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_aruco)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_aruco_detector)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_barcode)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_bgsegm)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_bioinspired)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_calib)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_calib3d)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_ccalib)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_core)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_cudaarithm)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_cudabgsegm)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_cudacodec)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_cudafeatures2d)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_cudafilters)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_cudaimgproc)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_cudalegacy)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_cudaobjdetect)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_cudaoptflow)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_cudastereo)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_cudawarping)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_cvv)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_dnn)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_dnn_superres)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_dpm)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_face)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_features)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_features2d)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_flann)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_freetype)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_fuzzy)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_gapi)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_hdf)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_hfs)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_highgui)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_img_hash)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_imgcodecs)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_imgproc)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_intensity_transform)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_line_descriptor)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_mcc)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_ml)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_objdetect)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_optflow)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_ovis)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_phase_unwrapping)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_photo)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_plot)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_quality)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_rapid)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_rgbd)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_saliency)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_sfm)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_shape)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_signal)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_stereo)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_stitching)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_structured_light)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_superres)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_surface_matching)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_text)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_tracking)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_video)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_videoio)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_videostab)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_viz)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_wechat_qrcode)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_xfeatures2d)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_ximgproc)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_xobjdetect)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_xphoto)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_xstereo)
  cargo::rustc-check-cfg=cfg(ocvrs_has_inherent_feature_opencl)
  cargo::rustc-check-cfg=cfg(ocvrs_has_inherent_feature_cuda)
  cargo::rustc-check-cfg=cfg(ocvrs_has_inherent_feature_hfloat)
  cargo::rustc-check-cfg=cfg(ocvrs_has_inherent_feature_algorithm_hint)
  cargo::rustc-cfg=ocvrs_opencv_branch_4
  cargo::rustc-cfg=ocvrs_has_inherent_feature_cuda
  cargo::rustc-cfg=ocvrs_has_inherent_feature_opencl
  cargo::rustc-cfg=ocvrs_has_inherent_feature_hfloat
  cargo::rustc-cfg=ocvrs_has_module_aruco
  cargo::rustc-cfg=ocvrs_has_module_bgsegm
  cargo::rustc-cfg=ocvrs_has_module_bioinspired
  cargo::rustc-cfg=ocvrs_has_module_calib3d
  cargo::rustc-cfg=ocvrs_has_module_ccalib
  cargo::rustc-cfg=ocvrs_has_module_core
  cargo::rustc-cfg=ocvrs_has_module_cudaarithm
  cargo::rustc-cfg=ocvrs_has_module_cudabgsegm
  cargo::rustc-cfg=ocvrs_has_module_cudacodec
  cargo::rustc-cfg=ocvrs_has_module_cudafeatures2d
  cargo::rustc-cfg=ocvrs_has_module_cudafilters
  cargo::rustc-cfg=ocvrs_has_module_cudaimgproc
  cargo::rustc-cfg=ocvrs_has_module_cudalegacy
  cargo::rustc-cfg=ocvrs_has_module_cudaobjdetect
  cargo::rustc-cfg=ocvrs_has_module_cudaoptflow
  cargo::rustc-cfg=ocvrs_has_module_cudastereo
  cargo::rustc-cfg=ocvrs_has_module_cudawarping
  cargo::rustc-cfg=ocvrs_has_module_dnn
  cargo::rustc-cfg=ocvrs_has_module_dnn_superres
  cargo::rustc-cfg=ocvrs_has_module_dpm
  cargo::rustc-cfg=ocvrs_has_module_face
  cargo::rustc-cfg=ocvrs_has_module_features2d
  cargo::rustc-cfg=ocvrs_has_module_flann
  cargo::rustc-cfg=ocvrs_has_module_fuzzy
  cargo::rustc-cfg=ocvrs_has_module_gapi
  cargo::rustc-cfg=ocvrs_has_module_hfs
  cargo::rustc-cfg=ocvrs_has_module_highgui
  cargo::rustc-cfg=ocvrs_has_module_img_hash
  cargo::rustc-cfg=ocvrs_has_module_imgcodecs
  cargo::rustc-cfg=ocvrs_has_module_imgproc
  cargo::rustc-cfg=ocvrs_has_module_intensity_transform
  cargo::rustc-cfg=ocvrs_has_module_line_descriptor
  cargo::rustc-cfg=ocvrs_has_module_mcc
  cargo::rustc-cfg=ocvrs_has_module_ml
  cargo::rustc-cfg=ocvrs_has_module_objdetect
  cargo::rustc-cfg=ocvrs_has_module_optflow
  cargo::rustc-cfg=ocvrs_has_module_phase_unwrapping
  cargo::rustc-cfg=ocvrs_has_module_photo
  cargo::rustc-cfg=ocvrs_has_module_plot
  cargo::rustc-cfg=ocvrs_has_module_quality
  cargo::rustc-cfg=ocvrs_has_module_rapid
  cargo::rustc-cfg=ocvrs_has_module_rgbd
  cargo::rustc-cfg=ocvrs_has_module_saliency
  cargo::rustc-cfg=ocvrs_has_module_shape
  cargo::rustc-cfg=ocvrs_has_module_signal
  cargo::rustc-cfg=ocvrs_has_module_stereo
  cargo::rustc-cfg=ocvrs_has_module_stitching
  cargo::rustc-cfg=ocvrs_has_module_structured_light
  cargo::rustc-cfg=ocvrs_has_module_superres
  cargo::rustc-cfg=ocvrs_has_module_surface_matching
  cargo::rustc-cfg=ocvrs_has_module_text
  cargo::rustc-cfg=ocvrs_has_module_tracking
  cargo::rustc-cfg=ocvrs_has_module_video
  cargo::rustc-cfg=ocvrs_has_module_videoio
  cargo::rustc-cfg=ocvrs_has_module_videostab
  cargo::rustc-cfg=ocvrs_has_module_wechat_qrcode
  cargo::rustc-cfg=ocvrs_has_module_xfeatures2d
  cargo::rustc-cfg=ocvrs_has_module_ximgproc
  cargo::rustc-cfg=ocvrs_has_module_xobjdetect
  cargo::rustc-cfg=ocvrs_has_module_xphoto
  cargo::rerun-if-env-changed=OPENCV_PACKAGE_NAME
  cargo::rerun-if-env-changed=OPENCV_PKGCONFIG_NAME
  cargo::rerun-if-env-changed=OPENCV_CMAKE_NAME
  cargo::rerun-if-env-changed=OPENCV_CMAKE_BIN
  cargo::rerun-if-env-changed=OPENCV_VCPKG_NAME
  cargo::rerun-if-env-changed=OPENCV_LINK_LIBS
  cargo::rerun-if-env-changed=OPENCV_LINK_PATHS
  cargo::rerun-if-env-changed=OPENCV_INCLUDE_PATHS
  cargo::rerun-if-env-changed=OPENCV_DISABLE_PROBES
  cargo::rerun-if-env-changed=OPENCV_MSVC_CRT
  cargo::rerun-if-env-changed=CMAKE_PREFIX_PATH
  cargo::rerun-if-env-changed=OpenCV_DIR
  cargo::rerun-if-env-changed=PKG_CONFIG_PATH
  cargo::rerun-if-env-changed=VCPKG_ROOT
  cargo::rerun-if-env-changed=VCPKGRS_DYNAMIC
  cargo::rerun-if-env-changed=VCPKGRS_TRIPLET
  cargo::rerun-if-env-changed=OCVRS_DOCS_GENERATE_DIR
  cargo::rerun-if-env-changed=DOCS_RS
  cargo::rerun-if-changed=C:\Users\m\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\opencv-0.95.1\src_cpp\alphamat.hpp
  cargo::rerun-if-changed=C:\Users\m\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\opencv-0.95.1\src_cpp\aruco.hpp
  cargo::rerun-if-changed=C:\Users\m\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\opencv-0.95.1\src_cpp\bioinspired.hpp
  cargo::rerun-if-changed=C:\Users\m\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\opencv-0.95.1\src_cpp\ccalib.hpp
  cargo::rerun-if-changed=C:\Users\m\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\opencv-0.95.1\src_cpp\core.hpp
  cargo::rerun-if-changed=C:\Users\m\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\opencv-0.95.1\src_cpp\dnn.hpp
  cargo::rerun-if-changed=C:\Users\m\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\opencv-0.95.1\src_cpp\face.hpp
  cargo::rerun-if-changed=C:\Users\m\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\opencv-0.95.1\src_cpp\gapi.hpp
  cargo::rerun-if-changed=C:\Users\m\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\opencv-0.95.1\src_cpp\hdf.hpp
  cargo::rerun-if-changed=C:\Users\m\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\opencv-0.95.1\src_cpp\manual-core.cpp
  cargo::rerun-if-changed=C:\Users\m\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\opencv-0.95.1\src_cpp\ocvrs_common.hpp
  cargo::rerun-if-changed=C:\Users\m\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\opencv-0.95.1\src_cpp\photo.hpp
  cargo::rerun-if-changed=C:\Users\m\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\opencv-0.95.1\src_cpp\sfm.hpp
  cargo::rerun-if-changed=C:\Users\m\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\opencv-0.95.1\src_cpp\stitching.hpp
  cargo::rerun-if-changed=C:\Users\m\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\opencv-0.95.1\src_cpp\videoio.hpp
  cargo::rerun-if-changed=C:\Users\m\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\opencv-0.95.1\src_cpp\xfeatures2d.hpp
  cargo::rerun-if-changed=Cargo.toml

  --- stderr
  === Crate version: 0.95.1
  === Environment configuration:
  ===   OPENCV_PACKAGE_NAME = None
  ===   OPENCV_PKGCONFIG_NAME = None
  ===   OPENCV_CMAKE_NAME = None
  ===   OPENCV_CMAKE_BIN = None
  ===   OPENCV_VCPKG_NAME = None
  ===   OPENCV_LINK_LIBS = Some("opencv_world4100")
  ===   OPENCV_LINK_PATHS = Some("C:\\opencv\\build\\x64\\vc17\\staticlib")
  ===   OPENCV_INCLUDE_PATHS = Some("C:\\opencv\\build\\include")
  ===   OPENCV_DISABLE_PROBES = None
  ===   OPENCV_MSVC_CRT = None
  ===   CMAKE_PREFIX_PATH = None
  ===   OpenCV_DIR = Some("C:\\opencv\\build")
  ===   PKG_CONFIG_PATH = None
  ===   VCPKG_ROOT = None
  ===   VCPKGRS_DYNAMIC = None
  ===   VCPKGRS_TRIPLET = None
  ===   OCVRS_DOCS_GENERATE_DIR = None
  ===   DOCS_RS = None
  ===   PATH = Some("D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\deps;D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug;C:\\Users\\m\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib;D:\\00.Work\\97_files\\instantclient-tools-windows.x64-21.18.0.0.0dbru;%PATH%;C:\\Program Files (x86)\\Windows Kits\\10\\Windows Performance Toolkit\\;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.5;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.5\\bin;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.5\\libnvvp;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.5\\include;C:\\opencv\\build\\x64\\vc17\\bin;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\Git\\cmd;C:\\Windows\\System32\\WindowsPowerShell\\v1.0;C:\\vcpkg\\vcpkg;C:\\Program Files\\LLVM\\bin;C:\\ffmpeg-7.1.1-full_build-shared\\bin;C:\\opencv\\build\\x64\\vc17\\staticlib;C:\\opencv\\build\\include;C:\\ffmpeg-7.1.1-full_build-shared;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\NVIDIA Corporation\\Nsight Compute 2025.3.0\\;C:\\Program Files\\CMake\\bin;C:\\tools\\opencv\\build\\x64\\vc16\\bin;C:\\Users\\m\\AppData\\Local\\Programs\\Python\\Python310\\Scripts\\;C:\\Users\\m\\AppData\\Local\\Programs\\Python\\Python310\\;C:\\Users\\m\\.cargo\\bin;C:\\Users\\m\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\m\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;D:\\oracle\\product\\19c\\dbhome_1\\bin;D:\\oracle\\product\\19c\\dbhome_1\\OPatch;C:\\Users\\m\\sumo-1.24.0\\bin;C:\\opencv\\build\\x64\\vc17\\bin;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\Program Files\\Amazon\\AWSCLIV2;;c:\\Users\\m\\AppData\\Roaming\\Code\\User\\globalStorage\\github.copilot-chat\\debugCommand;C:\\Users\\m\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\bin")
  === Enabled features:
  ===   3D
  ===   ALPHAMAT
  ===   ARUCO
  ===   ARUCO_DETECTOR
  ===   BARCODE
  ===   BGSEGM
  ===   BIOINSPIRED
  ===   CALIB
  ===   CALIB3D
  ===   CCALIB
  ===   CUDAARITHM
  ===   CUDABGSEGM
  ===   CUDACODEC
  ===   CUDAFEATURES2D
  ===   CUDAFILTERS
  ===   CUDAIMGPROC
  ===   CUDALEGACY
  ===   CUDAOBJDETECT
  ===   CUDAOPTFLOW
  ===   CUDASTEREO
  ===   CUDAWARPING
  ===   CVV
  ===   DEFAULT
  ===   DNN
  ===   DNN_SUPERRES
  ===   DPM
  ===   FACE
  ===   FEATURES
  ===   FEATURES2D
  ===   FLANN
  ===   FREETYPE
  ===   FUZZY
  ===   GAPI
  ===   HDF
  ===   HFS
  ===   HIGHGUI
  ===   IMGCODECS
  ===   IMGPROC
  ===   IMG_HASH
  ===   INTENSITY_TRANSFORM
  ===   LINE_DESCRIPTOR
  ===   MCC
  ===   ML
  ===   OBJDETECT
  ===   OPTFLOW
  ===   OVIS
  ===   PHASE_UNWRAPPING
  ===   PHOTO
  ===   PLOT
  ===   QUALITY
  ===   RAPID
  ===   RGBD
  ===   SALIENCY
  ===   SFM
  ===   SHAPE
  ===   SIGNAL
  ===   STEREO
  ===   STITCHING
  ===   STRUCTURED_LIGHT
  ===   SUPERRES
  ===   SURFACE_MATCHING
  ===   TEXT
  ===   TRACKING
  ===   VIDEO
  ===   VIDEOIO
  ===   VIDEOSTAB
  ===   VIZ
  ===   WECHAT_QRCODE
  ===   XFEATURES2D
  ===   XIMGPROC
  ===   XOBJDETECT
  ===   XPHOTO
  ===   XSTEREO
  === Detected probe priority boost based on environment vars: pkg_config: false, cmake: true, vcpkg: false
  === Probing the OpenCV library in the following order: environment, cmake, pkg_config, vcpkg_cmake, vcpkg
  === Configuring OpenCV library from the environment:
  ===   include_paths: C:\opencv\build\include
  ===   link_paths: C:\opencv\build\x64\vc17\staticlib
  ===   link_libs: opencv_world4100
  === Successfully probed using: environment
  === OpenCV library configuration: Library {
      include_paths: [
          "C:\\opencv\\build\\include",
      ],
      version: Version {
          major: 4,
          minor: 10,
          patch: 0,
      },
      inherent_features: [
          "cuda",
          "cublas",
          "cudnn",
          "cufft",
          "directx",
          "directx_nv12",
          "d3d11",
          "d3d10",
          "d3d9",
          "inttypes_h 1",
          "ipp",
          "ipp_icv",
          "ipp_iw",
          "ipp_iw_ll",
          "openjpeg",
          "jpeg",
          "opencl",
          "opencl_d3d11_nv",
          "openexr",
          "png",
          "tiff",
      ],
      cargo_metadata: [
          "cargo::rustc-link-search=C:\\opencv\\build\\x64\\vc17\\staticlib",
          "cargo::rustc-link-lib=opencv_world4100",
      ],
  }
  === Found OpenCV version: 4.10.0 in headers located at: C:\opencv\build\include
  === Detected OpenCV module header dir at: C:\opencv\build\include\opencv2
  === Generating code in: D:\00.Work\24.cctv_ptz_det_cuda\cctv_ptz_det_cuda\target\debug\build\opencv-8d78fc44de34cfd2\out
  === Placing generated bindings into: D:\00.Work\24.cctv_ptz_det_cuda\cctv_ptz_det_cuda\target\debug\build\opencv-8d78fc44de34cfd2\out\opencv
  === Using OpenCV headers from: C:\opencv\build\include
  === Clang: clang version 20.1.8
  === Clang command line args: [
      "-isystemC:\\Program Files\\LLVM\\lib\\clang\\20\\include",
      "-isystemC:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\VC\\Tools\\MSVC\\14.44.35207\\include",
      "-isystemC:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\VC\\Tools\\MSVC\\14.44.35207\\atlmfc\\include",
      "-isystemC:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.26100.0\\ucrt",
      "-isystemC:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.26100.0\\shared",
      "-isystemC:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.26100.0\\um",
      "-isystemC:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.26100.0\\winrt",
      "-isystemC:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.26100.0\\cppwinrt",
      "-IC:\\opencv\\build\\include",
      "-FC:\\opencv\\build\\include",
      "-IC:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\src_cpp",
      "-FC:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\src_cpp",
      "-DOCVRS_PARSING_HEADERS",
      "-includeocvrs_common.hpp",
      "-std=c++17",
  ]
  === Using environment job server with the the amount of available jobs: 46
  === Generating 60 modules
  === Running: "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-cd805e1fbec9756b\\build-script-build.exe" "C:\\opencv\\build\\include" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\src_cpp" "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-8d78fc44de34cfd2\\out" "aruco" ""
  === Running: "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-cd805e1fbec9756b\\build-script-build.exe" "C:\\opencv\\build\\include" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\src_cpp" "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-8d78fc44de34cfd2\\out" "calib3d" ""
  === Running: "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-cd805e1fbec9756b\\build-script-build.exe" "C:\\opencv\\build\\include" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\src_cpp" "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-8d78fc44de34cfd2\\out" "core" ""
  === Running: "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-cd805e1fbec9756b\\build-script-build.exe" "C:\\opencv\\build\\include" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\src_cpp" "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-8d78fc44de34cfd2\\out" "bgsegm" ""
  === Running: "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-cd805e1fbec9756b\\build-script-build.exe" "C:\\opencv\\build\\include" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\src_cpp" "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-8d78fc44de34cfd2\\out" "ccalib" ""
  === Running: "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-cd805e1fbec9756b\\build-script-build.exe" "C:\\opencv\\build\\include" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\src_cpp" "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-8d78fc44de34cfd2\\out" "bioinspired" ""
  === Running: "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-cd805e1fbec9756b\\build-script-build.exe" "C:\\opencv\\build\\include" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\src_cpp" "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-8d78fc44de34cfd2\\out" "cudaarithm" ""
  === Running: "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-cd805e1fbec9756b\\build-script-build.exe" "C:\\opencv\\build\\include" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\src_cpp" "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-8d78fc44de34cfd2\\out" "cudaoptflow" ""
  === Running: "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-cd805e1fbec9756b\\build-script-build.exe" "C:\\opencv\\build\\include" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\src_cpp" "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-8d78fc44de34cfd2\\out" "cudacodec" ""
  === Running: "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-cd805e1fbec9756b\\build-script-build.exe" "C:\\opencv\\build\\include" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\src_cpp" "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-8d78fc44de34cfd2\\out" "cudafeatures2d" ""
  === Running: "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-cd805e1fbec9756b\\build-script-build.exe" "C:\\opencv\\build\\include" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\src_cpp" "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-8d78fc44de34cfd2\\out" "cudafilters" ""
  === Running: "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-cd805e1fbec9756b\\build-script-build.exe" "C:\\opencv\\build\\include" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\src_cpp" "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-8d78fc44de34cfd2\\out" "cudaimgproc" ""
  === Running: "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-cd805e1fbec9756b\\build-script-build.exe" "C:\\opencv\\build\\include" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\src_cpp" "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-8d78fc44de34cfd2\\out" "cudalegacy" ""
  === Running: "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-cd805e1fbec9756b\\build-script-build.exe" "C:\\opencv\\build\\include" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\src_cpp" "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-8d78fc44de34cfd2\\out" "cudaobjdetect" ""
  === Running: "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-cd805e1fbec9756b\\build-script-build.exe" "C:\\opencv\\build\\include" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\src_cpp" "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-8d78fc44de34cfd2\\out" "cudabgsegm" ""
  === Running: "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-cd805e1fbec9756b\\build-script-build.exe" "C:\\opencv\\build\\include" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\src_cpp" "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-8d78fc44de34cfd2\\out" "cudastereo" ""
  === Running: "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-cd805e1fbec9756b\\build-script-build.exe" "C:\\opencv\\build\\include" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\src_cpp" "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-8d78fc44de34cfd2\\out" "phase_unwrapping" ""
  === Running: "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-cd805e1fbec9756b\\build-script-build.exe" "C:\\opencv\\build\\include" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\src_cpp" "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-8d78fc44de34cfd2\\out" "dnn" ""
  === Running: "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-cd805e1fbec9756b\\build-script-build.exe" "C:\\opencv\\build\\include" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\src_cpp" "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-8d78fc44de34cfd2\\out" "dnn_superres" ""
  === Running: "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-cd805e1fbec9756b\\build-script-build.exe" "C:\\opencv\\build\\include" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\src_cpp" "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-8d78fc44de34cfd2\\out" "dpm" ""
  === Running: "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-cd805e1fbec9756b\\build-script-build.exe" "C:\\opencv\\build\\include" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\src_cpp" "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-8d78fc44de34cfd2\\out" "face" ""
  === Running: "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-cd805e1fbec9756b\\build-script-build.exe" "C:\\opencv\\build\\include" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\src_cpp" "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-8d78fc44de34cfd2\\out" "features2d" ""
  === Running: "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-cd805e1fbec9756b\\build-script-build.exe" "C:\\opencv\\build\\include" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\src_cpp" "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-8d78fc44de34cfd2\\out" "shape" ""
  === Running: "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-cd805e1fbec9756b\\build-script-build.exe" "C:\\opencv\\build\\include" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\src_cpp" "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-8d78fc44de34cfd2\\out" "fuzzy" ""
  === Running: "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-cd805e1fbec9756b\\build-script-build.exe" "C:\\opencv\\build\\include" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\src_cpp" "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-8d78fc44de34cfd2\\out" "gapi" ""
  === Running: "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-cd805e1fbec9756b\\build-script-build.exe" "C:\\opencv\\build\\include" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\src_cpp" "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-8d78fc44de34cfd2\\out" "hfs" ""
  === Running: "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-cd805e1fbec9756b\\build-script-build.exe" "C:\\opencv\\build\\include" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\src_cpp" "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-8d78fc44de34cfd2\\out" "highgui" ""
  === Running: "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-cd805e1fbec9756b\\build-script-build.exe" "C:\\opencv\\build\\include" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\src_cpp" "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-8d78fc44de34cfd2\\out" "img_hash" ""
  === Running: "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-cd805e1fbec9756b\\build-script-build.exe" "C:\\opencv\\build\\include" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\src_cpp" "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-8d78fc44de34cfd2\\out" "imgcodecs" ""
  === Running: "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-cd805e1fbec9756b\\build-script-build.exe" "C:\\opencv\\build\\include" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\src_cpp" "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-8d78fc44de34cfd2\\out" "imgproc" ""
  === Running: "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-cd805e1fbec9756b\\build-script-build.exe" "C:\\opencv\\build\\include" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\src_cpp" "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-8d78fc44de34cfd2\\out" "intensity_transform" ""
  === Running: "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-cd805e1fbec9756b\\build-script-build.exe" "C:\\opencv\\build\\include" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\src_cpp" "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-8d78fc44de34cfd2\\out" "line_descriptor" ""
  === Running: "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-cd805e1fbec9756b\\build-script-build.exe" "C:\\opencv\\build\\include" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\src_cpp" "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-8d78fc44de34cfd2\\out" "mcc" ""
  === Running: "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-cd805e1fbec9756b\\build-script-build.exe" "C:\\opencv\\build\\include" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\src_cpp" "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-8d78fc44de34cfd2\\out" "ml" ""
  === Running: "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-cd805e1fbec9756b\\build-script-build.exe" "C:\\opencv\\build\\include" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\src_cpp" "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-8d78fc44de34cfd2\\out" "stitching" ""
  === Running: "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-cd805e1fbec9756b\\build-script-build.exe" "C:\\opencv\\build\\include" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\src_cpp" "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-8d78fc44de34cfd2\\out" "optflow" ""
  === Running: "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-cd805e1fbec9756b\\build-script-build.exe" "C:\\opencv\\build\\include" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\src_cpp" "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-8d78fc44de34cfd2\\out" "cudawarping" ""
  === Running: "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-cd805e1fbec9756b\\build-script-build.exe" "C:\\opencv\\build\\include" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\src_cpp" "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-8d78fc44de34cfd2\\out" "photo" ""
  === Running: "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-cd805e1fbec9756b\\build-script-build.exe" "C:\\opencv\\build\\include" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\src_cpp" "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-8d78fc44de34cfd2\\out" "plot" ""
  === Running: "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-cd805e1fbec9756b\\build-script-build.exe" "C:\\opencv\\build\\include" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\src_cpp" "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-8d78fc44de34cfd2\\out" "quality" ""
  === Running: "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-cd805e1fbec9756b\\build-script-build.exe" "C:\\opencv\\build\\include" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\src_cpp" "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-8d78fc44de34cfd2\\out" "rapid" ""
  === Running: "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-cd805e1fbec9756b\\build-script-build.exe" "C:\\opencv\\build\\include" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\src_cpp" "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-8d78fc44de34cfd2\\out" "rgbd" ""
  === Running: "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-cd805e1fbec9756b\\build-script-build.exe" "C:\\opencv\\build\\include" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\src_cpp" "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-8d78fc44de34cfd2\\out" "saliency" ""
  === Running: "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-cd805e1fbec9756b\\build-script-build.exe" "C:\\opencv\\build\\include" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\src_cpp" "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-8d78fc44de34cfd2\\out" "flann" ""
  === Running: "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-cd805e1fbec9756b\\build-script-build.exe" "C:\\opencv\\build\\include" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\src_cpp" "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-8d78fc44de34cfd2\\out" "signal" ""
  === Running: "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-cd805e1fbec9756b\\build-script-build.exe" "C:\\opencv\\build\\include" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\src_cpp" "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-8d78fc44de34cfd2\\out" "stereo" ""
  === Running: "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-cd805e1fbec9756b\\build-script-build.exe" "C:\\opencv\\build\\include" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\src_cpp" "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-8d78fc44de34cfd2\\out" "objdetect" ""
  === WARNING: 1 diagnostic messages
  ===    C:\opencv\build\include\opencv2/cudalegacy/NCV.hpp:52:10: fatal error: 'cuda_runtime.h' file not found

  thread 'main' panicked at C:\Users\m\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\opencv-binding-generator-0.97.0\src\generator.rs:425:17:
  === Errors during header parsing
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

  thread 'gen-cudalegacy' panicked at C:\Users\m\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\opencv-0.95.1\build\generator.rs:227:37:
  Failed to run the bindings generator for module: cudalegacy
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
  === Running: "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-cd805e1fbec9756b\\build-script-build.exe" "C:\\opencv\\build\\include" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\src_cpp" "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-8d78fc44de34cfd2\\out" "structured_light" ""
  === Generated module bindings: signal in: 6.9351327s
  === Generated module bindings: intensity_transform in: 6.9420244s
  === Generated module bindings: fuzzy in: 6.9721576s
  === Generated module bindings: cudawarping in: 6.9701318s
  === Running: "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-cd805e1fbec9756b\\build-script-build.exe" "C:\\opencv\\build\\include" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\src_cpp" "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-8d78fc44de34cfd2\\out" "superres" ""
  === Generated module bindings: imgcodecs in: 7.1738646s
  === Generated module bindings: highgui in: 7.2372888s
  === Generated module bindings: stereo in: 7.2629255s
  === Running: "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-cd805e1fbec9756b\\build-script-build.exe" "C:\\opencv\\build\\include" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\src_cpp" "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-8d78fc44de34cfd2\\out" "surface_matching" ""
  === Running: "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-cd805e1fbec9756b\\build-script-build.exe" "C:\\opencv\\build\\include" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\src_cpp" "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-8d78fc44de34cfd2\\out" "text" ""
  === Generated module bindings: dpm in: 7.5429553s
  === Generated module bindings: cudafilters in: 7.5989726s
  === Generated module bindings: hfs in: 7.6052793s
  === Running: "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-cd805e1fbec9756b\\build-script-build.exe" "C:\\opencv\\build\\include" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\src_cpp" "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-8d78fc44de34cfd2\\out" "tracking" ""
  === Generated module bindings: cudabgsegm in: 7.6097074s
  === Generated module bindings: phase_unwrapping in: 7.6081074s
  === Generated module bindings: plot in: 7.6046452s
  === Generated module bindings: dnn_superres in: 7.6150833s
  === Running: "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-cd805e1fbec9756b\\build-script-build.exe" "C:\\opencv\\build\\include" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\src_cpp" "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-8d78fc44de34cfd2\\out" "video" ""
  === Running: "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-cd805e1fbec9756b\\build-script-build.exe" "C:\\opencv\\build\\include" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\src_cpp" "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-8d78fc44de34cfd2\\out" "videoio" ""
  === Running: "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-cd805e1fbec9756b\\build-script-build.exe" "C:\\opencv\\build\\include" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\src_cpp" "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-8d78fc44de34cfd2\\out" "videostab" ""
  === Running: "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-cd805e1fbec9756b\\build-script-build.exe" "C:\\opencv\\build\\include" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\src_cpp" "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-8d78fc44de34cfd2\\out" "wechat_qrcode" ""
  === Running: "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-cd805e1fbec9756b\\build-script-build.exe" "C:\\opencv\\build\\include" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\src_cpp" "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-8d78fc44de34cfd2\\out" "xfeatures2d" ""
  === Generated module bindings: flann in: 7.7721143s
  === Running: "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-cd805e1fbec9756b\\build-script-build.exe" "C:\\opencv\\build\\include" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\src_cpp" "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-8d78fc44de34cfd2\\out" "ximgproc" ""
  === Running: "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-cd805e1fbec9756b\\build-script-build.exe" "C:\\opencv\\build\\include" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\src_cpp" "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-8d78fc44de34cfd2\\out" "xobjdetect" ""
  === Running: "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-cd805e1fbec9756b\\build-script-build.exe" "C:\\opencv\\build\\include" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\src_cpp" "D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\build\\opencv-8d78fc44de34cfd2\\out" "xphoto" ""
  === Generated module bindings: cudacodec in: 7.9368598s
  === Generated module bindings: rapid in: 8.068284s
  === Generated module bindings: bioinspired in: 8.124849s
  === Generated module bindings: cudaarithm in: 8.126372s
  === Generated module bindings: mcc in: 8.1789975s
  === Generated module bindings: aruco in: 8.3138588s
  === Generated module bindings: cudaobjdetect in: 8.3117663s
  === Generated module bindings: saliency in: 8.3770834s
  === Generated module bindings: img_hash in: 8.3930803s
  === Generated module bindings: structured_light in: 3.0314548s
  === Generated module bindings: line_descriptor in: 8.5784051s
  === Generated module bindings: cudaoptflow in: 8.7916605s
  === Generated module bindings: cudastereo in: 8.7922303s
  === Generated module bindings: bgsegm in: 8.797661s
  === Generated module bindings: quality in: 8.9151601s
  === Generated module bindings: cudafeatures2d in: 8.9367696s
  === Generated module bindings: cudaimgproc in: 9.1121827s
  === Generated module bindings: photo in: 9.1895538s
  === Generated module bindings: shape in: 9.2156616s
  === Generated module bindings: imgproc in: 9.2179194s
  === Generated module bindings: gapi in: 9.3654166s
  === Generated module bindings: objdetect in: 9.3935132s
  === Generated module bindings: face in: 9.4955149s
  === Generated module bindings: ccalib in: 9.5261111s
  === Generated module bindings: optflow in: 9.5411932s
  === Generated module bindings: calib3d in: 9.5534674s
  === Generated module bindings: ml in: 9.6785198s
  === Generated module bindings: features2d in: 10.1433856s
  === Generated module bindings: rgbd in: 10.3304017s
  === Generated module bindings: stitching in: 10.4618175s
  === Generated module bindings: superres in: 3.3878355s
  === Generated module bindings: wechat_qrcode in: 3.1026014s
  === Generated module bindings: surface_matching in: 3.3761087s
  === Generated module bindings: tracking in: 3.2300082s
  === Generated module bindings: xobjdetect in: 2.9953195s
  === Generated module bindings: videoio in: 3.3240871s
  === Generated module bindings: xphoto in: 3.2989523s
  === Generated module bindings: text in: 3.8615787s
  === Generated module bindings: video in: 3.8488954s
  === Generated module bindings: core in: 11.8558402s

  thread 'main' panicked at C:\Users\m\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\opencv-0.95.1\build\generator.rs:240:36:
  Generator process panicked: Any { .. }
  === Generated module bindings: xfeatures2d in: 4.4013169s
  === Generated module bindings: videostab in: 10.7044853s
  === Generated module bindings: ximgproc in: 11.6581323s
  === Generated module bindings: dnn in: 22.2930902s
warning: build failed, waiting for other jobs to finish...

I cannot figure out the cause at all.

I would really appreciate your help.


  • os : Windows 11
  • opencv : 4.10.0
  • cuda : 12.5
  • rustc : 1.89.0

chang0959 avatar Sep 04 '25 08:09 chang0959

You should try adding path that contains cuda_runtime.h header to the OPENCV_INCLUDE_PATHS

twistedfall avatar Sep 04 '25 09:09 twistedfall

Thanks for your answer. That error is now gone, but I'm getting another one. Currently, I have the environment variables VCPKG_ROOT set. What should I do to fix this error?

  • VCPKG_ROOT: C:\vcpkg

Caused by:
  process didn't exit successfully: `D:\00.Work\24.cctv_ptz_det_cuda\cctv_ptz_det_cuda\target\debug\build\opencv-cd805e1fbec9756b\build-script-build` (exit code: 1)
  --- stdout
  cargo::rustc-check-cfg=cfg(ocvrs_opencv_branch_34)
  cargo::rustc-check-cfg=cfg(ocvrs_opencv_branch_4)
  cargo::rustc-check-cfg=cfg(ocvrs_opencv_branch_5)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_3d)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_alphamat)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_aruco)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_aruco_detector)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_barcode)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_bgsegm)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_bioinspired)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_calib)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_calib3d)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_ccalib)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_core)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_cudaarithm)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_cudabgsegm)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_cudacodec)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_cudafeatures2d)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_cudafilters)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_cudaimgproc)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_cudalegacy)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_cudaobjdetect)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_cudaoptflow)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_cudastereo)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_cudawarping)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_cvv)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_dnn)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_dnn_superres)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_dpm)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_face)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_features)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_features2d)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_flann)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_freetype)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_fuzzy)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_gapi)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_hdf)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_hfs)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_highgui)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_img_hash)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_imgcodecs)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_imgproc)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_intensity_transform)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_line_descriptor)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_mcc)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_ml)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_objdetect)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_optflow)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_ovis)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_phase_unwrapping)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_photo)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_plot)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_quality)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_rapid)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_rgbd)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_saliency)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_sfm)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_shape)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_signal)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_stereo)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_stitching)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_structured_light)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_superres)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_surface_matching)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_text)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_tracking)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_video)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_videoio)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_videostab)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_viz)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_wechat_qrcode)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_xfeatures2d)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_ximgproc)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_xobjdetect)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_xphoto)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_xstereo)
  cargo::rustc-check-cfg=cfg(ocvrs_has_inherent_feature_opencl)
  cargo::rustc-check-cfg=cfg(ocvrs_has_inherent_feature_cuda)
  cargo::rustc-check-cfg=cfg(ocvrs_has_inherent_feature_hfloat)
  cargo::rustc-check-cfg=cfg(ocvrs_has_inherent_feature_algorithm_hint)
  cargo:rerun-if-env-changed=OPENCV4_NO_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-pc-windows-msvc
  cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG
  cargo:rerun-if-env-changed=OPENCV4_STATIC
  cargo:rerun-if-env-changed=OPENCV4_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-pc-windows-msvc
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-pc-windows-msvc
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-pc-windows-msvc
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=OPENCV4_STATIC
  cargo:rerun-if-env-changed=OPENCV4_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-pc-windows-msvc
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-pc-windows-msvc
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-pc-windows-msvc
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=OPENCV_NO_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-pc-windows-msvc
  cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG
  cargo:rerun-if-env-changed=OPENCV_STATIC
  cargo:rerun-if-env-changed=OPENCV_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-pc-windows-msvc
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-pc-windows-msvc
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-pc-windows-msvc
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=OPENCV_STATIC
  cargo:rerun-if-env-changed=OPENCV_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-pc-windows-msvc
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-pc-windows-msvc
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-pc-windows-msvc
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR

  --- stderr
  === Crate version: 0.95.1
  === Environment configuration:
  ===   OPENCV_PACKAGE_NAME = None
  ===   OPENCV_PKGCONFIG_NAME = None
  ===   OPENCV_CMAKE_NAME = None
  ===   OPENCV_CMAKE_BIN = None
  ===   OPENCV_VCPKG_NAME = None
  ===   OPENCV_LINK_LIBS = Some("opencv_world4100")
  ===   OPENCV_LINK_PATHS = Some("C:\\opencv\\build\\x64\\vc17\\staticlib")
  ===   OPENCV_INCLUDE_PATHS = Some("C:\\opencv\\build\\include;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.5\\include")
  ===   OPENCV_DISABLE_PROBES = None
  ===   OPENCV_MSVC_CRT = None
  ===   CMAKE_PREFIX_PATH = None
  ===   OpenCV_DIR = Some("C:\\opencv\\build;")
  ===   PKG_CONFIG_PATH = None
  ===   VCPKG_ROOT = Some("C:\\vcpkg")
  ===   VCPKGRS_DYNAMIC = None
  ===   VCPKGRS_TRIPLET = Some("C:\\vcpkg\\triplets")
  ===   OCVRS_DOCS_GENERATE_DIR = None
  ===   DOCS_RS = None
  ===   PATH = Some("D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug\\deps;D:\\00.Work\\24.cctv_ptz_det_cuda\\cctv_ptz_det_cuda\\target\\debug;C:\\Users\\m\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib;D:\\00.Work\\97_files\\instantclient-tools-windows.x64-21.18.0.0.0dbru;%PATH%;C:\\Program Files (x86)\\Windows Kits\\10\\Windows Performance Toolkit\\;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.5;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.5\\bin;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.5\\libnvvp;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.5\\include;C:\\opencv\\build\\x64\\vc17\\bin;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\Git\\cmd;C:\\Windows\\System32\\WindowsPowerShell\\v1.0;C:\\vcpkg;C:\\Program Files\\LLVM\\bin;C:\\ffmpeg-7.1.1-full_build-shared\\bin;C:\\opencv\\build\\x64\\vc17\\staticlib;C:\\opencv\\build\\include;C:\\ffmpeg-7.1.1-full_build-shared;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\NVIDIA Corporation\\Nsight Compute 2025.3.0\\;C:\\Program Files\\CMake\\bin;C:\\tools\\opencv\\build\\x64\\vc16\\bin;C:\\opencv\\build;C:\\vcpkg\\triplets;C:\\Users\\m\\AppData\\Local\\Programs\\Python\\Python310\\Scripts\\;C:\\Users\\m\\AppData\\Local\\Programs\\Python\\Python310\\;C:\\Users\\m\\.cargo\\bin;C:\\Users\\m\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\m\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;D:\\oracle\\product\\19c\\dbhome_1\\bin;D:\\oracle\\product\\19c\\dbhome_1\\OPatch;C:\\Users\\m\\sumo-1.24.0\\bin;C:\\opencv\\build\\x64\\vc17\\bin;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\Program Files\\Amazon\\AWSCLIV2;;c:\\Users\\m\\AppData\\Roaming\\Code\\User\\globalStorage\\github.copilot-chat\\debugCommand;C:\\Users\\m\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\bin")
  === Enabled features:
  ===   3D
  ===   ALPHAMAT
  ===   ARUCO
  ===   ARUCO_DETECTOR
  ===   BARCODE
  ===   BGSEGM
  ===   BIOINSPIRED
  ===   CALIB
  ===   CALIB3D
  ===   CCALIB
  ===   CUDAARITHM
  ===   CUDABGSEGM
  ===   CUDACODEC
  ===   CUDAFEATURES2D
  ===   CUDAFILTERS
  ===   CUDAIMGPROC
  ===   CUDALEGACY
  ===   CUDAOBJDETECT
  ===   CUDAOPTFLOW
  ===   CUDASTEREO
  ===   CUDAWARPING
  ===   CVV
  ===   DEFAULT
  ===   DNN
  ===   DNN_SUPERRES
  ===   DPM
  ===   FACE
  ===   FEATURES
  ===   FEATURES2D
  ===   FLANN
  ===   FREETYPE
  ===   FUZZY
  ===   GAPI
  ===   HDF
  ===   HFS
  ===   HIGHGUI
  ===   IMGCODECS
  ===   IMGPROC
  ===   IMG_HASH
  ===   INTENSITY_TRANSFORM
  ===   LINE_DESCRIPTOR
  ===   MCC
  ===   ML
  ===   OBJDETECT
  ===   OPTFLOW
  ===   OVIS
  ===   PHASE_UNWRAPPING
  ===   PHOTO
  ===   PLOT
  ===   QUALITY
  ===   RAPID
  ===   RGBD
  ===   SALIENCY
  ===   SFM
  ===   SHAPE
  ===   SIGNAL
  ===   STEREO
  ===   STITCHING
  ===   STRUCTURED_LIGHT
  ===   SUPERRES
  ===   SURFACE_MATCHING
  ===   TEXT
  ===   TRACKING
  ===   VIDEO
  ===   VIDEOIO
  ===   VIDEOSTAB
  ===   VIZ
  ===   WECHAT_QRCODE
  ===   XFEATURES2D
  ===   XIMGPROC
  ===   XOBJDETECT
  ===   XPHOTO
  ===   XSTEREO
  === Detected probe priority boost based on environment vars: pkg_config: false, cmake: true, vcpkg: true
  === Probing the OpenCV library in the following order: environment, cmake, vcpkg_cmake, vcpkg, pkg_config
  === Configuring OpenCV library from the environment:
  ===   include_paths: C:\opencv\build\include;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.5\include
  ===   link_paths: C:\opencv\build\x64\vc17\staticlib
  ===   link_libs: opencv_world4100
  === Can't probe using: environment, continuing with other methods because: Could not get OpenCV version from include_paths
  === Probing OpenCV library using cmake
  === cmake ninja probe command: "cmake" "-S" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\cmake" "-DOCVRS_PACKAGE_NAME=OpenCV" "-DCMAKE_BUILD_TYPE=Debug" "-G" "Ninja"
  === Probing with cmake ninja generator failed, will try Makefile generator, error: cmake returned an error
      stdout: "-- Configuring incomplete, errors occurred!\n"
      stderr: "CMake Error: CMake was unable to find a build program corresponding to \"Ninja\".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.\nCMake Error: CMAKE_C_COMPILER not set, after EnableLanguage\nCMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage\n"
  === cmake makefiles probe command: "cmake" "-S" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\cmake" "-DOCVRS_PACKAGE_NAME=OpenCV" "-DCMAKE_BUILD_TYPE=Debug" "-G" "Unix Makefiles"
  === Probing with cmake Makefile generator failed, will try deprecated find_package, error: cmake returned an error
      stdout: "-- Configuring incomplete, errors occurred!\n"
      stderr: "CMake Error: CMake was unable to find a build program corresponding to \"Unix Makefiles\".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.\nCMake Error: CMAKE_C_COMPILER not set, after EnableLanguage\nCMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage\n"
  === cmake find-package compile probe command: "cmake" "-S" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\cmake" "-DOCVRS_PACKAGE_NAME=OpenCV" "-DCMAKE_BUILD_TYPE=Debug" "--find-package" "-DCOMPILER_ID=GNU" "-DLANGUAGE=CXX" "-DMODE=COMPILE" "-DNAME=OpenCV"
  === Can't probe using: cmake, continuing with other methods because: cmake returned an error
      stdout: "OpenCV not found.\r\n"
      stderr: "CMake Warning at C:/opencv/build/OpenCVConfig.cmake:93 (message):\n  OpenCV: CMAKE_SIZEOF_VOID_P is not defined.  Perhaps CMake toolchain is\n  broken\nCall Stack (most recent call first):\n  C:/Program Files/CMake/share/cmake-3.28/Modules/CMakeFindPackageMode.cmake:183 (find_package)\n\n\nCMake Error: Run 'cmake --help' for all supported options.\n"
  === Probing OpenCV library using vcpkg_cmake
  === Discovered vcpkg root: C:\vcpkg
  === Probing OpenCV library using cmake with toolchain: C:\vcpkg\scripts/buildsystems/vcpkg.cmake
  === cmake ninja probe command: "cmake" "-S" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\cmake" "-DOCVRS_PACKAGE_NAME=OpenCV" "-DCMAKE_TOOLCHAIN_FILE=C:\\vcpkg\\scripts/buildsystems/vcpkg.cmake" "-DCMAKE_BUILD_TYPE=Debug" "-G" "Ninja"
  === Probing with cmake ninja generator failed, will try Makefile generator, error: cmake returned an error
      stdout: "-- Configuring incomplete, errors occurred!\n"
      stderr: "CMake Error: CMake was unable to find a build program corresponding to \"Ninja\".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.\nCMake Error: CMAKE_C_COMPILER not set, after EnableLanguage\nCMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage\n"
  === cmake makefiles probe command: "cmake" "-S" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\cmake" "-DOCVRS_PACKAGE_NAME=OpenCV" "-DCMAKE_TOOLCHAIN_FILE=C:\\vcpkg\\scripts/buildsystems/vcpkg.cmake" "-DCMAKE_BUILD_TYPE=Debug" "-G" "Unix Makefiles"
  === Probing with cmake Makefile generator failed, will try deprecated find_package, error: cmake returned an error
      stdout: "-- Configuring incomplete, errors occurred!\n"
      stderr: "CMake Error: CMake was unable to find a build program corresponding to \"Unix Makefiles\".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.\nCMake Error: CMAKE_C_COMPILER not set, after EnableLanguage\nCMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage\n"
  === cmake find-package compile probe command: "cmake" "-S" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\cmake" "-DOCVRS_PACKAGE_NAME=OpenCV" "-DCMAKE_TOOLCHAIN_FILE=C:\\vcpkg\\scripts/buildsystems/vcpkg.cmake" "-DCMAKE_BUILD_TYPE=Debug" "--find-package" "-DCOMPILER_ID=GNU" "-DLANGUAGE=CXX" "-DMODE=COMPILE" "-DNAME=OpenCV"
  === Can't probe using: vcpkg_cmake, continuing with other methods because: cmake returned an error
      stdout: "OpenCV not found.\r\n"
      stderr: "CMake Warning at C:/opencv/build/OpenCVConfig.cmake:93 (message):\n  OpenCV: CMAKE_SIZEOF_VOID_P is not defined.  Perhaps CMake toolchain is\n  broken\nCall Stack (most recent call first):\n  C:/vcpkg/scripts/buildsystems/vcpkg.cmake:896 (_find_package)\n  C:/Program Files/CMake/share/cmake-3.28/Modules/CMakeFindPackageMode.cmake:183 (find_package)\n\n\nCMake Error: Run 'cmake --help' for all supported options.\n"
  === Probing OpenCV library using vcpkg
  === Can't probe using: vcpkg, continuing with other methods because: Could not look up details of packages in vcpkg tree could not read status file updates dir: 지정된 경로를 찾을 수 없습니다. (os error 3), Could not look up details of packages in vcpkg tree could not read status file updates dir: 지정된 경로를 찾을 수 없습니다. (os error 3)
  === Probing OpenCV library using pkg_config
  === Can't probe using: pkg_config, continuing with other methods because: Could not run `PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 pkg-config --libs --cflags opencv4`
  The pkg-config command could not be found.

  Most likely, you need to install a pkg-config package for your OS.

  If you've already installed it, ensure the pkg-config command is one of the
  directories in the PATH environment variable.

  If you did not expect this build to link to a pre-installed system library,
  then check documentation of the opencv crate for an option to
  build the library from source, or disable features or dependencies
  that require pkg-config., Could not run `PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 pkg-config --libs --cflags opencv`
  The pkg-config command could not be found.

  Most likely, you need to install a pkg-config package for your OS.

  If you've already installed it, ensure the pkg-config command is one of the
  directories in the PATH environment variable.

  If you did not expect this build to link to a pre-installed system library,
  then check documentation of the opencv crate for an option to
  build the library from source, or disable features or dependencies
  that require pkg-config.
  Error: "Failed to find installed OpenCV package using probes: environment, cmake, vcpkg_cmake, vcpkg, pkg_config, refer to https://github.com/twistedfall/opencv-rust#getting-opencv for help"
warning: build failed, waiting for other jobs to finish...
Image

chang0959 avatar Sep 05 '25 02:09 chang0959

These are the error message important for vcpkg detection:

  === Discovered vcpkg root: C:\vcpkg
  === Probing OpenCV library using cmake with toolchain: C:\vcpkg\scripts/buildsystems/vcpkg.cmake
  === cmake ninja probe command: "cmake" "-S" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\cmake" "-DOCVRS_PACKAGE_NAME=OpenCV" "-DCMAKE_TOOLCHAIN_FILE=C:\\vcpkg\\scripts/buildsystems/vcpkg.cmake" "-DCMAKE_BUILD_TYPE=Debug" "-G" "Ninja"
  === Probing with cmake ninja generator failed, will try Makefile generator, error: cmake returned an error
      stdout: "-- Configuring incomplete, errors occurred!\n"
      stderr: "CMake Error: CMake was unable to find a build program corresponding to \"Ninja\".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.\nCMake Error: CMAKE_C_COMPILER not set, after EnableLanguage\nCMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage\n"
  === cmake makefiles probe command: "cmake" "-S" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\cmake" "-DOCVRS_PACKAGE_NAME=OpenCV" "-DCMAKE_TOOLCHAIN_FILE=C:\\vcpkg\\scripts/buildsystems/vcpkg.cmake" "-DCMAKE_BUILD_TYPE=Debug" "-G" "Unix Makefiles"
  === Probing with cmake Makefile generator failed, will try deprecated find_package, error: cmake returned an error
      stdout: "-- Configuring incomplete, errors occurred!\n"
      stderr: "CMake Error: CMake was unable to find a build program corresponding to \"Unix Makefiles\".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.\nCMake Error: CMAKE_C_COMPILER not set, after EnableLanguage\nCMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage\n"
  === cmake find-package compile probe command: "cmake" "-S" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\cmake" "-DOCVRS_PACKAGE_NAME=OpenCV" "-DCMAKE_TOOLCHAIN_FILE=C:\\vcpkg\\scripts/buildsystems/vcpkg.cmake" "-DCMAKE_BUILD_TYPE=Debug" "--find-package" "-DCOMPILER_ID=GNU" "-DLANGUAGE=CXX" "-DMODE=COMPILE" "-DNAME=OpenCV"
  === Can't probe using: vcpkg_cmake, continuing with other methods because: cmake returned an error
      stdout: "OpenCV not found.\r\n"
      stderr: "CMake Warning at C:/opencv/build/OpenCVConfig.cmake:93 (message):\n  OpenCV: CMAKE_SIZEOF_VOID_P is not defined.  Perhaps CMake toolchain is\n  broken\nCall Stack (most recent call first):\n  C:/vcpkg/scripts/buildsystems/vcpkg.cmake:896 (_find_package)\n  C:/Program Files/CMake/share/cmake-3.28/Modules/CMakeFindPackageMode.cmake:183 (find_package)\n\n\nCMake Error: Run 'cmake --help' for all supported options.\n"
  === Probing OpenCV library using vcpkg
  === Can't probe using: vcpkg, continuing with other methods because: Could not look up details of packages in vcpkg tree could not read status file updates dir: 지정된 경로를 찾을 수 없습니다. (os error 3), Could not look up details of packages in vcpkg tree could not read status file updates dir: 지정된 경로를 찾을 수 없습니다. (os error 3)

Looks like your setup is somehow broken

twistedfall avatar Sep 05 '25 08:09 twistedfall

Hi, thank you again for your help.

Despite trying several changes to the environment variables, I’m still running into issues, so I’m attaching the error message here. I’ve built OpenCV with CUDA support using CMake-GUI, but I might have missed something during the setup.

As someone new to OpenCV, I’m finding it a bit difficult to troubleshoot this on my own, so I’d really appreciate it if you could take a look and let me know what might be going wrong.

Let me know if you need me to check anything.

Thank you in advance!

Compiling opencv v0.95.1
error: failed to run custom build command for `opencv v0.95.1`

Caused by:
  process didn't exit successfully: `D:\00.Work\22.cctv_ptz_det\cctv_ptz_det\target\debug\build\opencv-6a3b7cb7d0d17ec4\build-script-build` (exit code: 1)
  --- stdout
  cargo::rustc-check-cfg=cfg(ocvrs_opencv_branch_34)
  cargo::rustc-check-cfg=cfg(ocvrs_opencv_branch_4)
  cargo::rustc-check-cfg=cfg(ocvrs_opencv_branch_5)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_3d)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_alphamat)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_aruco)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_aruco_detector)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_barcode)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_bgsegm)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_bioinspired)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_calib)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_calib3d)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_ccalib)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_core)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_cudaarithm)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_cudabgsegm)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_cudacodec)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_cudafeatures2d)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_cudafilters)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_cudaimgproc)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_cudalegacy)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_cudaobjdetect)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_cudaoptflow)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_cudastereo)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_cudawarping)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_cvv)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_dnn)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_dnn_superres)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_dpm)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_face)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_features)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_features2d)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_flann)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_freetype)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_fuzzy)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_gapi)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_hdf)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_hfs)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_highgui)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_img_hash)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_imgcodecs)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_imgproc)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_intensity_transform)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_line_descriptor)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_mcc)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_ml)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_objdetect)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_optflow)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_ovis)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_phase_unwrapping)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_photo)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_plot)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_quality)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_rapid)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_rgbd)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_saliency)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_sfm)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_shape)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_signal)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_stereo)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_stitching)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_structured_light)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_superres)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_surface_matching)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_text)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_tracking)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_video)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_videoio)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_videostab)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_viz)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_wechat_qrcode)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_xfeatures2d)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_ximgproc)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_xobjdetect)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_xphoto)
  cargo::rustc-check-cfg=cfg(ocvrs_has_module_xstereo)
  cargo::rustc-check-cfg=cfg(ocvrs_has_inherent_feature_opencl)
  cargo::rustc-check-cfg=cfg(ocvrs_has_inherent_feature_cuda)
  cargo::rustc-check-cfg=cfg(ocvrs_has_inherent_feature_hfloat)
  cargo::rustc-check-cfg=cfg(ocvrs_has_inherent_feature_algorithm_hint)
  cargo:rerun-if-env-changed=OPENCV4_NO_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-pc-windows-msvc
  cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG
  cargo:rerun-if-env-changed=OPENCV4_STATIC
  cargo:rerun-if-env-changed=OPENCV4_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-pc-windows-msvc
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-pc-windows-msvc
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-pc-windows-msvc
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=OPENCV4_STATIC
  cargo:rerun-if-env-changed=OPENCV4_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-pc-windows-msvc
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-pc-windows-msvc
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-pc-windows-msvc
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=OPENCV_NO_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-pc-windows-msvc
  cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG
  cargo:rerun-if-env-changed=OPENCV_STATIC
  cargo:rerun-if-env-changed=OPENCV_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-pc-windows-msvc
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-pc-windows-msvc
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-pc-windows-msvc
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=OPENCV_STATIC
  cargo:rerun-if-env-changed=OPENCV_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-pc-windows-msvc
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-pc-windows-msvc
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-pc-windows-msvc
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR

  --- stderr
  === Crate version: 0.95.1
  === Environment configuration:
  ===   OPENCV_PACKAGE_NAME = None
  ===   OPENCV_PKGCONFIG_NAME = None
  ===   OPENCV_CMAKE_NAME = None
  ===   OPENCV_CMAKE_BIN = None
  ===   OPENCV_VCPKG_NAME = None
  ===   OPENCV_LINK_LIBS = Some("opencv_world4100")
  ===   OPENCV_LINK_PATHS = Some("C:\\opencv\\build\\x64\\vc17\\staticlib")
  ===   OPENCV_INCLUDE_PATHS = Some("C:\\opencv\\build\\include;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.5\\include;")
  ===   OPENCV_DISABLE_PROBES = None
  ===   OPENCV_MSVC_CRT = None
  ===   CMAKE_PREFIX_PATH = None
  ===   OpenCV_DIR = Some("C:\\opencv\\build\\x64\\vc17\\staticlib;")
  ===   PKG_CONFIG_PATH = None
  ===   VCPKG_ROOT = None
  ===   VCPKGRS_DYNAMIC = None
  ===   VCPKGRS_TRIPLET = None
  ===   OCVRS_DOCS_GENERATE_DIR = None
  ===   DOCS_RS = None
  ===   PATH = Some("D:\\00.Work\\22.cctv_ptz_det\\cctv_ptz_det\\target\\debug\\deps;D:\\00.Work\\22.cctv_ptz_det\\cctv_ptz_det\\target\\debug;C:\\Users\\m\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib;D:\\00.Work\\97_files\\instantclient-tools-windows.x64-21.18.0.0.0dbru;%PATH%;C:\\Program Files (x86)\\Windows Kits\\10\\Windows Performance Toolkit\\;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.5;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.5\\bin;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.5\\libnvvp;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.5\\include;C:\\opencv\\build\\x64\\vc17\\bin;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\Git\\cmd;C:\\Windows\\System32\\WindowsPowerShell\\v1.0;C:\\vcpkg;C:\\Program Files\\LLVM\\bin;C:\\ffmpeg-7.1.1-full_build-shared\\bin;C:\\opencv\\build\\x64\\vc17\\staticlib;C:\\opencv\\build\\include;C:\\ffmpeg-7.1.1-full_build-shared;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\NVIDIA Corporation\\Nsight Compute 2025.3.0\\;C:\\Program Files\\CMake\\bin;C:\\tools\\opencv\\build\\x64\\vc16\\bin;C:\\opencv\\build;C:\\Users\\m\\AppData\\Local\\Programs\\Python\\Python310\\Scripts\\;C:\\Users\\m\\AppData\\Local\\Programs\\Python\\Python310\\;C:\\Users\\m\\.cargo\\bin;C:\\Users\\m\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\m\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;D:\\oracle\\product\\19c\\dbhome_1\\bin;D:\\oracle\\product\\19c\\dbhome_1\\OPatch;C:\\Users\\m\\sumo-1.24.0\\bin;C:\\opencv\\build\\x64\\vc17\\bin;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\Program Files\\Amazon\\AWSCLIV2;;c:\\Users\\m\\.vscode\\extensions\\ms-python.debugpy-2025.10.0-win32-x64\\bundled\\scripts\\noConfigScripts;c:\\Users\\m\\AppData\\Roaming\\Code\\User\\globalStorage\\github.copilot-chat\\debugCommand;C:\\Users\\m\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\bin")
  === Enabled features:
  ===   3D
  ===   ALPHAMAT
  ===   ARUCO
  ===   ARUCO_DETECTOR
  ===   BARCODE
  ===   BGSEGM
  ===   BIOINSPIRED
  ===   CALIB
  ===   CALIB3D
  ===   CCALIB
  ===   CLANG_RUNTIME
  ===   CUDAARITHM
  ===   CUDABGSEGM
  ===   CUDACODEC
  ===   CUDAFEATURES2D
  ===   CUDAFILTERS
  ===   CUDAIMGPROC
  ===   CUDALEGACY
  ===   CUDAOBJDETECT
  ===   CUDAOPTFLOW
  ===   CUDASTEREO
  ===   CUDAWARPING
  ===   CVV
  ===   DEFAULT
  ===   DNN
  ===   DNN_SUPERRES
  ===   DPM
  ===   FACE
  ===   FEATURES
  ===   FEATURES2D
  ===   FLANN
  ===   FREETYPE
  ===   FUZZY
  ===   GAPI
  ===   HDF
  ===   HFS
  ===   HIGHGUI
  ===   IMGCODECS
  ===   IMGPROC
  ===   IMG_HASH
  ===   INTENSITY_TRANSFORM
  ===   LINE_DESCRIPTOR
  ===   MCC
  ===   ML
  ===   OBJDETECT
  ===   OPTFLOW
  ===   OVIS
  ===   PHASE_UNWRAPPING
  ===   PHOTO
  ===   PLOT
  ===   QUALITY
  ===   RAPID
  ===   RGBD
  ===   SALIENCY
  ===   SFM
  ===   SHAPE
  ===   SIGNAL
  ===   STEREO
  ===   STITCHING
  ===   STRUCTURED_LIGHT
  ===   SUPERRES
  ===   SURFACE_MATCHING
  ===   TEXT
  ===   TRACKING
  ===   VIDEO
  ===   VIDEOIO
  ===   VIDEOSTAB
  ===   VIZ
  ===   WECHAT_QRCODE
  ===   XFEATURES2D
  ===   XIMGPROC
  ===   XOBJDETECT
  ===   XPHOTO
  ===   XSTEREO
  === Detected probe priority boost based on environment vars: pkg_config: false, cmake: true, vcpkg: false
  === Probing the OpenCV library in the following order: environment, cmake, pkg_config, vcpkg_cmake, vcpkg
  === Configuring OpenCV library from the environment:
  ===   include_paths: C:\opencv\build\include;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.5\include;
  ===   link_paths: C:\opencv\build\x64\vc17\staticlib
  ===   link_libs: opencv_world4100
  === Can't probe using: environment, continuing with other methods because: Could not get OpenCV version from include_paths
  === Probing OpenCV library using cmake
  === cmake ninja probe command: "cmake" "-S" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\cmake" "-DOCVRS_PACKAGE_NAME=OpenCV" "-DCMAKE_BUILD_TYPE=Debug" "-G" "Ninja"
  === Extracting build arguments from: -lopencv_calib3d.lib  -lopencv_core.lib  -lopencv_dnn.lib  -lopencv_features2d.lib  -lopencv_flann.lib  -lopencv_gapi.lib  -lopencv_highgui.lib  -lopencv_imgcodecs.lib  -lopencv_imgproc.lib  -lopencv_ml.lib  -lopencv_objdetect.lib  -lopencv_photo.lib  -lopencv_stitching.lib  -lopencv_video.lib  -lopencv_videoio.lib  C:/opencv/build/x64/vc17/staticlib/opencv_world4100.lib  -lopencv_aruco.lib  -lopencv_bgsegm.lib  -lopencv_bioinspired.lib  -lopencv_ccalib.lib  -lopencv_cudaarithm.lib  -lopencv_cudabgsegm.lib  -lopencv_cudacodec.lib  -lopencv_cudafeatures2d.lib  -lopencv_cudafilters.lib  -lopencv_cudaimgproc.lib  -lopencv_cudalegacy.lib  -lopencv_cudaobjdetect.lib  -lopencv_cudaoptflow.lib  -lopencv_cudastereo.lib  -lopencv_cudawarping.lib  -lopencv_cudev.lib  -lopencv_datasets.lib  -lopencv_dnn_objdetect.lib  -lopencv_dnn_superres.lib  -lopencv_dpm.lib  -lopencv_face.lib  -lopencv_fuzzy.lib  -lopencv_hfs.lib  C:/opencv/build/x64/vc17/staticlib/opencv_img_hash4100.lib  -lopencv_intensity_transform.lib  -lopencv_line_descriptor.lib  -lopencv_mcc.lib  -lopencv_optflow.lib  -lopencv_phase_unwrapping.lib  -lopencv_plot.lib  -lopencv_quality.lib  -lopencv_rapid.lib  -lopencv_reg.lib  -lopencv_rgbd.lib  -lopencv_saliency.lib  -lopencv_shape.lib  -lopencv_signal.lib  -lopencv_stereo.lib  -lopencv_structured_light.lib  -lopencv_superres.lib  -lopencv_surface_matching.lib  -lopencv_text.lib  -lopencv_tracking.lib  -lopencv_videostab.lib  -lopencv_wechat_qrcode.lib  -lopencv_xfeatures2d.lib  -lopencv_ximgproc.lib  -lopencv_xobjdetect.lib  -lopencv_xphoto.lib  C:/opencv/build/x64/vc17/staticlib/opencv_world4100.lib  C:/opencv/build/x64/vc17/staticlib/libprotobuf.lib  C:/opencv/build/x64/vc17/staticlib/libjpeg-turbo.lib  C:/opencv/build/x64/vc17/staticlib/libwebp.lib  C:/opencv/build/x64/vc17/staticlib/libpng.lib  C:/opencv/build/x64/vc17/staticlib/libtiff.lib  C:/opencv/build/x64/vc17/staticlib/libopenjp2.lib  C:/opencv/build/x64/vc17/staticlib/IlmImf.lib  C:/opencv/build/x64/vc17/staticlib/zlib.lib  -lcomctl32.lib  -lole32.lib  -lsetupapi.lib  C:/opencv/build/x64/vc17/staticlib/ittnotify.lib  -luser32.lib  -lgdi32.lib  C:/opencv/build/x64/vc17/staticlib/ade.lib  -lws2_32.lib  -lwsock32.lib  -lws2_32.lib  -lwsock32.lib  C:/opencv/build/x64/vc17/staticlib/ippiw.lib  C:/opencv/build/x64/vc17/staticlib/ippicvmt.lib  -lcudart_static.lib  -lnppc.lib  -lnppial.lib  -lnppicc.lib  -lnppidei.lib  -lnppif.lib  -lnppig.lib  -lnppim.lib  -lnppist.lib  -lnppisu.lib  -lnppitc.lib  -lnpps.lib  -lcublas.lib  -lcudnn.lib  -lcufft.lib  -lcudart_static.lib  -lnppc.lib  -lnppial.lib  -lnppicc.lib  -lnppidei.lib  -lnppif.lib  -lnppig.lib  -lnppim.lib  -lnppist.lib  -lnppisu.lib  -lnppitc.lib  -lnpps.lib  -lcublas.lib  -lcudnn.lib  -lcufft.lib  -LIBPATH:C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.5/lib/x64  -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32 -loldnames

  === Extracting build arguments from: -LC:/PROGRA~1/NVIDIA~2/CUDA/v12.5/lib/x64

  === Failed to get DEB_TARGET_MULTIARCH: program not found
  === Failed to get -print-multiarch: program not found
  === Failed to get DEB_TARGET_MULTIARCH, trying common multiarch paths
  === Trying multiarch paths: ["x86_64-linux-gnu", "aarch64-linux-gnu", "arm-linux-gnueabihf"]
  === Can't probe using: cmake, continuing with other methods because: Could not get OpenCV config from include_paths
  === Probing OpenCV library using pkg_config
  === Can't probe using: pkg_config, continuing with other methods because: Could not run `PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 pkg-config --libs --cflags opencv4`
  The pkg-config command could not be found.

  Most likely, you need to install a pkg-config package for your OS.

  If you've already installed it, ensure the pkg-config command is one of the
  directories in the PATH environment variable.

  If you did not expect this build to link to a pre-installed system library,
  then check documentation of the opencv crate for an option to
  build the library from source, or disable features or dependencies
  that require pkg-config., Could not run `PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 pkg-config --libs --cflags opencv`
  The pkg-config command could not be found.

  Most likely, you need to install a pkg-config package for your OS.

  If you've already installed it, ensure the pkg-config command is one of the
  directories in the PATH environment variable.

  If you did not expect this build to link to a pre-installed system library,
  then check documentation of the opencv crate for an option to
  build the library from source, or disable features or dependencies
  that require pkg-config.
  === Probing OpenCV library using vcpkg_cmake
  === Discovered vcpkg root: C:\vcpkg
  === Probing OpenCV library using cmake with toolchain: C:\vcpkg\scripts/buildsystems/vcpkg.cmake
  === cmake ninja probe command: "cmake" "-S" "C:\\Users\\m\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\opencv-0.95.1\\cmake" "-DOCVRS_PACKAGE_NAME=OpenCV" "-DCMAKE_TOOLCHAIN_FILE=C:\\vcpkg\\scripts/buildsystems/vcpkg.cmake" "-DCMAKE_BUILD_TYPE=Debug" "-G" "Ninja"
  === Extracting build arguments from: -lopencv_calib3d.lib  -lopencv_core.lib  -lopencv_dnn.lib  -lopencv_features2d.lib  -lopencv_flann.lib  -lopencv_gapi.lib  -lopencv_highgui.lib  -lopencv_imgcodecs.lib  -lopencv_imgproc.lib  -lopencv_ml.lib  -lopencv_objdetect.lib  -lopencv_photo.lib  -lopencv_stitching.lib  -lopencv_video.lib  -lopencv_videoio.lib  C:/opencv/build/x64/vc17/staticlib/opencv_world4100.lib  -lopencv_aruco.lib  -lopencv_bgsegm.lib  -lopencv_bioinspired.lib  -lopencv_ccalib.lib  -lopencv_cudaarithm.lib  -lopencv_cudabgsegm.lib  -lopencv_cudacodec.lib  -lopencv_cudafeatures2d.lib  -lopencv_cudafilters.lib  -lopencv_cudaimgproc.lib  -lopencv_cudalegacy.lib  -lopencv_cudaobjdetect.lib  -lopencv_cudaoptflow.lib  -lopencv_cudastereo.lib  -lopencv_cudawarping.lib  -lopencv_cudev.lib  -lopencv_datasets.lib  -lopencv_dnn_objdetect.lib  -lopencv_dnn_superres.lib  -lopencv_dpm.lib  -lopencv_face.lib  -lopencv_fuzzy.lib  -lopencv_hfs.lib  C:/opencv/build/x64/vc17/staticlib/opencv_img_hash4100.lib  -lopencv_intensity_transform.lib  -lopencv_line_descriptor.lib  -lopencv_mcc.lib  -lopencv_optflow.lib  -lopencv_phase_unwrapping.lib  -lopencv_plot.lib  -lopencv_quality.lib  -lopencv_rapid.lib  -lopencv_reg.lib  -lopencv_rgbd.lib  -lopencv_saliency.lib  -lopencv_shape.lib  -lopencv_signal.lib  -lopencv_stereo.lib  -lopencv_structured_light.lib  -lopencv_superres.lib  -lopencv_surface_matching.lib  -lopencv_text.lib  -lopencv_tracking.lib  -lopencv_videostab.lib  -lopencv_wechat_qrcode.lib  -lopencv_xfeatures2d.lib  -lopencv_ximgproc.lib  -lopencv_xobjdetect.lib  -lopencv_xphoto.lib  C:/opencv/build/x64/vc17/staticlib/opencv_world4100.lib  C:/opencv/build/x64/vc17/staticlib/libprotobuf.lib  C:/opencv/build/x64/vc17/staticlib/libjpeg-turbo.lib  C:/opencv/build/x64/vc17/staticlib/libwebp.lib  C:/opencv/build/x64/vc17/staticlib/libpng.lib  C:/opencv/build/x64/vc17/staticlib/libtiff.lib  C:/opencv/build/x64/vc17/staticlib/libopenjp2.lib  C:/opencv/build/x64/vc17/staticlib/IlmImf.lib  C:/opencv/build/x64/vc17/staticlib/zlib.lib  -lcomctl32.lib  -lole32.lib  -lsetupapi.lib  C:/opencv/build/x64/vc17/staticlib/ittnotify.lib  -luser32.lib  -lgdi32.lib  C:/opencv/build/x64/vc17/staticlib/ade.lib  -lws2_32.lib  -lwsock32.lib  -lws2_32.lib  -lwsock32.lib  C:/opencv/build/x64/vc17/staticlib/ippiw.lib  C:/opencv/build/x64/vc17/staticlib/ippicvmt.lib  -lcudart_static.lib  -lnppc.lib  -lnppial.lib  -lnppicc.lib  -lnppidei.lib  -lnppif.lib  -lnppig.lib  -lnppim.lib  -lnppist.lib  -lnppisu.lib  -lnppitc.lib  -lnpps.lib  -lcublas.lib  -lcudnn.lib  -lcufft.lib  -lcudart_static.lib  -lnppc.lib  -lnppial.lib  -lnppicc.lib  -lnppidei.lib  -lnppif.lib  -lnppig.lib  -lnppim.lib  -lnppist.lib  -lnppisu.lib  -lnppitc.lib  -lnpps.lib  -lcublas.lib  -lcudnn.lib  -lcufft.lib  -LIBPATH:C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.5/lib/x64  -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32 -loldnames

  === Extracting build arguments from: -LC:/PROGRA~1/NVIDIA~2/CUDA/v12.5/lib/x64

  === Failed to get DEB_TARGET_MULTIARCH: program not found
  === Failed to get -print-multiarch: program not found
  === Failed to get DEB_TARGET_MULTIARCH, trying common multiarch paths
  === Trying multiarch paths: ["x86_64-linux-gnu", "aarch64-linux-gnu", "arm-linux-gnueabihf"]
  === Can't probe using: vcpkg_cmake, continuing with other methods because: Could not get OpenCV config from include_paths
  === Probing OpenCV library using vcpkg
  === Can't probe using: vcpkg, continuing with other methods because: Could not look up details of packages in vcpkg tree could not read status file updates dir: 지정된 경로를 찾을 수 없습니다. (os error 3), Could not look up details of packages in vcpkg tree could not read status file updates dir: 지정된 경로를 찾을 수 없습니다. (os error 3)
  Error: "Failed to find installed OpenCV package using probes: environment, cmake, pkg_config, vcpkg_cmake, vcpkg, refer to https://github.com/twistedfall/opencv-rust#getting-opencv for help"

chang0959 avatar Sep 12 '25 06:09 chang0959

I've just noticed that you used ; to separate the custom include paths. Please use , for that:

OPENCV_INCLUDE_PATHS='C:\opencv\build\include,C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.5\include'

Let's hope it works

twistedfall avatar Sep 12 '25 08:09 twistedfall

You're amazing—thank you! After following your instructions, the errors are gone.

However, I'm still getting the following error: "Unresolved external reference" (in Korean: "확인할 수 없는 외부 기호").

Do you know what might be causing this?

  • OPENCV version : 0.95.1

  • CUDA_PATH : C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.5

  • CUDA_PATH_V12_5 : C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.5

  • LD_LIBRARY_PATH : C:\Program Files\LLVM\bin

  • LIBCLANG_PATH : C:\Program Files\LLVM\bin

  • OPENCV_INCLUDE_PATHS : C:\opencv\build\include,C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.5\include

  • OPENCV_LINK_LIBS : opencv_world4100

  • OPENCV_LINK_PATHS : C:\opencv\build\x64\vc17\staticlib

output.txt

chang0959 avatar Sep 15 '25 06:09 chang0959

The output.txt you posted is just all zero-bytes so difficult to say for sure. But linking issues is usually because of the missing path to the OpenCV DLLs in the PATH env var.

twistedfall avatar Sep 15 '25 09:09 twistedfall

Sorry, I’ve attached it again.

          opencv_world4100.lib(resize.cpp.obj) : error LNK2019: iwiResize_InitAlloc"public: void __cdecl cv::ipp_resizeParallel::Init(enum IppiInterpolationType)" (?Init@ipp_resizeParallel@cv@@QEAAXW4IppiInterpolationType@@@Z) 함수에서 참조되는 확인할 수 없는 외부 기호 ␍
          opencv_world4100.lib(resize.cpp.obj) : error LNK2019: iwiResize_Process"public: int __cdecl ipp::IwiResize::operator()(class ipp::IwiImage const &,class ipp::IwiImage &,class ipp::IwiBorderType const &,class ipp::IwiTile const &)const " (??RIwiResize@ipp@@QEBAHAEBVIwiImage@1@AEAV21@AEBVIwiBorderType@1@AEBVIwiTile@1@@Z) 함수에서 참조되는 확인할 수 없는 외부 기호 ␍
          opencv_world4100.lib(resize.cpp.obj) : error LNK2019: iwiWarpAffine_Free"public: __cdecl ipp::IwiWarpAffine::~IwiWarpAffine(void)" (??1IwiWarpAffine@ipp@@QEAA@XZ) 함수에서 참조되는 확인할 수 없는 외부 기호 ␍
          opencv_world4100.lib(resize.cpp.obj) : error LNK2019: iwiWarpAffine_InitAlloc"public: void __cdecl cv::ipp_resizeAffineParallel::Init(enum IppiInterpolationType,double,double)" (?Init@ipp_resizeAffineParallel@cv@@QEAAXW4IppiInterpolationType@@NN@Z) 함수에서 참조되는 확인할 수 없는 외부 기호 ␍
          opencv_world4100.lib(resize.cpp.obj) : error LNK2019: iwiWarpAffine_Process"public: virtual void __cdecl cv::ipp_resizeAffineParallel::operator()(class cv::Range const &)const " (??Ripp_resizeAffineParallel@cv@@UEBAXAEBVRange@1@@Z) 함수에서 참조되는 확인할 수 없는 외부 기호 ␍
          opencv_world4100.lib(thresh.obj) : error LNK2019: ippicviThreshold_GT_8u_C1R"void __cdecl cv::thresh_8u(class cv::Mat const &,class cv::Mat &,unsigned char,unsigned char,int)" (?thresh_8u@cv@@YAXAEBVMat@1@AEAV21@EEH@Z) 함수에서 참조되는 확인할 수 없는 외부 기호 ␍
          opencv_world4100.lib(thresh.obj) : error LNK2019: ippicviThreshold_GT_16s_C1R"void __cdecl cv::thresh_16s(class cv::Mat const &,class cv::Mat &,short,short,int)" (?thresh_16s@cv@@YAXAEBVMat@1@AEAV21@FFH@Z) 함수에서 참조되는 확인할 수 없는 외부 기호 ␍
          opencv_world4100.lib(thresh.obj) : error LNK2019: ippicviThreshold_GT_32f_C1R"void __cdecl cv::thresh_32f(class cv::Mat const &,class cv::Mat &,float,float,int)" (?thresh_32f@cv@@YAXAEBVMat@1@AEAV21@MMH@Z) 함수에서 참조되는 확인할 수 없는 외부 기호 ␍
          opencv_world4100.lib(thresh.obj) : error LNK2019: ippicviThreshold_GT_8u_C1IR"void __cdecl cv::thresh_8u(class cv::Mat const &,class cv::Mat &,unsigned char,unsigned char,int)" (?thresh_8u@cv@@YAXAEBVMat@1@AEAV21@EEH@Z) 함수에서 참조되는 확인할 수 없는 외부 기호 ␍
          opencv_world4100.lib(thresh.obj) : error LNK2019: ippicviThreshold_GT_16s_C1IR"void __cdecl cv::thresh_16s(class cv::Mat const &,class cv::Mat &,short,short,int)" (?thresh_16s@cv@@YAXAEBVMat@1@AEAV21@FFH@Z) 함수에서 참조되는 확인할 수 없는 외부 기호 ␍
          opencv_world4100.lib(thresh.obj) : error LNK2019: ippicviThreshold_GTVal_8u_C1R"void __cdecl cv::thresh_8u(class cv::Mat const &,class cv::Mat &,unsigned char,unsigned char,int)" (?thresh_8u@cv@@YAXAEBVMat@1@AEAV21@EEH@Z) 함수에서 참조되는 확인할 수 없는 외부 기호 ␍
          opencv_world4100.lib(thresh.obj) : error LNK2019: ippicviThreshold_GTVal_16s_C1R"void __cdecl cv::thresh_16s(class cv::Mat const &,class cv::Mat &,short,short,int)" (?thresh_16s@cv@@YAXAEBVMat@1@AEAV21@FFH@Z) 함수에서 참조되는 확인할 수 없는 외부 기호 ␍
          opencv_world4100.lib(thresh.obj) : error LNK2019: ippicviThreshold_GTVal_32f_C1R"void __cdecl cv::thresh_32f(class cv::Mat const &,class cv::Mat &,float,float,int)" (?thresh_32f@cv@@YAXAEBVMat@1@AEAV21@MMH@Z) 함수에서 참조되는 확인할 수 없는 외부 기호 ␍
          opencv_world4100.lib(thresh.obj) : error LNK2019: ippicviThreshold_GTVal_8u_C1IR"void __cdecl cv::thresh_8u(class cv::Mat const &,class cv::Mat &,unsigned char,unsigned char,int)" (?thresh_8u@cv@@YAXAEBVMat@1@AEAV21@EEH@Z) 함수에서 참조되는 확인할 수 없는 외부 기호 ␍
          opencv_world4100.lib(thresh.obj) : error LNK2019: ippicviThreshold_GTVal_16s_C1IR"void __cdecl cv::thresh_16s(class cv::Mat const &,class cv::Mat &,short,short,int)" (?thresh_16s@cv@@YAXAEBVMat@1@AEAV21@FFH@Z) 함수에서 참조되는 확인할 수 없는 외부 기호 ␍
          opencv_world4100.lib(thresh.obj) : error LNK2019: ippicviThreshold_LTVal_8u_C1R"void __cdecl cv::thresh_8u(class cv::Mat const &,class cv::Mat &,unsigned char,unsigned char,int)" (?thresh_8u@cv@@YAXAEBVMat@1@AEAV21@EEH@Z) 함수에서 참조되는 확인할 수 없는 외부 기호 ␍
          opencv_world4100.lib(thresh.obj) : error LNK2019: ippicviThreshold_LTVal_16s_C1R"void __cdecl cv::thresh_16s(class cv::Mat const &,class cv::Mat &,short,short,int)" (?thresh_16s@cv@@YAXAEBVMat@1@AEAV21@FFH@Z) 함수에서 참조되는 확인할 수 없는 외부 기호 ␍
          opencv_world4100.lib(thresh.obj) : error LNK2019: ippicviThreshold_LTVal_32f_C1R"void __cdecl cv::thresh_32f(class cv::Mat const &,class cv::Mat &,float,float,int)" (?thresh_32f@cv@@YAXAEBVMat@1@AEAV21@MMH@Z) 함수에서 참조되는 확인할 수 없는 외부 기호 ␍
          opencv_world4100.lib(thresh.obj) : error LNK2019: ippicviThreshold_LTVal_8u_C1IR"void __cdecl cv::thresh_8u(class cv::Mat const &,class cv::Mat &,unsigned char,unsigned char,int)" (?thresh_8u@cv@@YAXAEBVMat@1@AEAV21@EEH@Z) 함수에서 참조되는 확인할 수 없는 외부 기호 ␍
          opencv_world4100.lib(thresh.obj) : error LNK2019: ippicviThreshold_LTVal_16s_C1IR"void __cdecl cv::thresh_16s(class cv::Mat const &,class cv::Mat &,short,short,int)" (?thresh_16s@cv@@YAXAEBVMat@1@AEAV21@FFH@Z) 함수에서 참조되는 확인할 수 없는 외부 기호 ␍
          opencv_world4100.lib(thresh.obj) : error LNK2019: ippicviComputeThreshold_Otsu_8u_C1R"double __cdecl cv::threshold(class cv::_InputArray const &,class cv::_OutputArray const &,double,double,int)" (?threshold@cv@@YANAEBV_InputArray@1@AEBV_OutputArray@1@NNH@Z) 함수에서 참조되는 확인할 수 없는 외부 기호 ␍
          opencv_world4100.lib(init.obj) : error LNK2019: "void __cdecl google::protobuf::ShutdownProtobufLibrary(void)" (?ShutdownProtobufLibrary@protobuf@google@@YAXXZ)"void __cdecl `void __cdecl cv::dnn::dnn4_v20240521::initializeLayerFactory(void)'::`2'::`dynamic atexit destructor for 'protobufShutdown''(void)" (??__FprotobufShutdown@?1??initializeLayerFactory@dnn4_v20240521@dnn@cv@@YAXXZ@YAXXZ) 함수에서 참조되는 확인할 수 없는 외부 기호 ␍
          opencv_world4100.lib(op_cuda.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaDeviceGetAttribute␍
          opencv_world4100.lib(cuda_compile_1_generated_detection_output.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaDeviceGetAttribute␍
          opencv_world4100.lib(cuda_compile_1_generated_normalize.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaDeviceGetAttribute␍
          opencv_world4100.lib(cuda_compile_1_generated_resize.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaDeviceGetAttribute␍
          opencv_world4100.lib(cuda_compile_1_generated_crop_and_resize.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaDeviceGetAttribute␍
          opencv_world4100.lib(cuda_compile_1_generated_padding.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaDeviceGetAttribute␍
          opencv_world4100.lib(cuda_compile_1_generated_shortcut.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaDeviceGetAttribute␍
          opencv_world4100.lib(cuda_compile_1_generated_prior_box.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaDeviceGetAttribute␍
          opencv_world4100.lib(cuda_compile_1_generated_region.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaDeviceGetAttribute␍
          opencv_world4100.lib(cuda_compile_1_generated_fill_copy.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaDeviceGetAttribute␍
          opencv_world4100.lib(cuda_compile_1_generated_concat.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaDeviceGetAttribute␍
          opencv_world4100.lib(cuda_compile_1_generated_slice.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaDeviceGetAttribute␍
          opencv_world4100.lib(cuda_compile_1_generated_permute.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaDeviceGetAttribute␍
          opencv_world4100.lib(cuda_compile_1_generated_activations.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaDeviceGetAttribute␍
          opencv_world4100.lib(cuda_compile_1_generated_max_unpooling.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaDeviceGetAttribute␍
          opencv_world4100.lib(cuda_compile_1_generated_roi_pooling.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaDeviceGetAttribute␍
          opencv_world4100.lib(cuda_compile_1_generated_mvn.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaDeviceGetAttribute␍
          opencv_world4100.lib(cuda_compile_1_generated_bias_activation.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaDeviceGetAttribute␍
          opencv_world4100.lib(cuda_compile_1_generated_eltwise_ops.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaDeviceGetAttribute␍
          opencv_world4100.lib(cuda_compile_1_generated_eltwise_activation.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaDeviceGetAttribute␍
          opencv_world4100.lib(cuda_compile_1_generated_activation_eltwise.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaDeviceGetAttribute␍
          opencv_world4100.lib(cuda_compile_1_generated_fp_conversion.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaDeviceGetAttribute␍
          opencv_world4100.lib(cuda_compile_1_generated_scale_shift.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaDeviceGetAttribute␍
          opencv_world4100.lib(cuda_compile_1_generated_bias_eltwise_activation.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaDeviceGetAttribute␍
          opencv_world4100.lib(cuda_compile_1_generated_bias_activation_eltwise.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaDeviceGetAttribute␍
          opencv_world4100.lib(cuda_compile_1_generated_detection_output.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaFuncGetAttributes␍
          opencv_world4100.lib(cuda_compile_1_generated_normalize.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaFuncGetAttributes␍
          opencv_world4100.lib(cuda_compile_1_generated_resize.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaFuncGetAttributes␍
          opencv_world4100.lib(cuda_compile_1_generated_crop_and_resize.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaFuncGetAttributes␍
          opencv_world4100.lib(cuda_compile_1_generated_padding.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaFuncGetAttributes␍
          opencv_world4100.lib(cuda_compile_1_generated_shortcut.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaFuncGetAttributes␍
          opencv_world4100.lib(cuda_compile_1_generated_prior_box.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaFuncGetAttributes␍
          opencv_world4100.lib(cuda_compile_1_generated_region.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaFuncGetAttributes␍
          opencv_world4100.lib(cuda_compile_1_generated_fill_copy.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaFuncGetAttributes␍
          opencv_world4100.lib(cuda_compile_1_generated_concat.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaFuncGetAttributes␍
          opencv_world4100.lib(cuda_compile_1_generated_slice.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaFuncGetAttributes␍
          opencv_world4100.lib(cuda_compile_1_generated_permute.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaFuncGetAttributes␍
          opencv_world4100.lib(cuda_compile_1_generated_activations.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaFuncGetAttributes␍
          opencv_world4100.lib(cuda_compile_1_generated_max_unpooling.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaFuncGetAttributes␍
          opencv_world4100.lib(cuda_compile_1_generated_roi_pooling.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaFuncGetAttributes␍
          opencv_world4100.lib(cuda_compile_1_generated_mvn.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaFuncGetAttributes␍
          opencv_world4100.lib(cuda_compile_1_generated_bias_activation.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaFuncGetAttributes␍
          opencv_world4100.lib(cuda_compile_1_generated_eltwise_ops.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaFuncGetAttributes␍
          opencv_world4100.lib(cuda_compile_1_generated_eltwise_activation.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaFuncGetAttributes␍
          opencv_world4100.lib(cuda_compile_1_generated_activation_eltwise.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaFuncGetAttributes␍
          opencv_world4100.lib(cuda_compile_1_generated_fp_conversion.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaFuncGetAttributes␍
          opencv_world4100.lib(cuda_compile_1_generated_scale_shift.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaFuncGetAttributes␍
          opencv_world4100.lib(cuda_compile_1_generated_bias_eltwise_activation.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaFuncGetAttributes␍
          opencv_world4100.lib(cuda_compile_1_generated_bias_activation_eltwise.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaFuncGetAttributes␍
          opencv_world4100.lib(cuda_compile_1_generated_detection_output.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags␍
          opencv_world4100.lib(cuda_compile_1_generated_normalize.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags␍
          opencv_world4100.lib(cuda_compile_1_generated_resize.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags␍
          opencv_world4100.lib(cuda_compile_1_generated_crop_and_resize.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags␍
          opencv_world4100.lib(cuda_compile_1_generated_padding.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags␍
          opencv_world4100.lib(cuda_compile_1_generated_shortcut.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags␍
          opencv_world4100.lib(cuda_compile_1_generated_prior_box.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags␍
          opencv_world4100.lib(cuda_compile_1_generated_region.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags␍
          opencv_world4100.lib(cuda_compile_1_generated_fill_copy.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags␍
          opencv_world4100.lib(cuda_compile_1_generated_concat.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags␍
          opencv_world4100.lib(cuda_compile_1_generated_slice.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags␍
          opencv_world4100.lib(cuda_compile_1_generated_permute.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags␍
          opencv_world4100.lib(cuda_compile_1_generated_activations.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags␍
          opencv_world4100.lib(cuda_compile_1_generated_max_unpooling.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags␍
          opencv_world4100.lib(cuda_compile_1_generated_roi_pooling.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags␍
          opencv_world4100.lib(cuda_compile_1_generated_mvn.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags␍
          opencv_world4100.lib(cuda_compile_1_generated_bias_activation.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags␍
          opencv_world4100.lib(cuda_compile_1_generated_eltwise_ops.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags␍
          opencv_world4100.lib(cuda_compile_1_generated_eltwise_activation.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags␍
          opencv_world4100.lib(cuda_compile_1_generated_activation_eltwise.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags␍
          opencv_world4100.lib(cuda_compile_1_generated_fp_conversion.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags␍
          opencv_world4100.lib(cuda_compile_1_generated_scale_shift.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags␍
          opencv_world4100.lib(cuda_compile_1_generated_bias_eltwise_activation.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags␍
          opencv_world4100.lib(cuda_compile_1_generated_bias_activation_eltwise.cu.obj) : error LNK2001: 확인할 수 없는 외부 기호 cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags␍
          opencv_world4100.lib(color_hsv.dispatch.obj) : error LNK2001: 확인할 수 없는 외부 기호 ippicviHSVToRGB_8u_C3R␍
          opencv_world4100.lib(color_hsv.dispatch.obj) : error LNK2001: 확인할 수 없는 외부 기호 ippicviHSVToRGB_16u_C3R␍
          opencv_world4100.lib(color_hsv.dispatch.obj) : error LNK2001: 확인할 수 없는 외부 기호 ippicviRGBToHLS_8u_C3R␍
          opencv_world4100.lib(color_hsv.dispatch.obj) : error LNK2001: 확인할 수 없는 외부 기호 ippicviHLSToRGB_8u_C3R␍
          opencv_world4100.lib(color_hsv.dispatch.obj) : error LNK2001: 확인할 수 없는 외부 기호 ippicviRGBToHLS_16u_C3R␍
          opencv_world4100.lib(color_hsv.dispatch.obj) : error LNK2001: 확인할 수 없는 외부 기호 ippicviHLSToRGB_16u_C3R␍
          opencv_world4100.lib(color_hsv.dispatch.obj) : error LNK2001: 확인할 수 없는 외부 기호 ippicviRGBToHLS_32f_C3R␍
          opencv_world4100.lib(color_hsv.dispatch.obj) : error LNK2001: 확인할 수 없는 외부 기호 ippicviHLSToRGB_32f_C3R␍
          opencv_world4100.lib(color_rgb.dispatch.obj) : error LNK2001: 확인할 수 없는 외부 기호 ippicviSwapChannels_8u_C3R␍
          opencv_world4100.lib(color_rgb.dispatch.obj) : error LNK2001: 확인할 수 없는 외부 기호 ippicviSwapChannels_8u_C4R␍
          opencv_world4100.lib(color_rgb.dispatch.obj) : error LNK2001: 확인할 수 없는 외부 기호 ippicviSwapChannels_16u_C3R␍
          opencv_world4100.lib(color_rgb.dispatch.obj) : error LNK2001: 확인할 수 없는 외부 기호 ippicviSwapChannels_16u_C4R␍
          opencv_world4100.lib(color_rgb.dispatch.obj) : error LNK2001: 확인할 수 없는 외부 기호 ippicviSwapChannels_32f_C3R␍
          opencv_world4100.lib(color_rgb.dispatch.obj) : error LNK2001: 확인할 수 없는 외부 기호 ippicviSwapChannels_32f_C4R␍
          opencv_world4100.lib(color_rgb.dispatch.obj) : error LNK2001: 확인할 수 없는 외부 기호 ippicviSwapChannels_8u_C4C3R␍
          opencv_world4100.lib(color_rgb.dispatch.obj) : error LNK2001: 확인할 수 없는 외부 기호 ippicviSwapChannels_16u_C4C3R␍
          opencv_world4100.lib(color_rgb.dispatch.obj) : error LNK2001: 확인할 수 없는 외부 기호 ippicviSwapChannels_32f_C4C3R␍
          opencv_world4100.lib(color_rgb.dispatch.obj) : error LNK2001: 확인할 수 없는 외부 기호 ippicviCopy_8u_AC4C3R␍
          opencv_world4100.lib(color_rgb.dispatch.obj) : error LNK2001: 확인할 수 없는 외부 기호 ippicviCopy_32f_AC4C3R␍
          opencv_world4100.lib(color_rgb.dispatch.obj) : error LNK2001: 확인할 수 없는 외부 기호 ippicviCopy_16u_AC4C3R␍
          opencv_world4100.lib(color_rgb.dispatch.obj) : error LNK2019: ippicviAlphaPremul_8u_AC4R"void __cdecl cv::hal::cvtRGBAtoMultipliedRGBA(unsigned char const *,unsigned __int64,unsigned char *,unsigned __int64,int,int)" (?cvtRGBAtoMultipliedRGBA@hal@cv@@YAXPEBE_KPEAE1HH@Z) 함수에서 참조되는 확인할 수 없는 외부 기호 ␍
          opencv_world4100.lib(color_rgb.dispatch.obj) : error LNK2019: ippicviSwapChannels_8u_C3C4R"int __cdecl cv::ippiSwapChannels_8u_C3C4Rf(unsigned char const *,int,unsigned char *,int,struct IppiSize,int const *)" (?ippiSwapChannels_8u_C3C4Rf@cv@@YAHPEBEHPEAEHUIppiSize@@PEBH@Z) 함수에서 참조되는 확인할 수 없는 외부 기호 ␍
          opencv_world4100.lib(color_rgb.dispatch.obj) : error LNK2019: ippicviSwapChannels_16u_C3C4R"int __cdecl cv::ippiSwapChannels_16u_C3C4Rf(unsigned short const *,int,unsigned short *,int,struct IppiSize,int const *)" (?ippiSwapChannels_16u_C3C4Rf@cv@@YAHPEBGHPEAGHUIppiSize@@PEBH@Z) 함수에서 참조되는 확인할 수 없는 외부 기호 ␍
          opencv_world4100.lib(color_rgb.dispatch.obj) : error LNK2019: ippicviSwapChannels_32f_C3C4R"int __cdecl cv::ippiSwapChannels_32f_C3C4Rf(float const *,int,float *,int,struct IppiSize,int const *)" (?ippiSwapChannels_32f_C3C4Rf@cv@@YAHPEBMHPEAMHUIppiSize@@PEBH@Z) 함수에서 참조되는 확인할 수 없는 외부 기호 ␍
          opencv_world4100.lib(color_rgb.dispatch.obj) : error LNK2019: ippicviGrayToRGB_16u_C1C3R"public: virtual void __cdecl cv::CvtColorIPPLoop_Invoker<struct cv::IPPGray2BGRFunctor<unsigned short> >::operator()(class cv::Range const &)const " (??R?$CvtColorIPPLoop_Invoker@U?$IPPGray2BGRFunctor@G@cv@@@cv@@UEBAXAEBVRange@1@@Z) 함수에서 참조되는 확인할 수 없는 외부 기호 ␍
          opencv_world4100.lib(color_rgb.dispatch.obj) : error LNK2019: ippicviGrayToRGB_32f_C1C3R"public: virtual void __cdecl cv::CvtColorIPPLoop_Invoker<struct cv::IPPGray2BGRFunctor<float> >::operator()(class cv::Range const &)const " (??R?$CvtColorIPPLoop_Invoker@U?$IPPGray2BGRFunctor@M@cv@@@cv@@UEBAXAEBVRange@1@@Z) 함수에서 참조되는 확인할 수 없는 외부 기호 ␍
          opencv_world4100.lib(color_rgb.dispatch.obj) : error LNK2019: ippicviGrayToRGB_8u_C1C4R"public: virtual void __cdecl cv::CvtColorIPPLoop_Invoker<struct cv::IPPGray2BGRAFunctor<unsigned char> >::operator()(class cv::Range const &)const " (??R?$CvtColorIPPLoop_Invoker@U?$IPPGray2BGRAFunctor@E@cv@@@cv@@UEBAXAEBVRange@1@@Z) 함수에서 참조되는 확인할 수 없는 외부 기호 ␍
          opencv_world4100.lib(color_rgb.dispatch.obj) : error LNK2019: ippicviGrayToRGB_16u_C1C4R"public: virtual void __cdecl cv::CvtColorIPPLoop_Invoker<struct cv::IPPGray2BGRAFunctor<unsigned short> >::operator()(class cv::Range const &)const " (??R?$CvtColorIPPLoop_Invoker@U?$IPPGray2BGRAFunctor@G@cv@@@cv@@UEBAXAEBVRange@1@@Z) 함수에서 참조되는 확인할 수 없는 외부 기호 ␍
          opencv_world4100.lib(color_rgb.dispatch.obj) : error LNK2019: ippicviGrayToRGB_32f_C1C4R"public: virtual void __cdecl cv::CvtColorIPPLoop_Invoker<struct cv::IPPGray2BGRAFunctor<float> >::operator()(class cv::Range const &)const " (??R?$CvtColorIPPLoop_Invoker@U?$IPPGray2BGRAFunctor@M@cv@@@cv@@UEBAXAEBVRange@1@@Z) 함수에서 참조되는 확인할 수 없는 외부 기호 ␍
          opencv_world4100.lib(color_rgb.dispatch.obj) : error LNK2019: ippicviColorToGray_32f_C3C1R"void __cdecl cv::hal::cvtBGRtoGray(unsigned char const *,unsigned __int64,unsigned char *,unsigned __int64,int,int,int,int,bool)" (?cvtBGRtoGray@hal@cv@@YAXPEBE_KPEAE1HHHH_N@Z) 함수에서 참조되는 확인할 수 없는 외부 기호 ␍
          opencv_world4100.lib(color_rgb.dispatch.obj) : error LNK2019: ippicviColorToGray_32f_AC4C1R"void __cdecl cv::hal::cvtBGRtoGray(unsigned char const *,unsigned __int64,unsigned char *,unsigned __int64,int,int,int,int,bool)" (?cvtBGRtoGray@hal@cv@@YAXPEBE_KPEAE1HHHH_N@Z) 함수에서 참조되는 확인할 수 없는 외부 기호 ␍
          opencv_world4100.lib(color_rgb.dispatch.obj) : error LNK2019: ippicviRGBToGray_32f_C3C1R"void __cdecl cv::hal::cvtBGRtoGray(unsigned char const *,unsigned __int64,unsigned char *,unsigned __int64,int,int,int,int,bool)" (?cvtBGRtoGray@hal@cv@@YAXPEBE_KPEAE1HHHH_N@Z) 함수에서 참조되는 확인할 수 없는 외부 기호 ␍
          opencv_world4100.lib(color_rgb.dispatch.obj) : error LNK2019: ippicviRGBToGray_32f_AC4C1R"void __cdecl cv::hal::cvtBGRtoGray(unsigned char const *,unsigned __int64,unsigned char *,unsigned __int64,int,int,int,int,bool)" (?cvtBGRtoGray@hal@cv@@YAXPEBE_KPEAE1HHHH_N@Z) 함수에서 참조되는 확인할 수 없는 외부 기호 ␍
          opencv_world4100.lib(filter.dispatch.obj) : error LNK2019: ippicviFilterRowBorderPipelineGetBufferSize_32f_C1R"private: int __cdecl cv::cpu_baseline::RowVec_32f::ippiOperator(unsigned char const *,unsigned char *,int,int)const " (?ippiOperator@RowVec_32f@cpu_baseline@cv@@AEBAHPEBEPEAEHH@Z) 함수에서 참조되는 확인할 수 없는 외부 기호 ␍
          opencv_world4100.lib(filter.dispatch.obj) : error LNK2019: ippicviFilterRowBorderPipelineGetBufferSize_32f_C3R"private: int __cdecl cv::cpu_baseline::RowVec_32f::ippiOperator(unsigned char const *,unsigned char *,int,int)const " (?ippiOperator@RowVec_32f@cpu_baseline@cv@@AEBAHPEBEPEAEHH@Z) 함수에서 참조되는 확인할 수 없는 외부 기호 ␍
          opencv_world4100.lib(filter.dispatch.obj) : error LNK2019: ippicviFilterRowBorderPipeline_32f_C1R"private: int __cdecl cv::cpu_baseline::RowVec_32f::ippiOperator(unsigned char const *,unsigned char *,int,int)const " (?ippiOperator@RowVec_32f@cpu_baseline@cv@@AEBAHPEBEPEAEHH@Z) 함수에서 참조되는 확인할 수 없는 외부 기호 ␍
          opencv_world4100.lib(filter.dispatch.obj) : error LNK2019: ippicviFilterRowBorderPipeline_32f_C3R"private: int __cdecl cv::cpu_baseline::RowVec_32f::ippiOperator(unsigned char const *,unsigned char *,int,int)const " (?ippiOperator@RowVec_32f@cpu_baseline@cv@@AEBAHPEBEPEAEHH@Z) 함수에서 참조되는 확인할 수 없는 외부 기호 ␍
          opencv_world4100.lib(op_cuda.obj) : error LNK2019: cublasCreate_v2"public: __cdecl cv::dnn::cuda4dnn::csl::cublas::UniqueHandle::UniqueHandle(class cv::dnn::cuda4dnn::csl::Stream)" (??0UniqueHandle@cublas@csl@cuda4dnn@dnn@cv@@QEAA@VStream@2345@@Z) 함수에서 참조되는 확인할 수 없는 외부 기호 ␍
          opencv_world4100.lib(op_cuda.obj) : error LNK2019: cublasDestroy_v2__catch$??0UniqueHandle@cublas@csl@cuda4dnn@dnn@cv@@QEAA@VStream@2345@@Z$0 함수에서 참조되는 확인할 수 없는 외부 기호 ␍
          opencv_world4100.lib(op_cuda.obj) : error LNK2019: cublasSetStream_v2"public: __cdecl cv::dnn::cuda4dnn::csl::cublas::UniqueHandle::UniqueHandle(class cv::dnn::cuda4dnn::csl::Stream)" (??0UniqueHandle@cublas@csl@cuda4dnn@dnn@cv@@QEAA@VStream@2345@@Z) 함수에서 참조되는 확인할 수 없는 외부 기호 ␍
          opencv_world4100.lib(op_cuda.obj) : error LNK2019: cudnnGetVersion"void __cdecl cv::dnn::cuda4dnn::checkVersions(void)" (?checkVersions@cuda4dnn@dnn@cv@@YAXXZ) 함수에서 참조되는 확인할 수 없는 외부 기호 ␍
          opencv_world4100.lib(op_cuda.obj) : error LNK2019: cudnnCreate"public: __cdecl cv::dnn::cuda4dnn::csl::cudnn::UniqueHandle::UniqueHandle(class cv::dnn::cuda4dnn::csl::Stream)" (??0UniqueHandle@cudnn@csl@cuda4dnn@dnn@cv@@QEAA@VStream@2345@@Z) 함수에서 참조되는 확인할 수 없는 외부 기호 ␍
          opencv_world4100.lib(op_cuda.obj) : error LNK2019: cudnnDestroy__catch$??0UniqueHandle@cudnn@csl@cuda4dnn@dnn@cv@@QEAA@VStream@2345@@Z$0 함수에서 참조되는 확인할 수 없는 외부 기호 ␍
          opencv_world4100.lib(op_cuda.obj) : error LNK2019: cudnnSetStream"public: __cdecl cv::dnn::cuda4dnn::csl::cudnn::UniqueHandle::UniqueHandle(class cv::dnn::cuda4dnn::csl::Stream)" (??0UniqueHandle@cudnn@csl@cuda4dnn@dnn@cv@@QEAA@VStream@2345@@Z) 함수에서 참조되는 확인할 수 없는 외부 기호 ␍
          opencv_world4100.lib(bilateral_filter.dispatch.obj) : error LNK2019: iwiFilterBilateral"public: virtual void __cdecl cv::ipp_bilateralFilterParallel::operator()(class cv::Range const &)const " (??Ripp_bilateralFilterParallel@cv@@UEBAXAEBVRange@1@@Z) 함수에서 참조되는 확인할 수 없는 외부 기호 ␍
          opencv_world4100.lib(templmatch.obj) : error LNK2019: ippicviCrossCorrNormGetBufferSize"bool __cdecl cv::ipp_crossCorr(class cv::Mat const &,class cv::Mat const &,class cv::Mat &,bool)" (?ipp_crossCorr@cv@@YA_NAEBVMat@1@0AEAV21@_N@Z) 함수에서 참조되는 확인할 수 없는 외부 기호 ␍
          opencv_world4100.lib(templmatch.obj) : error LNK2019: ippicviCrossCorrNorm_32f_C1R"bool __cdecl cv::ipp_crossCorr(class cv::Mat const &,class cv::Mat const &,class cv::Mat &,bool)" (?ipp_crossCorr@cv@@YA_NAEBVMat@1@0AEAV21@_N@Z) 함수에서 참조되는 확인할 수 없는 외부 기호 ␍
          opencv_world4100.lib(templmatch.obj) : error LNK2019: ippicviCrossCorrNorm_8u32f_C1R"bool __cdecl cv::ipp_crossCorr(class cv::Mat const &,class cv::Mat const &,class cv::Mat &,bool)" (?ipp_crossCorr@cv@@YA_NAEBVMat@1@0AEAV21@_N@Z) 함수에서 참조되는 확인할 수 없는 외부 기호 ␍
          opencv_world4100.lib(templmatch.obj) : error LNK2019: ippicviSqrDistanceNormGetBufferSize"bool __cdecl cv::ipp_sqrDistance(class cv::Mat const &,class cv::Mat const &,class cv::Mat &)" (?ipp_sqrDistance@cv@@YA_NAEBVMat@1@0AEAV21@@Z) 함수에서 참조되는 확인할 수 없는 외부 기호 ␍
          opencv_world4100.lib(templmatch.obj) : error LNK2019: ippicviSqrDistanceNorm_32f_C1R"bool __cdecl cv::ipp_sqrDistance(class cv::Mat const &,class cv::Mat const &,class cv::Mat &)" (?ipp_sqrDistance@cv@@YA_NAEBVMat@1@0AEAV21@@Z) 함수에서 참조되는 확인할 수 없는 외부 기호 ␍
          opencv_world4100.lib(templmatch.obj) : error LNK2019: ippicviSqrDistanceNorm_8u32f_C1R"bool __cdecl cv::ipp_sqrDistance(class cv::Mat const &,class cv::Mat const &,class cv::Mat &)" (?ipp_sqrDistance@cv@@YA_NAEBVMat@1@0AEAV21@@Z) 함수에서 참조되는 확인할 수 없는 외부 기호 ␍
          opencv_world4100.lib(sumpixels.dispatch.obj) : error LNK2019: ippicviIntegral_8u32s_C1R"void __cdecl cv::hal::integral(int,int,int,unsigned char const *,unsigned __int64,unsigned char *,unsigned __int64,unsigned char *,unsigned __int64,unsigned char *,unsigned __int64,int,int,int)" (?integral@hal@cv@@YAXHHHPEBE_KPEAE12121HHH@Z) 함수에서 참조되는 확인할 수 없는 외부 기호 ␍
          opencv_world4100.lib(sumpixels.dispatch.obj) : error LNK2019: ippicviIntegral_8u32f_C1R"void __cdecl cv::hal::integral(int,int,int,unsigned char const *,unsigned __int64,unsigned char *,unsigned __int64,unsigned char *,unsigned __int64,unsigned char *,unsigned __int64,int,int,int)" (?integral@hal@cv@@YAXHHHPEBE_KPEAE12121HHH@Z) 함수에서 참조되는 확인할 수 없는 외부 기호 ␍
          opencv_world4100.lib(sumpixels.dispatch.obj) : error LNK2019: ippicviIntegral_32f_C1R"void __cdecl cv::hal::integral(int,int,int,unsigned char const *,unsigned __int64,unsigned char *,unsigned __int64,unsigned char *,unsigned __int64,unsigned char *,unsigned __int64,int,int,int)" (?integral@hal@cv@@YAXHHHPEBE_KPEAE12121HHH@Z) 함수에서 참조되는 확인할 수 없는 외부 기호 ␍
          opencv_world4100.lib(sumpixels.dispatch.obj) : error LNK2019: ippicviSqrIntegral_8u32s_C1R"void __cdecl cv::hal::integral(int,int,int,unsigned char const *,unsigned __int64,unsigned char *,unsigned __int64,unsigned char *,unsigned __int64,unsigned char *,unsigned __int64,int,int,int)" (?integral@hal@cv@@YAXHHHPEBE_KPEAE12121HHH@Z) 함수에서 참조되는 확인할 수 없는 외부 기호 ␍
          opencv_world4100.lib(sumpixels.dispatch.obj) : error LNK2019: ippicviSqrIntegral_8u32s64f_C1R"void __cdecl cv::hal::integral(int,int,int,unsigned char const *,unsigned __int64,unsigned char *,unsigned __int64,unsigned char *,unsigned __int64,unsigned char *,unsigned __int64,int,int,int)" (?integral@hal@cv@@YAXHHHPEBE_KPEAE12121HHH@Z) 함수에서 참조되는 확인할 수 없는 외부 기호 ␍
          opencv_world4100.lib(sumpixels.dispatch.obj) : error LNK2019: ippicviSqrIntegral_8u32f64f_C1R"void __cdecl cv::hal::integral(int,int,int,unsigned char const *,unsigned __int64,unsigned char *,unsigned __int64,unsigned char *,unsigned __int64,unsigned char *,unsigned __int64,int,int,int)" (?integral@hal@cv@@YAXHHHPEBE_KPEAE12121HHH@Z) 함수에서 참조되는 확인할 수 없는 외부 기호 ␍
          D:\00.Work\24.cctv_ptz_det_cuda\cctv_ptz_det_cuda\target\debug\deps\cctv_ptz_det_cuda.exe : fatal error LNK1120: 643개의 확인할 수 없는 외부 참조입니다.␍
          

warning: `cctv_ptz_det_cuda` (bin "cctv_ptz_det_cuda") generated 5 warnings
error: could not compile `cctv_ptz_det_cuda` (bin "cctv_ptz_det_cuda") due to 1 previous error; 5 warnings emitted

Caused by:
  process didn't exit successfully: `set CARGO=C:\Users\m\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin\cargo.exe&& set CARGO_BIN_NAME=cctv_ptz_det_cuda&& set CARGO_CRATE_NAME=cctv_ptz_det_cuda&& set CARGO_MANIFEST_DIR=D:\00.Work\24.cctv_ptz_det_cuda\cctv_ptz_det_cuda&& set CARGO_MANIFEST_PATH=D:\00.Work\24.cctv_ptz_det_cuda\cctv_ptz_det_cuda\Cargo.toml&& set CARGO_PKG_AUTHORS=""&& set CARGO_PKG_DESCRIPTION=""&& set CARGO_PKG_HOMEPAGE=""&& set CARGO_PKG_LICENSE=""&& set CARGO_PKG_LICENSE_FILE=""&& set CARGO_PKG_NAME=cctv_ptz_det_cuda&& set CARGO_PKG_README=""&& set CARGO_PKG_REPOSITORY=""&& set CARGO_PKG_RUST_VERSION=""&& set CARGO_PKG_VERSION=0.1.0&& set CARGO_PKG_VERSION_MAJOR=0&& set CARGO_PKG_VERSION_MINOR=1&& set CARGO_PKG_VERSION_PATCH=0&& set CARGO_PKG_VERSION_PRE=""&& set CARGO_PRIMARY_PACKAGE=1&& set CARGO_SBOM_PATH=""&& set OUT_DIR=D:\00.Work\24.cctv_ptz_det_cuda\cctv_ptz_det_cuda\target\debug\build\cctv_ptz_det_cuda-5898ff4951ad631a\out&& set PATH="D:\00.Work\24.cctv_ptz_det_cuda\cctv_ptz_det_cuda\target\debug\deps;D:\00.Work\97_files\instantclient-tools-windows.x64-21.18.0.0.0dbru;%PATH%;C:\opencv\build\x64\vc17\bin;C:\opencv\build\x64\vc17\staticlib;C:\opencv\build\include;C:\opencv\build;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.5;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.5\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.5\libnvvp;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.5\include;C:\tools\opencv\build\x64\vc16\bin;C:\ProgramData\chocolatey\bin;C:\Program Files\Git\cmd;C:\Windows\System32\WindowsPowerShell\v1.0;C:\vcpkg;C:\Program Files\LLVM\bin;C:\ffmpeg-7.1.1-full_build-shared\bin;C:\ffmpeg-7.1.1-full_build-shared;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\Nsight Compute 2025.3.0\;C:\Program Files\CMake\bin;C:\Users\m\AppData\Local\Programs\Python\Python310\Scripts\;C:\Users\m\AppData\Local\Programs\Python\Python310\;C:\Users\m\.cargo\bin;C:\Users\m\AppData\Local\Microsoft\WindowsApps;C:\Users\m\AppData\Local\Programs\Microsoft VS Code\bin;D:\oracle\product\19c\dbhome_1\bin;D:\oracle\product\19c\dbhome_1\OPatch;C:\Users\m\sumo-1.24.0\bin;C:\tools\opencv\build\x64\vc16\bin;C:\Program Files\Docker\Docker\resources\bin;C:\Program Files\Amazon\AWSCLIV2;C:\opencv\build\x64\vc17\bin;;c:\Users\m\AppData\Roaming\Code\User\globalStorage\github.copilot-chat\debugCommand;C:\Users\m\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin"&& C:\Users\m\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin\rustc.exe --crate-name cctv_ptz_det_cuda --edition=2024 src\main.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --check-cfg cfg(docsrs,test) --check-cfg "cfg(feature, values())" -C metadata=bcb8415a1b4de25d --out-dir D:\00.Work\24.cctv_ptz_det_cuda\cctv_ptz_det_cuda\target\debug\deps -C incremental=D:\00.Work\24.cctv_ptz_det_cuda\cctv_ptz_det_cuda\target\debug\incremental -L dependency=D:\00.Work\24.cctv_ptz_det_cuda\cctv_ptz_det_cuda\target\debug\deps --extern anyhow=D:\00.Work\24.cctv_ptz_det_cuda\cctv_ptz_det_cuda\target\debug\deps\libanyhow-a2c7065854d05ec6.rlib --extern cctv_ptz_det_cuda=D:\00.Work\24.cctv_ptz_det_cuda\cctv_ptz_det_cuda\target\debug\deps\libcctv_ptz_det_cuda-df03dd333040bc12.rlib --extern csv=D:\00.Work\24.cctv_ptz_det_cuda\cctv_ptz_det_cuda\target\debug\deps\libcsv-b37f88bdba4902b6.rlib --extern image=D:\00.Work\24.cctv_ptz_det_cuda\cctv_ptz_det_cuda\target\debug\deps\libimage-a8043b714f386ac8.rlib --extern opencv=D:\00.Work\24.cctv_ptz_det_cuda\cctv_ptz_det_cuda\target\debug\deps\libopencv-a136edbdcef463aa.rlib --extern polars=D:\00.Work\24.cctv_ptz_det_cuda\cctv_ptz_det_cuda\target\debug\deps\libpolars-e1f4890a8c2405bb.rlib -Ctarget-feature=+crt-static -L native=D:\00.Work\24.cctv_ptz_det_cuda\cctv_ptz_det_cuda\target\debug\build\opencv-99de736ac74f1520\out -L native=D:\00.Work\24.cctv_ptz_det_cuda\cctv_ptz_det_cuda\target\debug\build\lz4-sys-3c90ae22b5fe7b22\out -L native=D:\00.Work\24.cctv_ptz_det_cuda\cctv_ptz_det_cuda\target\debug\build\ring-44ad699026f7a66f\out -L native=D:\00.Work\24.cctv_ptz_det_cuda\cctv_ptz_det_cuda\target\debug\build\stacker-03ac65b7c8edeef2\out -L native=D:\00.Work\24.cctv_ptz_det_cuda\cctv_ptz_det_cuda\target\debug\build\psm-fb6b0e36c879cc15\out -L native=D:\00.Work\24.cctv_ptz_det_cuda\cctv_ptz_det_cuda\target\debug\build\zstd-sys-e58f31c40a209d77\out -L native=D:\00.Work\24.cctv_ptz_det_cuda\cctv_ptz_det_cuda\target\debug\build\blake3-c71d3d001461c98d\out -L native=D:\00.Work\24.cctv_ptz_det_cuda\cctv_ptz_det_cuda\target\debug\build\blake3-c71d3d001461c98d\out -L "native=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.5/lib/x64" -L native=C:/opencv/build/x64/vc17/lib -L "native=C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.44.35207\atlmfc\lib\x64" -L C:\opencv\build\x64\vc17\staticlib -L native=C:\Users\m\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\windows_x86_64_msvc-0.53.0\lib -L "native=C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.44.35207\atlmfc\lib\x64" -L native=C:\Users\m\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\windows_x86_64_msvc-0.52.6\lib -L "native=C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.44.35207\atlmfc\lib\x64" -L "native=C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.44.35207\atlmfc\lib\x64" -L "native=C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.44.35207\atlmfc\lib\x64" -L "native=C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.44.35207\atlmfc\lib\x64" -L "native=C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.44.35207\atlmfc\lib\x64" -C link-arg=-IC:/opencv/build/include -C "link-arg=-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.5/include"` (exit code: 1)

output.txt

chang0959 avatar Sep 15 '25 10:09 chang0959