Skip to content

fatal error: 'cuda_runtime.h' file not found #690

Description

@chang0959

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions