opencv-rust
opencv-rust copied to clipboard
Build error
System: Windows 10 Opencv Rust: 0.63.0 C libs: Installed with vcpkg, add lib path and bin path to system variable to PATH
run
cargo bulid
get
Compiling opencv v0.63.0
error: failed to run custom build command for `opencv v0.63.0`
Caused by:
process didn't exit successfully: `D:\Github\hello_rust\target\debug\build\opencv-b197ade328b9fafb\build-script-build` (exit code: 101)
--- stdout
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\opencv_aruco.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\opencv_aruco.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\opencv_barcode.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\opencv_barcode.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\opencv_bgsegm.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\opencv_bgsegm.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\opencv_bioinspired.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\opencv_bioinspired.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\opencv_calib3d.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\opencv_calib3d.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\opencv_ccalib.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\opencv_ccalib.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\opencv_core.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\opencv_core.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\opencv_datasets.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\opencv_datasets.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\opencv_dnn.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\opencv_dnn.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\opencv_dnn_objdetect.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\opencv_dnn_objdetect.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\opencv_dnn_superres.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\opencv_dnn_superres.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\opencv_dpm.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\opencv_dpm.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\opencv_face.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\opencv_face.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\opencv_features2d.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\opencv_features2d.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\opencv_flann.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\opencv_flann.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\opencv_fuzzy.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\opencv_fuzzy.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\opencv_hdf.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\opencv_hdf.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\opencv_hfs.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\opencv_hfs.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\opencv_highgui.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\opencv_highgui.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\opencv_img_hash.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\opencv_img_hash.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\opencv_imgcodecs.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\opencv_imgcodecs.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\opencv_imgproc.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\opencv_imgproc.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\opencv_intensity_transform.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\opencv_intensity_transform.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\opencv_line_descriptor.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\opencv_line_descriptor.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\opencv_mcc.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\opencv_mcc.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\opencv_ml.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\opencv_ml.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\opencv_objdetect.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\opencv_objdetect.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\opencv_optflow.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\opencv_optflow.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\opencv_phase_unwrapping.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\opencv_phase_unwrapping.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\opencv_photo.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\opencv_photo.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\opencv_plot.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\opencv_plot.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\opencv_quality.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\opencv_quality.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\opencv_rapid.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\opencv_rapid.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\opencv_reg.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\opencv_reg.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\opencv_saliency.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\opencv_saliency.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\opencv_shape.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\opencv_shape.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\opencv_stereo.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\opencv_stereo.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\opencv_stitching.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\opencv_stitching.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\opencv_structured_light.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\opencv_structured_light.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\opencv_superres.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\opencv_superres.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\opencv_surface_matching.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\opencv_surface_matching.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\opencv_text.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\opencv_text.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\opencv_tracking.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\opencv_tracking.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\opencv_video.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\opencv_video.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\opencv_videoio.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\opencv_videoio.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\opencv_videostab.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\opencv_videostab.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\opencv_wechat_qrcode.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\opencv_wechat_qrcode.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\opencv_xfeatures2d.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\opencv_xfeatures2d.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\opencv_ximgproc.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\opencv_ximgproc.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\opencv_xobjdetect.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\opencv_xobjdetect.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\opencv_xphoto.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\opencv_xphoto.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\libwebpmux.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\libwebpmux.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\webp.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\webp.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\webpdecoder.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\webpdecoder.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\webpdemux.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\webpdemux.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\tiff.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\tiff.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\zlib1.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\zlib1.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\liblzma.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\liblzma.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\jpeg62.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\jpeg62.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\turbojpeg.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\turbojpeg.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\libpng16.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\libpng16.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\libprotobuf-lite.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\libprotobuf-lite.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\libprotobuf.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\libprotobuf.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\libprotoc.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\libprotoc.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\tesseract41.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\tesseract41.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\archive.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\archive.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\zstd.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\zstd.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\libcrypto-1_1-x64.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\libcrypto-1_1-x64.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\libssl-1_1-x64.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\libssl-1_1-x64.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\lz4.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\lz4.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\libxml2.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\libxml2.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\charset-1.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\charset-1.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\iconv-2.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\iconv-2.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\bz2.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\bz2.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\leptonica-1.81.1.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\leptonica-1.81.1.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\openjp2.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\openjp2.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\gif.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\gif.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\hdf5.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\hdf5.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\hdf5_hl.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\hdf5_hl.dll
vcpkg build helper copied D:\vcpkg\installed\x64-windows\bin\szip.dll to D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out\szip.dll
cargo:rustc-cfg=ocvrs_opencv_branch_4
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=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-changed=C:\Users\Administrator.000\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.63.0\src_cpp\alphamat.hpp
cargo:rerun-if-changed=C:\Users\Administrator.000\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.63.0\src_cpp\aruco.hpp
cargo:rerun-if-changed=C:\Users\Administrator.000\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.63.0\src_cpp\bioinspired.hpp
cargo:rerun-if-changed=C:\Users\Administrator.000\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.63.0\src_cpp\ccalib.hpp
cargo:rerun-if-changed=C:\Users\Administrator.000\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.63.0\src_cpp\core.hpp
cargo:rerun-if-changed=C:\Users\Administrator.000\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.63.0\src_cpp\dnn.hpp
cargo:rerun-if-changed=C:\Users\Administrator.000\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.63.0\src_cpp\face.hpp
cargo:rerun-if-changed=C:\Users\Administrator.000\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.63.0\src_cpp\gapi.hpp
cargo:rerun-if-changed=C:\Users\Administrator.000\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.63.0\src_cpp\hdf.hpp
cargo:rerun-if-changed=C:\Users\Administrator.000\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.63.0\src_cpp\manual-core.cpp
cargo:rerun-if-changed=C:\Users\Administrator.000\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.63.0\src_cpp\manual-dnn.cpp
cargo:rerun-if-changed=C:\Users\Administrator.000\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.63.0\src_cpp\manual-features2d.cpp
cargo:rerun-if-changed=C:\Users\Administrator.000\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.63.0\src_cpp\ocvrs_common.hpp
cargo:rerun-if-changed=C:\Users\Administrator.000\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.63.0\src_cpp\photo.hpp
cargo:rerun-if-changed=C:\Users\Administrator.000\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.63.0\src_cpp\sfm.hpp
cargo:rerun-if-changed=C:\Users\Administrator.000\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.63.0\src_cpp\videoio.hpp
cargo:rerun-if-changed=C:\Users\Administrator.000\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.63.0\src_cpp\xfeatures2d.hpp
cargo:rerun-if-changed=Cargo.toml
=== Clang: clang version 13.0.0
--- stderr
=== Crate version: Some("0.63.0")
=== 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 = None
=== OPENCV_LINK_PATHS = None
=== OPENCV_INCLUDE_PATHS = None
=== OPENCV_DISABLE_PROBES = None
=== CMAKE_PREFIX_PATH = None
=== OpenCV_DIR = None
=== PKG_CONFIG_PATH = None
=== VCPKG_ROOT = Some("D:\\vcpkg")
=== VCPKGRS_DYNAMIC = Some("1")
=== Enabled features:
=== ALPHAMAT
=== ARUCO
=== BARCODE
=== BGSEGM
=== BIOINSPIRED
=== CALIB3D
=== CCALIB
=== CUDAARITHM
=== CUDABGSEGM
=== CUDACODEC
=== CUDAFEATURES2D
=== CUDAFILTERS
=== CUDAIMGPROC
=== CUDAOBJDETECT
=== CUDAOPTFLOW
=== CUDASTEREO
=== CUDAWARPING
=== CVV
=== DEFAULT
=== DNN
=== DNN_SUPERRES
=== DPM
=== FACE
=== 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
=== STEREO
=== STITCHING
=== STRUCTURED_LIGHT
=== SUPERRES
=== SURFACE_MATCHING
=== TEXT
=== TRACKING
=== VIDEO
=== VIDEOIO
=== VIDEOSTAB
=== VIZ
=== WECHAT_QRCODE
=== XFEATURES2D
=== XIMGPROC
=== XOBJDETECT
=== XPHOTO
=== Detected probe priority based on environment vars: pkg_config: false, cmake: false, vcpkg: true
=== Probing the OpenCV library in the following order: environment, vcpkg_cmake, vcpkg, pkg_config, cmake
=== Can't probe using: environment, continuing with other methods because: Some environment variables are missing
=== Probing OpenCV library using vcpkg_cmake
=== Discovered vcpkg root: D:\vcpkg
=== Probing OpenCV library using cmake with toolchain: D:\vcpkg\scripts/buildsystems/vcpkg.cmake
=== cmake ninja probe command: "D:\\vcpkg\\downloads\\tools\\cmake-3.22.2-windows\\cmake-3.22.2-windows-i386\\bin\\cmake.exe" "-S" "C:\\Users\\Administrator.000\\.cargo\\registry\\src\\github.com-1ecc6299db9ec823\\opencv-0.63.0\\cmake" "-DOCVRS_PACKAGE_NAME=OpenCV" "-DCMAKE_TOOLCHAIN_FILE=D:\\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!\nSee also \"D:/Github/hello_rust/target/debug/build/opencv-9b75fa6a8e806598/out/cmake_probe_build/CMakeFiles/CMakeOutput.log\".\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: "D:\\vcpkg\\downloads\\tools\\cmake-3.22.2-windows\\cmake-3.22.2-windows-i386\\bin\\cmake.exe" "-S" "C:\\Users\\Administrator.000\\.cargo\\registry\\src\\github.com-1ecc6299db9ec823\\opencv-0.63.0\\cmake" "-DOCVRS_PACKAGE_NAME=OpenCV" "-DCMAKE_TOOLCHAIN_FILE=D:\\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!\nSee also \"D:/Github/hello_rust/target/debug/build/opencv-9b75fa6a8e806598/out/cmake_probe_build/CMakeFiles/CMakeOutput.log\".\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: "D:\\vcpkg\\downloads\\tools\\cmake-3.22.2-windows\\cmake-3.22.2-windows-i386\\bin\\cmake.exe" "-S" "C:\\Users\\Administrator.000\\.cargo\\registry\\src\\github.com-1ecc6299db9ec823\\opencv-0.63.0\\cmake" "-DOCVRS_PACKAGE_NAME=OpenCV" "-DCMAKE_TOOLCHAIN_FILE=D:\\vcpkg\\scripts/buildsystems/vcpkg.cmake" "-DCMAKE_BUILD_TYPE=Debug" "--find-package" "-DCOMPILER_ID=GNU" "-DLANGUAGE=CXX" "-DMODE=COMPILE" "-DNAME=OpenCV"
=== cmake include arguments: "-ID:/vcpkg/installed/x64-windows/include \r\n"
=== cmake find-package link probe command: "D:\\vcpkg\\downloads\\tools\\cmake-3.22.2-windows\\cmake-3.22.2-windows-i386\\bin\\cmake.exe" "-S" "C:\\Users\\Administrator.000\\.cargo\\registry\\src\\github.com-1ecc6299db9ec823\\opencv-0.63.0\\cmake" "-DOCVRS_PACKAGE_NAME=OpenCV" "-DCMAKE_TOOLCHAIN_FILE=D:\\vcpkg\\scripts/buildsystems/vcpkg.cmake" "-DCMAKE_BUILD_TYPE=Debug" "--find-package" "-DCOMPILER_ID=GNU" "-DLANGUAGE=CXX" "-DMODE=LINK" "-DNAME=OpenCV"
=== cmake link arguments: "D:/vcpkg/installed/x64-windows/debug/lib/opencv_stitchingd.lib D:/vcpkg/installed/x64-windows/debug/lib/opencv_arucod.lib D:/vcpkg/installed/x64-windows/debug/lib/opencv_barcoded.lib D:/vcpkg/installed/x64-windows/debug/lib/opencv_bgsegmd.lib D:/vcpkg/installed/x64-windows/debug/lib/opencv_bioinspiredd.lib D:/vcpkg/installed/x64-windows/debug/lib/opencv_ccalibd.lib D:/vcpkg/installed/x64-windows/debug/lib/opencv_dnn_objdetectd.lib D:/vcpkg/installed/x64-windows/debug/lib/opencv_dnn_superresd.lib D:/vcpkg/installed/x64-windows/debug/lib/opencv_dpmd.lib D:/vcpkg/installed/x64-windows/debug/lib/opencv_faced.lib D:/vcpkg/installed/x64-windows/debug/lib/opencv_fuzzyd.lib D:/vcpkg/installed/x64-windows/debug/lib/opencv_hdfd.lib D:/vcpkg/installed/x64-windows/debug/lib/opencv_hfsd.lib D:/vcpkg/installed/x64-windows/debug/lib/opencv_img_hashd.lib D:/vcpkg/installed/x64-windows/debug/lib/opencv_intensity_transformd.lib D:/vcpkg/installed/x64-windows/debug/lib/opencv_line_descriptord.lib D:/vcpkg/installed/x64-windows/debug/lib/opencv_mccd.lib D:/vcpkg/installed/x64-windows/debug/lib/opencv_qualityd.lib D:/vcpkg/installed/x64-windows/debug/lib/opencv_rapidd.lib D:/vcpkg/installed/x64-windows/debug/lib/opencv_regd.lib D:/vcpkg/installed/x64-windows/debug/lib/opencv_saliencyd.lib D:/vcpkg/installed/x64-windows/debug/lib/opencv_stereod.lib D:/vcpkg/installed/x64-windows/debug/lib/opencv_structured_lightd.lib D:/vcpkg/installed/x64-windows/debug/lib/opencv_superresd.lib D:/vcpkg/installed/x64-windows/debug/lib/opencv_surface_matchingd.lib D:/vcpkg/installed/x64-windows/debug/lib/opencv_trackingd.lib D:/vcpkg/installed/x64-windows/debug/lib/opencv_videostabd.lib D:/vcpkg/installed/x64-windows/debug/lib/opencv_wechat_qrcoded.lib D:/vcpkg/installed/x64-windows/debug/lib/opencv_xfeatures2dd.lib D:/vcpkg/installed/x64-windows/debug/lib/opencv_xobjdetectd.lib D:/vcpkg/installed/x64-windows/debug/lib/opencv_xphotod.lib D:/vcpkg/installed/x64-windows/debug/lib/opencv_shaped.lib D:/vcpkg/installed/x64-windows/debug/lib/opencv_highguid.lib D:/vcpkg/installed/x64-windows/debug/lib/opencv_datasetsd.lib D:/vcpkg/installed/x64-windows/debug/lib/opencv_plotd.lib D:/vcpkg/installed/x64-windows/debug/lib/opencv_textd.lib D:/vcpkg/installed/x64-windows/debug/lib/opencv_mld.lib D:/vcpkg/installed/x64-windows/debug/lib/opencv_phase_unwrappingd.lib D:/vcpkg/installed/x64-windows/debug/lib/opencv_optflowd.lib D:/vcpkg/installed/x64-windows/debug/lib/opencv_ximgprocd.lib D:/vcpkg/installed/x64-windows/debug/lib/opencv_videod.lib D:/vcpkg/installed/x64-windows/debug/lib/opencv_videoiod.lib D:/vcpkg/installed/x64-windows/debug/lib/opencv_imgcodecsd.lib D:/vcpkg/installed/x64-windows/debug/lib/opencv_objdetectd.lib D:/vcpkg/installed/x64-windows/debug/lib/opencv_calib3dd.lib D:/vcpkg/installed/x64-windows/debug/lib/opencv_dnnd.lib D:/vcpkg/installed/x64-windows/debug/lib/opencv_features2dd.lib D:/vcpkg/installed/x64-windows/debug/lib/opencv_flannd.lib D:/vcpkg/installed/x64-windows/debug/lib/opencv_photod.lib D:/vcpkg/installed/x64-windows/debug/lib/opencv_imgprocd.lib D:/vcpkg/installed/x64-windows/debug/lib/opencv_cored.lib -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32 \r\n"
=== OpenCV library configuration: Library {
include_paths: [
"D:/vcpkg/installed/x64-windows/include",
],
version: Version {
major: 4,
minor: 5,
patch: 5,
},
cargo_metadata: [
"cargo:rustc-link-search=D:/vcpkg/installed/x64-windows/debug/lib",
"cargo:rustc-link-lib=opencv_stitchingd",
"cargo:rustc-link-lib=opencv_arucod",
"cargo:rustc-link-lib=opencv_barcoded",
"cargo:rustc-link-lib=opencv_bgsegmd",
"cargo:rustc-link-lib=opencv_bioinspiredd",
"cargo:rustc-link-lib=opencv_ccalibd",
"cargo:rustc-link-lib=opencv_dnn_objdetectd",
"cargo:rustc-link-lib=opencv_dnn_superresd",
"cargo:rustc-link-lib=opencv_dpmd",
"cargo:rustc-link-lib=opencv_faced",
"cargo:rustc-link-lib=opencv_fuzzyd",
"cargo:rustc-link-lib=opencv_hdfd",
"cargo:rustc-link-lib=opencv_hfsd",
"cargo:rustc-link-lib=opencv_img_hashd",
"cargo:rustc-link-lib=opencv_intensity_transformd",
"cargo:rustc-link-lib=opencv_line_descriptord",
"cargo:rustc-link-lib=opencv_mccd",
"cargo:rustc-link-lib=opencv_qualityd",
"cargo:rustc-link-lib=opencv_rapidd",
"cargo:rustc-link-lib=opencv_regd",
"cargo:rustc-link-lib=opencv_saliencyd",
"cargo:rustc-link-lib=opencv_stereod",
"cargo:rustc-link-lib=opencv_structured_lightd",
"cargo:rustc-link-lib=opencv_superresd",
"cargo:rustc-link-lib=opencv_surface_matchingd",
"cargo:rustc-link-lib=opencv_trackingd",
"cargo:rustc-link-lib=opencv_videostabd",
"cargo:rustc-link-lib=opencv_wechat_qrcoded",
"cargo:rustc-link-lib=opencv_xfeatures2dd",
"cargo:rustc-link-lib=opencv_xobjdetectd",
"cargo:rustc-link-lib=opencv_xphotod",
"cargo:rustc-link-lib=opencv_shaped",
"cargo:rustc-link-lib=opencv_highguid",
"cargo:rustc-link-lib=opencv_datasetsd",
"cargo:rustc-link-lib=opencv_plotd",
"cargo:rustc-link-lib=opencv_textd",
"cargo:rustc-link-lib=opencv_mld",
"cargo:rustc-link-lib=opencv_phase_unwrappingd",
"cargo:rustc-link-lib=opencv_optflowd",
"cargo:rustc-link-lib=opencv_ximgprocd",
"cargo:rustc-link-lib=opencv_videod",
"cargo:rustc-link-lib=opencv_videoiod",
"cargo:rustc-link-lib=opencv_imgcodecsd",
"cargo:rustc-link-lib=opencv_objdetectd",
"cargo:rustc-link-lib=opencv_calib3dd",
"cargo:rustc-link-lib=opencv_dnnd",
"cargo:rustc-link-lib=opencv_features2dd",
"cargo:rustc-link-lib=opencv_flannd",
"cargo:rustc-link-lib=opencv_photod",
"cargo:rustc-link-lib=opencv_imgprocd",
"cargo:rustc-link-lib=opencv_cored",
"cargo:rustc-link-lib=kernel32",
"cargo:rustc-link-lib=user32",
"cargo:rustc-link-lib=gdi32",
"cargo:rustc-link-lib=winspool",
"cargo:rustc-link-lib=shell32",
"cargo:rustc-link-lib=ole32",
"cargo:rustc-link-lib=oleaut32",
"cargo:rustc-link-lib=uuid",
"cargo:rustc-link-lib=comdlg32",
"cargo:rustc-link-lib=advapi32",
],
}
=== Detected OpenCV module header dir at: D:/vcpkg/installed/x64-windows/include\opencv2
=== Found OpenCV version: 4.5.5 in headers located at: D:/vcpkg/installed/x64-windows/include
=== Generating code in: D:\Github\hello_rust\target\debug\build\opencv-9b75fa6a8e806598\out
=== Placing generated bindings into: C:\Users\Administrator.000\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.63.0\src\opencv
=== Using OpenCV headers from: D:/vcpkg/installed/x64-windows/include
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: "could not run executable `D:\\vcpkg\\installed\\x64-windows\\tools\\llvm`: Access is denied. (os error 5)"', C:\Users\Administrator.000\.cargo\registry\src\github.com-1ecc6299db9ec823\clang-sys-1.3.1\src\support.rs:184:58
stack backtrace:
0: std::panicking::begin_panic_handler
at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a\/library\std\src\panicking.rs:498
1: core::panicking::panic_fmt
at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a\/library\core\src\panicking.rs:116
2: core::result::unwrap_failed
at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a\/library\core\src\result.rs:1690
3: enum$<core::result::Result<tuple$<alloc::string::String,alloc::string::String>,alloc::string::String> >::unwrap<tuple$<alloc::string::String,alloc::string::String>,alloc::string::String>
at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a\library\core\src\result.rs:1018
4: clang_sys::support::run_clang
at C:\Users\Administrator.000\.cargo\registry\src\github.com-1ecc6299db9ec823\clang-sys-1.3.1\src\support.rs:184
5: clang_sys::support::parse_version
at C:\Users\Administrator.000\.cargo\registry\src\github.com-1ecc6299db9ec823\clang-sys-1.3.1\src\support.rs:205
6: clang_sys::support::Clang::new<alloc::string::String>
at C:\Users\Administrator.000\.cargo\registry\src\github.com-1ecc6299db9ec823\clang-sys-1.3.1\src\support.rs:38
7: clang_sys::support::Clang::find
at C:\Users\Administrator.000\.cargo\registry\src\github.com-1ecc6299db9ec823\clang-sys-1.3.1\src\support.rs:61
8: opencv_binding_generator::generator::Generator::new
at C:\Users\Administrator.000\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-binding-generator-0.41.0\src\generator.rs:485
9: build_script_build::generator::gen_wrapper
at .\build\generator.rs:85
10: build_script_build::main
at .\build.rs:348
11: core::ops::function::FnOnce::call_once<enum$<core::result::Result<tuple$<>,alloc::boxed::Box<dyn$<std::error::Error>,alloc::alloc::Global> >, 1, 18446744073709551615, Err> (*)(),tuple$<> >
at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a\library\core\src\ops\function.rs:227
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
The source of the build failure is:
"could not run executable `D:\\vcpkg\\installed\\x64-windows\\tools\\llvm`: Access is denied. (os error 5)"'
So I suppose something is not right with your user's permissions or vcpkg installation