twistedfall / opencv-rust

Rust bindings for OpenCV 3 & 4
MIT License
1.92k stars 149 forks source link

failing to compile opencv even after setting up proper env #493

Closed aaqidmasoodi closed 12 months ago

aaqidmasoodi commented 1 year ago
  1. Operating System: macOS Ventura

  2. Method of installation: hombres - brew install opencv

  3. OpenCV Version: 4.8.0

  4. rustc 1.72.0

  5. full output of the following command from your project directory:

    
    Fresh glob v0.3.1
    Fresh memchr v2.6.3
    Fresh regex-syntax v0.7.5
    Fresh autocfg v1.1.0
    Fresh percent-encoding v2.3.0
    Fresh dunce v1.0.4
    Fresh libc v0.2.147
    Fresh aho-corasick v1.0.5
    Fresh once_cell v1.18.0
    Fresh vcpkg v0.2.15
    Fresh shlex v1.2.0
    Fresh regex-automata v0.3.8
    Fresh jobserver v0.1.26
    Fresh semver v1.0.18
    Fresh pkg-config v0.3.27
    Fresh clang-sys v1.6.1
    Fresh regex v1.9.5
    Fresh cc v1.0.79
    Fresh num-traits v0.2.16
    Fresh clang v2.0.0
    Fresh opencv-binding-generator v0.72.0
    Compiling opencv v0.84.5
    Running `/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-c6e35606d3c22d4a/build-script-build`
    [opencv 0.84.5] === Crate version: Some("0.84.5")
    [opencv 0.84.5] === Environment configuration:
    [opencv 0.84.5] ===   OPENCV_PACKAGE_NAME = None
    [opencv 0.84.5] ===   OPENCV_PKGCONFIG_NAME = None
    [opencv 0.84.5] ===   OPENCV_CMAKE_NAME = None
    [opencv 0.84.5] ===   OPENCV_CMAKE_BIN = None
    [opencv 0.84.5] ===   OPENCV_VCPKG_NAME = None
    [opencv 0.84.5] ===   OPENCV_LINK_LIBS = Some("/opt/homebrew/Cellar/opencv/4.8.0_4/lib")
    [opencv 0.84.5] ===   OPENCV_LINK_PATHS = Some("/opt/homebrew/Cellar/opencv/4.8.0_4/share/opencv4")
    [opencv 0.84.5] ===   OPENCV_INCLUDE_PATHS = Some("/opt/homebrew/Cellar/opencv/4.8.0_4/include")
    [opencv 0.84.5] ===   OPENCV_DISABLE_PROBES = None
    [opencv 0.84.5] ===   OPENCV_MSVC_CRT = None
    [opencv 0.84.5] ===   CMAKE_PREFIX_PATH = None
    [opencv 0.84.5] ===   OpenCV_DIR = None
    [opencv 0.84.5] ===   PKG_CONFIG_PATH = None
    [opencv 0.84.5] ===   VCPKG_ROOT = None
    [opencv 0.84.5] ===   VCPKGRS_DYNAMIC = None
    [opencv 0.84.5] ===   VCPKGRS_TRIPLET = None
    [opencv 0.84.5] ===   OCVRS_DOCS_GENERATE_DIR = None
    [opencv 0.84.5] ===   DOCS_RS = None
    [opencv 0.84.5] ===   PATH = Some("/opt/homebrew/opt/qt@5/bin:/usr/local/opt/qt/bin:/opt/homebrew/opt/openjdk@11/bin:/opt/homebrew/Cellar/pyenv-virtualenv/1.2.1/shims:/usr/local/mysql/bin:/Users/aaqidmasoodi/.nvm/versions/node/v16.20.1/bin:/opt/homebrew/opt/qt@5/bin:/usr/local/opt/qt/bin:/opt/homebrew/opt/openjdk@11/bin:/opt/homebrew/Cellar/pyenv-virtualenv/1.2.1/shims:/usr/local/mysql/bin:/Users/aaqidmasoodi/.nvm/versions/node/v16.20.1/bin:/opt/homebrew/opt/qt@5/bin:/usr/local/opt/qt/bin:/opt/homebrew/opt/openjdk@11/bin:/opt/homebrew/Cellar/pyenv-virtualenv/1.2.1/shims:/usr/local/mysql/bin:/Users/aaqidmasoodi/.nvm/versions/node/v16.20.1/bin:/opt/homebrew/opt/qt@5/bin:/usr/local/opt/qt/bin:/opt/homebrew/opt/openjdk@11/bin:/opt/homebrew/Cellar/pyenv-virtualenv/1.2.1/shims:/usr/local/mysql/bin:/Users/aaqidmasoodi/.nvm/versions/node/v16.20.1/bin:/opt/homebrew/opt/qt@5/bin:/usr/local/opt/qt/bin:/opt/homebrew/opt/openjdk@11/bin:/opt/homebrew/Cellar/pyenv-virtualenv/1.2.1/shims:/usr/local/mysql/bin:/Users/aaqidmasoodi/.nvm/versions/node/v16.20.1/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/homebrew/opt/qt@5/bin:/usr/local/opt/qt/bin:/opt/homebrew/opt/openjdk@11/bin:/opt/homebrew/Cellar/pyenv-virtualenv/1.2.1/shims:/usr/local/mysql/bin:/Users/aaqidmasoodi/.nvm/versions/node/v16.20.1/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/Users/aaqidmasoodi/.cargo/bin:/Users/aaqidmasoodi/Library/Android/sdk/tools:/Users/aaqidmasoodi/Library/Android/sdk/platform-tools:/emulator:/tools/bin:/Users/aaqidmasoodi/Library/Android/sdk/tools:/Users/aaqidmasoodi/Library/Android/sdk/platform-tools:/emulator:/tools/bin:/Users/aaqidmasoodi/Library/Android/sdk/tools:/Users/aaqidmasoodi/Library/Android/sdk/platform-tools:/emulator:/tools/bin:/Users/aaqidmasoodi/Library/Android/sdk/tools:/Users/aaqidmasoodi/Library/Android/sdk/platform-tools:/emulator:/tools/bin:/Users/aaqidmasoodi/Library/Android/sdk/tools:/Users/aaqidmasoodi/Library/Android/sdk/platform-tools:/emulator:/tools/bin:/Users/aaqidmasoodi/Library/Android/sdk/tools:/Users/aaqidmasoodi/Library/Android/sdk/platform-tools:/emulator:/tools/bin")
    [opencv 0.84.5] === Enabled features:
    [opencv 0.84.5] ===   ALPHAMAT
    [opencv 0.84.5] ===   ARUCO
    [opencv 0.84.5] ===   ARUCO_DETECTOR
    [opencv 0.84.5] ===   BARCODE
    [opencv 0.84.5] ===   BGSEGM
    [opencv 0.84.5] ===   BIOINSPIRED
    [opencv 0.84.5] ===   CALIB3D
    [opencv 0.84.5] ===   CCALIB
    [opencv 0.84.5] ===   CUDAARITHM
    [opencv 0.84.5] ===   CUDABGSEGM
    [opencv 0.84.5] ===   CUDACODEC
    [opencv 0.84.5] ===   CUDAFEATURES2D
    [opencv 0.84.5] ===   CUDAFILTERS
    [opencv 0.84.5] ===   CUDAIMGPROC
    [opencv 0.84.5] ===   CUDAOBJDETECT
    [opencv 0.84.5] ===   CUDAOPTFLOW
    [opencv 0.84.5] ===   CUDASTEREO
    [opencv 0.84.5] ===   CUDAWARPING
    [opencv 0.84.5] ===   CVV
    [opencv 0.84.5] ===   DEFAULT
    [opencv 0.84.5] ===   DNN
    [opencv 0.84.5] ===   DNN_SUPERRES
    [opencv 0.84.5] ===   DPM
    [opencv 0.84.5] ===   FACE
    [opencv 0.84.5] ===   FEATURES2D
    [opencv 0.84.5] ===   FLANN
    [opencv 0.84.5] ===   FREETYPE
    [opencv 0.84.5] ===   FUZZY
    [opencv 0.84.5] ===   GAPI
    [opencv 0.84.5] ===   HDF
    [opencv 0.84.5] ===   HFS
    [opencv 0.84.5] ===   HIGHGUI
    [opencv 0.84.5] ===   IMGCODECS
    [opencv 0.84.5] ===   IMGPROC
    [opencv 0.84.5] ===   IMG_HASH
    [opencv 0.84.5] ===   INTENSITY_TRANSFORM
    [opencv 0.84.5] ===   LINE_DESCRIPTOR
    [opencv 0.84.5] ===   MCC
    [opencv 0.84.5] ===   ML
    [opencv 0.84.5] ===   OBJDETECT
    [opencv 0.84.5] ===   OPTFLOW
    [opencv 0.84.5] ===   OVIS
    [opencv 0.84.5] ===   PHASE_UNWRAPPING
    [opencv 0.84.5] ===   PHOTO
    [opencv 0.84.5] ===   PLOT
    [opencv 0.84.5] ===   QUALITY
    [opencv 0.84.5] ===   RAPID
    [opencv 0.84.5] ===   RGBD
    [opencv 0.84.5] ===   SALIENCY
    [opencv 0.84.5] ===   SFM
    [opencv 0.84.5] ===   SHAPE
    [opencv 0.84.5] ===   STEREO
    [opencv 0.84.5] ===   STITCHING
    [opencv 0.84.5] ===   STRUCTURED_LIGHT
    [opencv 0.84.5] ===   SUPERRES
    [opencv 0.84.5] ===   SURFACE_MATCHING
    [opencv 0.84.5] ===   TEXT
    [opencv 0.84.5] ===   TRACKING
    [opencv 0.84.5] ===   VIDEO
    [opencv 0.84.5] ===   VIDEOIO
    [opencv 0.84.5] ===   VIDEOSTAB
    [opencv 0.84.5] ===   VIZ
    [opencv 0.84.5] ===   WECHAT_QRCODE
    [opencv 0.84.5] ===   XFEATURES2D
    [opencv 0.84.5] ===   XIMGPROC
    [opencv 0.84.5] ===   XOBJDETECT
    [opencv 0.84.5] ===   XPHOTO
    [opencv 0.84.5] === Detected probe priority based on environment vars: pkg_config: false, cmake: false, vcpkg: false
    [opencv 0.84.5] === Probing the OpenCV library in the following order: environment, pkg_config, cmake, vcpkg_cmake, vcpkg
    [opencv 0.84.5] === Configuring OpenCV library from the environment:
    [opencv 0.84.5] ===   include_paths: /opt/homebrew/Cellar/opencv/4.8.0_4/include
    [opencv 0.84.5] ===   link_paths: /opt/homebrew/Cellar/opencv/4.8.0_4/share/opencv4
    [opencv 0.84.5] ===   link_libs: /opt/homebrew/Cellar/opencv/4.8.0_4/lib
    [opencv 0.84.5] === Successfully probed using: environment
    [opencv 0.84.5] === OpenCV library configuration: Library {
    [opencv 0.84.5]     include_paths: [
    [opencv 0.84.5]         "/opt/homebrew/Cellar/opencv/4.8.0_4/include",
    [opencv 0.84.5]     ],
    [opencv 0.84.5]     version: Version {
    [opencv 0.84.5]         major: 0,
    [opencv 0.84.5]         minor: 0,
    [opencv 0.84.5]         patch: 0,
    [opencv 0.84.5]     },
    [opencv 0.84.5]     cargo_metadata: [
    [opencv 0.84.5]         "cargo:rustc-link-search=/opt/homebrew/Cellar/opencv/4.8.0_4/share/opencv4",
    [opencv 0.84.5]         "cargo:rustc-link-search=framework=/opt/homebrew/Cellar/opencv/4.8.0_4/share/opencv4",
    [opencv 0.84.5]         "cargo:rustc-link-lib=",
    [opencv 0.84.5]     ],
    [opencv 0.84.5] }
    [opencv 0.84.5] thread 'main' panicked at 'Unsupported OpenCV version: 0.0.0, must be from 3.2, 3.4 or 4.x branch', /Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5/build.rs:354:9
    [opencv 0.84.5] stack backtrace:
    [opencv 0.84.5]    0:        0x10338de64 - std::backtrace_rs::backtrace::libunwind::trace::h77b39d3188241b9b
    [opencv 0.84.5]                                at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
    [opencv 0.84.5]    1:        0x10338de64 - std::backtrace_rs::backtrace::trace_unsynchronized::h255fc0d6f6a27160
    [opencv 0.84.5]                                at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
    [opencv 0.84.5]    2:        0x10338de64 - std::sys_common::backtrace::_print_fmt::hc63b2fe172b28820
    [opencv 0.84.5]                                at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/sys_common/backtrace.rs:65:5
    [opencv 0.84.5]    3:        0x10338de64 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h523fafbfdb8f0857
    [opencv 0.84.5]                                at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/sys_common/backtrace.rs:44:22
    [opencv 0.84.5]    4:        0x1033acd48 - core::fmt::rt::Argument::fmt::h4c8d9e4aebabcbc2
    [opencv 0.84.5]                                at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/fmt/rt.rs:138:9
    [opencv 0.84.5]    5:        0x1033acd48 - core::fmt::write::hf94a55b5a3abd106
    [opencv 0.84.5]                                at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/fmt/mod.rs:1094:21
    [opencv 0.84.5]    6:        0x10338a53c - std::io::Write::write_fmt::hc7c6bf1da111b052
    [opencv 0.84.5]                                at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/io/mod.rs:1714:15
    [opencv 0.84.5]    7:        0x10338dcbc - std::sys_common::backtrace::_print::h12835c9b28903edc
    [opencv 0.84.5]                                at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/sys_common/backtrace.rs:47:5
    [opencv 0.84.5]    8:        0x10338dcbc - std::sys_common::backtrace::print::h68ede8fb1e716cba
    [opencv 0.84.5]                                at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/sys_common/backtrace.rs:34:9
    [opencv 0.84.5]    9:        0x10338f7f0 - std::panicking::default_hook::{{closure}}::hba2205c2705c60bb
    [opencv 0.84.5]                                at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:269:22
    [opencv 0.84.5]   10:        0x10338f580 - std::panicking::default_hook::h9d927e01472bad1a
    [opencv 0.84.5]                                at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:288:9
    [opencv 0.84.5]   11:        0x10338fd20 - std::panicking::rust_panic_with_hook::h8654c51ef9980a29
    [opencv 0.84.5]                                at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:705:13
    [opencv 0.84.5]   12:        0x10338fc2c - std::panicking::begin_panic_handler::{{closure}}::hd188a636b3b90298
    [opencv 0.84.5]                                at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:597:13
    [opencv 0.84.5]   13:        0x10338e244 - std::sys_common::backtrace::__rust_end_short_backtrace::hc331d455ac21f427
    [opencv 0.84.5]                                at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/sys_common/backtrace.rs:151:18
    [opencv 0.84.5]   14:        0x10338f998 - rust_begin_unwind
    [opencv 0.84.5]                                at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:593:5
    [opencv 0.84.5]   15:        0x1033c73c0 - core::panicking::panic_fmt::h4f2054f72ff905b1
    [opencv 0.84.5]                                at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/panicking.rs:67:14
    [opencv 0.84.5]   16:        0x102f72b34 - build_script_build::main::hfbde3325e72ecc84
    [opencv 0.84.5]   17:        0x102f81414 - core::ops::function::FnOnce::call_once::hef03e7e1f66edac8
    [opencv 0.84.5]   18:        0x102f6c968 - std::sys_common::backtrace::__rust_begin_short_backtrace::h0a34efc9ae5d14db
    [opencv 0.84.5]   19:        0x102f6cc14 - std::rt::lang_start::{{closure}}::h77b409db4c2e622d
    [opencv 0.84.5]   20:        0x103385814 - core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once::hcb04887f0e2b52c1
    [opencv 0.84.5]                                at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ops/function.rs:284:13
    [opencv 0.84.5]   21:        0x103385814 - std::panicking::try::do_call::h414ee3c827cba447
    [opencv 0.84.5]                                at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:500:40
    [opencv 0.84.5]   22:        0x103385814 - std::panicking::try::hdc18bc856569c3fb
    [opencv 0.84.5]                                at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:464:19
    [opencv 0.84.5]   23:        0x103385814 - std::panic::catch_unwind::h3da89e4412af48ed
    [opencv 0.84.5]                                at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panic.rs:142:14
    [opencv 0.84.5]   24:        0x103385814 - std::rt::lang_start_internal::{{closure}}::h2e9bee3cbb426940
    [opencv 0.84.5]                                at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:148:48
    [opencv 0.84.5]   25:        0x103385814 - std::panicking::try::do_call::h43a0fdba16541c76
    [opencv 0.84.5]                                at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:500:40
    [opencv 0.84.5]   26:        0x103385814 - std::panicking::try::hcff632d46e2a16c0
    [opencv 0.84.5]                                at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:464:19
    [opencv 0.84.5]   27:        0x103385814 - std::panic::catch_unwind::h41abadfa504c0be9
    [opencv 0.84.5]                                at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panic.rs:142:14
    [opencv 0.84.5]   28:        0x103385814 - std::rt::lang_start_internal::hbbb9045627d56283
    [opencv 0.84.5]                                at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:148:20
    [opencv 0.84.5]   29:        0x102f6cbec - std::rt::lang_start::h7612f21027751c35
    [opencv 0.84.5]   30:        0x102f738a4 - _main
    error: failed to run custom build command for `opencv v0.84.5`
    note: To improve backtraces for build dependencies, set the CARGO_PROFILE_DEV_BUILD_OVERRIDE_DEBUG=true environment variable to enable debug information generation.

Caused by: process didn't exit successfully: /Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-c6e35606d3c22d4a/build-script-build (exit status: 101) --- stderr === Crate version: Some("0.84.5") === 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("/opt/homebrew/Cellar/opencv/4.8.0_4/lib") === OPENCV_LINK_PATHS = Some("/opt/homebrew/Cellar/opencv/4.8.0_4/share/opencv4") === OPENCV_INCLUDE_PATHS = Some("/opt/homebrew/Cellar/opencv/4.8.0_4/include") === OPENCV_DISABLE_PROBES = None === OPENCV_MSVC_CRT = None === CMAKE_PREFIX_PATH = None === OpenCV_DIR = None === PKG_CONFIG_PATH = None === VCPKG_ROOT = None === VCPKGRS_DYNAMIC = None === VCPKGRS_TRIPLET = None === OCVRS_DOCS_GENERATE_DIR = None === DOCS_RS = None === PATH = Some("/opt/homebrew/opt/qt@5/bin:/usr/local/opt/qt/bin:/opt/homebrew/opt/openjdk@11/bin:/opt/homebrew/Cellar/pyenv-virtualenv/1.2.1/shims:/usr/local/mysql/bin:/Users/aaqidmasoodi/.nvm/versions/node/v16.20.1/bin:/opt/homebrew/opt/qt@5/bin:/usr/local/opt/qt/bin:/opt/homebrew/opt/openjdk@11/bin:/opt/homebrew/Cellar/pyenv-virtualenv/1.2.1/shims:/usr/local/mysql/bin:/Users/aaqidmasoodi/.nvm/versions/node/v16.20.1/bin:/opt/homebrew/opt/qt@5/bin:/usr/local/opt/qt/bin:/opt/homebrew/opt/openjdk@11/bin:/opt/homebrew/Cellar/pyenv-virtualenv/1.2.1/shims:/usr/local/mysql/bin:/Users/aaqidmasoodi/.nvm/versions/node/v16.20.1/bin:/opt/homebrew/opt/qt@5/bin:/usr/local/opt/qt/bin:/opt/homebrew/opt/openjdk@11/bin:/opt/homebrew/Cellar/pyenv-virtualenv/1.2.1/shims:/usr/local/mysql/bin:/Users/aaqidmasoodi/.nvm/versions/node/v16.20.1/bin:/opt/homebrew/opt/qt@5/bin:/usr/local/opt/qt/bin:/opt/homebrew/opt/openjdk@11/bin:/opt/homebrew/Cellar/pyenv-virtualenv/1.2.1/shims:/usr/local/mysql/bin:/Users/aaqidmasoodi/.nvm/versions/node/v16.20.1/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/homebrew/opt/qt@5/bin:/usr/local/opt/qt/bin:/opt/homebrew/opt/openjdk@11/bin:/opt/homebrew/Cellar/pyenv-virtualenv/1.2.1/shims:/usr/local/mysql/bin:/Users/aaqidmasoodi/.nvm/versions/node/v16.20.1/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/Users/aaqidmasoodi/.cargo/bin:/Users/aaqidmasoodi/Library/Android/sdk/tools:/Users/aaqidmasoodi/Library/Android/sdk/platform-tools:/emulator:/tools/bin:/Users/aaqidmasoodi/Library/Android/sdk/tools:/Users/aaqidmasoodi/Library/Android/sdk/platform-tools:/emulator:/tools/bin:/Users/aaqidmasoodi/Library/Android/sdk/tools:/Users/aaqidmasoodi/Library/Android/sdk/platform-tools:/emulator:/tools/bin:/Users/aaqidmasoodi/Library/Android/sdk/tools:/Users/aaqidmasoodi/Library/Android/sdk/platform-tools:/emulator:/tools/bin:/Users/aaqidmasoodi/Library/Android/sdk/tools:/Users/aaqidmasoodi/Library/Android/sdk/platform-tools:/emulator:/tools/bin:/Users/aaqidmasoodi/Library/Android/sdk/tools:/Users/aaqidmasoodi/Library/Android/sdk/platform-tools:/emulator:/tools/bin") === Enabled features: === ALPHAMAT === ARUCO === ARUCO_DETECTOR === 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: false === Probing the OpenCV library in the following order: environment, pkg_config, cmake, vcpkg_cmake, vcpkg === Configuring OpenCV library from the environment: === include_paths: /opt/homebrew/Cellar/opencv/4.8.0_4/include === link_paths: /opt/homebrew/Cellar/opencv/4.8.0_4/share/opencv4 === link_libs: /opt/homebrew/Cellar/opencv/4.8.0_4/lib === Successfully probed using: environment === OpenCV library configuration: Library { include_paths: [ "/opt/homebrew/Cellar/opencv/4.8.0_4/include", ], version: Version { major: 0, minor: 0, patch: 0, }, cargo_metadata: [ "cargo:rustc-link-search=/opt/homebrew/Cellar/opencv/4.8.0_4/share/opencv4", "cargo:rustc-link-search=framework=/opt/homebrew/Cellar/opencv/4.8.0_4/share/opencv4", "cargo:rustc-link-lib=", ], } thread 'main' panicked at 'Unsupported OpenCV version: 0.0.0, must be from 3.2, 3.4 or 4.x branch', /Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5/build.rs:354:9 stack backtrace: 0: 0x10338de64 - std::backtrace_rs::backtrace::libunwind::trace::h77b39d3188241b9b at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 1: 0x10338de64 - std::backtrace_rs::backtrace::trace_unsynchronized::h255fc0d6f6a27160 at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 2: 0x10338de64 - std::sys_common::backtrace::_print_fmt::hc63b2fe172b28820 at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/sys_common/backtrace.rs:65:5 3: 0x10338de64 - ::fmt::h523fafbfdb8f0857 at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/sys_common/backtrace.rs:44:22 4: 0x1033acd48 - core::fmt::rt::Argument::fmt::h4c8d9e4aebabcbc2 at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/fmt/rt.rs:138:9 5: 0x1033acd48 - core::fmt::write::hf94a55b5a3abd106 at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/fmt/mod.rs:1094:21 6: 0x10338a53c - std::io::Write::write_fmt::hc7c6bf1da111b052 at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/io/mod.rs:1714:15 7: 0x10338dcbc - std::sys_common::backtrace::_print::h12835c9b28903edc at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/sys_common/backtrace.rs:47:5 8: 0x10338dcbc - std::sys_common::backtrace::print::h68ede8fb1e716cba at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/sys_common/backtrace.rs:34:9 9: 0x10338f7f0 - std::panicking::default_hook::{{closure}}::hba2205c2705c60bb at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:269:22 10: 0x10338f580 - std::panicking::default_hook::h9d927e01472bad1a at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:288:9 11: 0x10338fd20 - std::panicking::rust_panic_with_hook::h8654c51ef9980a29 at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:705:13 12: 0x10338fc2c - std::panicking::begin_panic_handler::{{closure}}::hd188a636b3b90298 at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:597:13 13: 0x10338e244 - std::sys_common::backtrace::__rust_end_short_backtrace::hc331d455ac21f427 at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/sys_common/backtrace.rs:151:18 14: 0x10338f998 - rust_begin_unwind at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:593:5 15: 0x1033c73c0 - core::panicking::panic_fmt::h4f2054f72ff905b1 at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/panicking.rs:67:14 16: 0x102f72b34 - build_script_build::main::hfbde3325e72ecc84 17: 0x102f81414 - core::ops::function::FnOnce::call_once::hef03e7e1f66edac8 18: 0x102f6c968 - std::sys_common::backtrace::__rust_begin_short_backtrace::h0a34efc9ae5d14db 19: 0x102f6cc14 - std::rt::lang_start::{{closure}}::h77b409db4c2e622d 20: 0x103385814 - core::ops::function::impls::<impl core::ops::function::FnOnce for &F>::call_once::hcb04887f0e2b52c1 at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/core/src/ops/function.rs:284:13 21: 0x103385814 - std::panicking::try::do_call::h414ee3c827cba447 at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:500:40 22: 0x103385814 - std::panicking::try::hdc18bc856569c3fb at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:464:19 23: 0x103385814 - std::panic::catch_unwind::h3da89e4412af48ed at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panic.rs:142:14 24: 0x103385814 - std::rt::lang_start_internal::{{closure}}::h2e9bee3cbb426940 at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:148:48 25: 0x103385814 - std::panicking::try::do_call::h43a0fdba16541c76 at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:500:40 26: 0x103385814 - std::panicking::try::hcff632d46e2a16c0 at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panicking.rs:464:19 27: 0x103385814 - std::panic::catch_unwind::h41abadfa504c0be9 at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/panic.rs:142:14 28: 0x103385814 - std::rt::lang_start_internal::hbbb9045627d56283 at /rustc/5680fa18feaa87f3ff04063800aec256c3d4b4be/library/std/src/rt.rs:148:20 29: 0x102f6cbec - std::rt::lang_start::h7612f21027751c35 30: 0x102f738a4 - _main

twistedfall commented 1 year ago

Can you please show the contents of the /opt/homebrew/Cellar/opencv/4.8.0_4/include directory?

aaqidmasoodi commented 1 year ago

opencv-rust Sure I have attached a photo as well as here are the content os the dir:

aaqidmasoodi@Aaqids-MacBook-Air include % pwd
/opt/homebrew/Cellar/opencv/4.8.0_4/include
aaqidmasoodi@Aaqids-MacBook-Air include % ls
opencv4
aaqidmasoodi@Aaqids-MacBook-Air include % cd opencv4 
aaqidmasoodi@Aaqids-MacBook-Air opencv4 % ls
opencv2
aaqidmasoodi@Aaqids-MacBook-Air opencv4 % cd opencv2 
aaqidmasoodi@Aaqids-MacBook-Air opencv2 % ls
alphamat.hpp        img_hash        sfm.hpp
aruco           img_hash.hpp        shape
aruco.hpp       imgcodecs       shape.hpp
bgsegm.hpp      imgcodecs.hpp       stereo
bioinspired     imgproc         stereo.hpp
bioinspired.hpp     imgproc.hpp     stitching
calib3d         intensity_transform.hpp stitching.hpp
calib3d.hpp     line_descriptor     structured_light
ccalib          line_descriptor.hpp structured_light.hpp
ccalib.hpp      mcc         superres
core            mcc.hpp         superres.hpp
core.hpp        ml          surface_matching
core_detect.hpp     ml.hpp          surface_matching.hpp
cvconfig.h      objdetect       text
datasets        objdetect.hpp       text.hpp
dnn         opencv.hpp      tracking
dnn.hpp         opencv_modules.hpp  tracking.hpp
dnn_superres.hpp    optflow         video
dpm.hpp         optflow.hpp     video.hpp
face            phase_unwrapping    videoio
face.hpp        phase_unwrapping.hpp    videoio.hpp
features2d      photo           videostab
features2d.hpp      photo.hpp       videostab.hpp
flann           plot.hpp        viz
flann.hpp       quality         viz.hpp
freetype.hpp        quality.hpp     wechat_qrcode.hpp
fuzzy           rapid.hpp       xfeatures2d
fuzzy.hpp       reg         xfeatures2d.hpp
gapi            rgbd            ximgproc
gapi.hpp        rgbd.hpp        ximgproc.hpp
hfs.hpp         saliency        xobjdetect.hpp
highgui         saliency.hpp        xphoto
highgui.hpp     sfm         xphoto.hpp
aaqidmasoodi@Aaqids-MacBook-Air opencv2 % 
twistedfall commented 1 year ago

I see, please try specifying the following string as a value of OPENCV_INCLUDE_PATHS: /opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4

aaqidmasoodi commented 1 year ago

you mean in the .zshrc?

aaqidmasoodi commented 1 year ago

one other thing i noted is when i do cargo add opencv It shows minus for clang runtime and rgb. Now i have no idea why and if that is even something but just wanted to bring to you. Here is a screenshot of my vscode.

screenshot

and here is my ~/.zshrc

Untitled2

Here is the output after update the OPENCV_INCLUDE_PATHS: /opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4

aaqidmasoodi@Aaqids-MacBook-Air learn-rust % cargo add opencv
    Updating crates.io index
      Adding opencv v0.84.5 to dependencies.
             Features:
             + alphamat
             + aruco
             + aruco_detector
             + barcode
             + bgsegm
             + bioinspired
             + calib3d
             + ccalib
             + cudaarithm
             + cudabgsegm
             + cudacodec
             + cudafeatures2d
             + cudafilters
             + cudaimgproc
             + cudaobjdetect
             + cudaoptflow
             + cudastereo
             + cudawarping
aaqidmasoodi@Aaqids-MacBook-Air learn-rust % cargo build
   Compiling libc v0.2.147
   Compiling glob v0.3.1
   Compiling memchr v2.6.3
   Compiling regex-syntax v0.7.5
   Compiling semver v1.0.18
   Compiling autocfg v1.1.0
   Compiling percent-encoding v2.3.0
   Compiling dunce v1.0.4
   Compiling once_cell v1.18.0
   Compiling shlex v1.2.0
   Compiling vcpkg v0.2.15
   Compiling pkg-config v0.3.27
   Compiling num-traits v0.2.16
   Compiling clang-sys v1.6.1
   Compiling aho-corasick v1.0.5
   Compiling regex-automata v0.3.8
   Compiling jobserver v0.1.26
   Compiling cc v1.0.79
   Compiling regex v1.9.5
   Compiling clang v2.0.0
   Compiling opencv-binding-generator v0.72.0
   Compiling opencv v0.84.5
error: library name must not be empty

The following warnings were emitted during compilation:

warning: In file included from /Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out/saliency.cpp:2:
warning: In file included from /opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4/opencv2/saliency.hpp:46:
warning: /opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4/opencv2/saliency/saliencySpecializedClasses.hpp:311:16: warning: 'cv::saliency::ObjectnessBING::read' hides overloaded virtual function [-Woverloaded-virtual]
warning:   CV_WRAP void read();
warning:                ^
warning: /opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4/opencv2/core.hpp:3174:26: note: hidden overloaded virtual function 'cv::Algorithm::read' declared here: different number of parameters (1 vs 0)
warning:     CV_WRAP virtual void read(const FileNode& fn) { CV_UNUSED(fn); }
warning:                          ^
warning: In file included from /Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out/saliency.cpp:2:
warning: In file included from /opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4/opencv2/saliency.hpp:46:
warning: /opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4/opencv2/saliency/saliencySpecializedClasses.hpp:312:16: warning: 'cv::saliency::ObjectnessBING::write' hides overloaded virtual function [-Woverloaded-virtual]
warning:   CV_WRAP void write() const;
warning:                ^
warning: /opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4/opencv2/core.hpp:3161:26: note: hidden overloaded virtual function 'cv::Algorithm::write' declared here: different number of parameters (1 vs 0)
warning:     CV_WRAP virtual void write(FileStorage& fs) const { CV_UNUSED(fs); }
warning:                          ^
warning: 2 warnings generated.

error: could not compile `opencv` (lib)
aaqidmasoodi commented 1 year ago

Here i recorded it what it was before and what it is after: https://www.youtube.com/watch?v=xfp6p8GUO1k

I am pretty sure but i am doing something stupid somewhere tbh.

twistedfall commented 1 year ago

Can you please post a new output of cargo build -vv? The -vv flag is important, it makes cargo output important debug information.

aaqidmasoodi commented 1 year ago

sure. this is with - OPENCV_INCLUDE_PATHS: /opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4

aaqidmasoodi@Aaqids-MacBook-Air learn-rust % cargo build -vv
       Fresh glob v0.3.1
       Fresh memchr v2.6.3
       Fresh regex-syntax v0.7.5
       Fresh autocfg v1.1.0
       Fresh percent-encoding v2.3.0
       Fresh once_cell v1.18.0
       Fresh libc v0.2.147
       Fresh aho-corasick v1.0.5
       Fresh dunce v1.0.4
       Fresh shlex v1.2.0
       Fresh pkg-config v0.3.27
       Fresh regex-automata v0.3.8
       Fresh jobserver v0.1.26
       Fresh semver v1.0.18
       Fresh vcpkg v0.2.15
       Fresh clang-sys v1.6.1
       Fresh regex v1.9.5
       Fresh cc v1.0.79
       Fresh num-traits v0.2.16
       Fresh clang v2.0.0
       Fresh opencv-binding-generator v0.72.0
warning: In file included from /Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out/saliency.cpp:2:
warning: In file included from /opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4/opencv2/saliency.hpp:46:
warning: /opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4/opencv2/saliency/saliencySpecializedClasses.hpp:311:16: warning: 'cv::saliency::ObjectnessBING::read' hides overloaded virtual function [-Woverloaded-virtual]
warning:   CV_WRAP void read();
warning:                ^
warning: /opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4/opencv2/core.hpp:3174:26: note: hidden overloaded virtual function 'cv::Algorithm::read' declared here: different number of parameters (1 vs 0)
warning:     CV_WRAP virtual void read(const FileNode& fn) { CV_UNUSED(fn); }
warning:                          ^
warning: In file included from /Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out/saliency.cpp:2:
warning: In file included from /opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4/opencv2/saliency.hpp:46:
warning: /opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4/opencv2/saliency/saliencySpecializedClasses.hpp:312:16: warning: 'cv::saliency::ObjectnessBING::write' hides overloaded virtual function [-Woverloaded-virtual]
warning:   CV_WRAP void write() const;
warning:                ^
warning: /opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4/opencv2/core.hpp:3161:26: note: hidden overloaded virtual function 'cv::Algorithm::write' declared here: different number of parameters (1 vs 0)
warning:     CV_WRAP virtual void write(FileStorage& fs) const { CV_UNUSED(fs); }
warning:                          ^
warning: 2 warnings generated.
   Compiling opencv v0.84.5
     Running `CARGO=/Users/aaqidmasoodi/.rustup/toolchains/stable-aarch64-apple-darwin/bin/cargo CARGO_CRATE_NAME=opencv CARGO_MANIFEST_DIR=/Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5 CARGO_PKG_AUTHORS='Pro <twisted.fall@gmail.com>:Mathieu Poumeyrol <kali@zoy.org>' CARGO_PKG_DESCRIPTION='Rust bindings for OpenCV' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE=MIT CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=opencv CARGO_PKG_README=README.md CARGO_PKG_REPOSITORY='https://github.com/twistedfall/opencv-rust' CARGO_PKG_RUST_VERSION=1.59 CARGO_PKG_VERSION=0.84.5 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=84 CARGO_PKG_VERSION_PATCH=5 CARGO_PKG_VERSION_PRE='' DYLD_FALLBACK_LIBRARY_PATH='/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/deps:/Users/aaqidmasoodi/.rustup/toolchains/stable-aarch64-apple-darwin/lib:/Users/aaqidmasoodi/.rustup/toolchains/stable-aarch64-apple-darwin/lib:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/' OUT_DIR='/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out' /Users/aaqidmasoodi/.rustup/toolchains/stable-aarch64-apple-darwin/bin/rustc --crate-name opencv --edition=2021 /Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=124 --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C split-debuginfo=unpacked --cfg 'feature="alphamat"' --cfg 'feature="aruco"' --cfg 'feature="aruco_detector"' --cfg 'feature="barcode"' --cfg 'feature="bgsegm"' --cfg 'feature="bioinspired"' --cfg 'feature="calib3d"' --cfg 'feature="ccalib"' --cfg 'feature="cudaarithm"' --cfg 'feature="cudabgsegm"' --cfg 'feature="cudacodec"' --cfg 'feature="cudafeatures2d"' --cfg 'feature="cudafilters"' --cfg 'feature="cudaimgproc"' --cfg 'feature="cudaobjdetect"' --cfg 'feature="cudaoptflow"' --cfg 'feature="cudastereo"' --cfg 'feature="cudawarping"' --cfg 'feature="cvv"' --cfg 'feature="default"' --cfg 'feature="dnn"' --cfg 'feature="dnn_superres"' --cfg 'feature="dpm"' --cfg 'feature="face"' --cfg 'feature="features2d"' --cfg 'feature="flann"' --cfg 'feature="freetype"' --cfg 'feature="fuzzy"' --cfg 'feature="gapi"' --cfg 'feature="hdf"' --cfg 'feature="hfs"' --cfg 'feature="highgui"' --cfg 'feature="img_hash"' --cfg 'feature="imgcodecs"' --cfg 'feature="imgproc"' --cfg 'feature="intensity_transform"' --cfg 'feature="line_descriptor"' --cfg 'feature="mcc"' --cfg 'feature="ml"' --cfg 'feature="objdetect"' --cfg 'feature="optflow"' --cfg 'feature="ovis"' --cfg 'feature="phase_unwrapping"' --cfg 'feature="photo"' --cfg 'feature="plot"' --cfg 'feature="quality"' --cfg 'feature="rapid"' --cfg 'feature="rgbd"' --cfg 'feature="saliency"' --cfg 'feature="sfm"' --cfg 'feature="shape"' --cfg 'feature="stereo"' --cfg 'feature="stitching"' --cfg 'feature="structured_light"' --cfg 'feature="superres"' --cfg 'feature="surface_matching"' --cfg 'feature="text"' --cfg 'feature="tracking"' --cfg 'feature="video"' --cfg 'feature="videoio"' --cfg 'feature="videostab"' --cfg 'feature="viz"' --cfg 'feature="wechat_qrcode"' --cfg 'feature="xfeatures2d"' --cfg 'feature="ximgproc"' --cfg 'feature="xobjdetect"' --cfg 'feature="xphoto"' -C metadata=5da634adddb80ad4 -C extra-filename=-5da634adddb80ad4 --out-dir '/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/deps' -L 'dependency=/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/deps' --extern 'libc=/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/deps/liblibc-d6e98f05428589f9.rmeta' --extern 'num_traits=/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/deps/libnum_traits-f5163cef90d35a06.rmeta' --extern 'once_cell=/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/deps/libonce_cell-ebe4714a1591b2e7.rmeta' --cap-lints warn -L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib -L 'native=/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out' -L /opt/homebrew/Cellar/opencv/4.8.0_4/share/opencv4 -L framework=/opt/homebrew/Cellar/opencv/4.8.0_4/share/opencv4 -l static=ocvrs -l c++ -l '' --cfg ocvrs_opencv_branch_4 --cfg ocvrs_has_module_alphamat --cfg ocvrs_has_module_aruco --cfg ocvrs_has_module_bgsegm --cfg ocvrs_has_module_bioinspired --cfg ocvrs_has_module_calib3d --cfg ocvrs_has_module_ccalib --cfg ocvrs_has_module_core --cfg ocvrs_has_module_dnn --cfg ocvrs_has_module_dnn_superres --cfg ocvrs_has_module_dpm --cfg ocvrs_has_module_face --cfg ocvrs_has_module_features2d --cfg ocvrs_has_module_flann --cfg ocvrs_has_module_freetype --cfg ocvrs_has_module_fuzzy --cfg ocvrs_has_module_gapi --cfg ocvrs_has_module_hfs --cfg ocvrs_has_module_highgui --cfg ocvrs_has_module_img_hash --cfg ocvrs_has_module_imgcodecs --cfg ocvrs_has_module_imgproc --cfg ocvrs_has_module_intensity_transform --cfg ocvrs_has_module_line_descriptor --cfg ocvrs_has_module_mcc --cfg ocvrs_has_module_ml --cfg ocvrs_has_module_objdetect --cfg ocvrs_has_module_optflow --cfg ocvrs_has_module_phase_unwrapping --cfg ocvrs_has_module_photo --cfg ocvrs_has_module_plot --cfg ocvrs_has_module_quality --cfg ocvrs_has_module_rapid --cfg ocvrs_has_module_rgbd --cfg ocvrs_has_module_saliency --cfg ocvrs_has_module_sfm --cfg ocvrs_has_module_shape --cfg ocvrs_has_module_stereo --cfg ocvrs_has_module_stitching --cfg ocvrs_has_module_structured_light --cfg ocvrs_has_module_superres --cfg ocvrs_has_module_surface_matching --cfg ocvrs_has_module_text --cfg ocvrs_has_module_tracking --cfg ocvrs_has_module_video --cfg ocvrs_has_module_videoio --cfg ocvrs_has_module_videostab --cfg ocvrs_has_module_viz --cfg ocvrs_has_module_wechat_qrcode --cfg ocvrs_has_module_xfeatures2d --cfg ocvrs_has_module_ximgproc --cfg ocvrs_has_module_xobjdetect --cfg ocvrs_has_module_xphoto`
error: library name must not be empty

The following warnings were emitted during compilation:

warning: In file included from /Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out/saliency.cpp:2:
warning: In file included from /opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4/opencv2/saliency.hpp:46:
warning: /opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4/opencv2/saliency/saliencySpecializedClasses.hpp:311:16: warning: 'cv::saliency::ObjectnessBING::read' hides overloaded virtual function [-Woverloaded-virtual]
warning:   CV_WRAP void read();
warning:                ^
warning: /opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4/opencv2/core.hpp:3174:26: note: hidden overloaded virtual function 'cv::Algorithm::read' declared here: different number of parameters (1 vs 0)
warning:     CV_WRAP virtual void read(const FileNode& fn) { CV_UNUSED(fn); }
warning:                          ^
warning: In file included from /Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out/saliency.cpp:2:
warning: In file included from /opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4/opencv2/saliency.hpp:46:
warning: /opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4/opencv2/saliency/saliencySpecializedClasses.hpp:312:16: warning: 'cv::saliency::ObjectnessBING::write' hides overloaded virtual function [-Woverloaded-virtual]
warning:   CV_WRAP void write() const;
warning:                ^
warning: /opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4/opencv2/core.hpp:3161:26: note: hidden overloaded virtual function 'cv::Algorithm::write' declared here: different number of parameters (1 vs 0)
warning:     CV_WRAP virtual void write(FileStorage& fs) const { CV_UNUSED(fs); }
warning:                          ^
warning: 2 warnings generated.

error: could not compile `opencv` (lib)

Caused by:
  process didn't exit successfully: `CARGO=/Users/aaqidmasoodi/.rustup/toolchains/stable-aarch64-apple-darwin/bin/cargo CARGO_CRATE_NAME=opencv CARGO_MANIFEST_DIR=/Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5 CARGO_PKG_AUTHORS='Pro <twisted.fall@gmail.com>:Mathieu Poumeyrol <kali@zoy.org>' CARGO_PKG_DESCRIPTION='Rust bindings for OpenCV' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE=MIT CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=opencv CARGO_PKG_README=README.md CARGO_PKG_REPOSITORY='https://github.com/twistedfall/opencv-rust' CARGO_PKG_RUST_VERSION=1.59 CARGO_PKG_VERSION=0.84.5 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=84 CARGO_PKG_VERSION_PATCH=5 CARGO_PKG_VERSION_PRE='' DYLD_FALLBACK_LIBRARY_PATH='/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/deps:/Users/aaqidmasoodi/.rustup/toolchains/stable-aarch64-apple-darwin/lib:/Users/aaqidmasoodi/.rustup/toolchains/stable-aarch64-apple-darwin/lib:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/' OUT_DIR='/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out' /Users/aaqidmasoodi/.rustup/toolchains/stable-aarch64-apple-darwin/bin/rustc --crate-name opencv --edition=2021 /Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=124 --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C split-debuginfo=unpacked --cfg 'feature="alphamat"' --cfg 'feature="aruco"' --cfg 'feature="aruco_detector"' --cfg 'feature="barcode"' --cfg 'feature="bgsegm"' --cfg 'feature="bioinspired"' --cfg 'feature="calib3d"' --cfg 'feature="ccalib"' --cfg 'feature="cudaarithm"' --cfg 'feature="cudabgsegm"' --cfg 'feature="cudacodec"' --cfg 'feature="cudafeatures2d"' --cfg 'feature="cudafilters"' --cfg 'feature="cudaimgproc"' --cfg 'feature="cudaobjdetect"' --cfg 'feature="cudaoptflow"' --cfg 'feature="cudastereo"' --cfg 'feature="cudawarping"' --cfg 'feature="cvv"' --cfg 'feature="default"' --cfg 'feature="dnn"' --cfg 'feature="dnn_superres"' --cfg 'feature="dpm"' --cfg 'feature="face"' --cfg 'feature="features2d"' --cfg 'feature="flann"' --cfg 'feature="freetype"' --cfg 'feature="fuzzy"' --cfg 'feature="gapi"' --cfg 'feature="hdf"' --cfg 'feature="hfs"' --cfg 'feature="highgui"' --cfg 'feature="img_hash"' --cfg 'feature="imgcodecs"' --cfg 'feature="imgproc"' --cfg 'feature="intensity_transform"' --cfg 'feature="line_descriptor"' --cfg 'feature="mcc"' --cfg 'feature="ml"' --cfg 'feature="objdetect"' --cfg 'feature="optflow"' --cfg 'feature="ovis"' --cfg 'feature="phase_unwrapping"' --cfg 'feature="photo"' --cfg 'feature="plot"' --cfg 'feature="quality"' --cfg 'feature="rapid"' --cfg 'feature="rgbd"' --cfg 'feature="saliency"' --cfg 'feature="sfm"' --cfg 'feature="shape"' --cfg 'feature="stereo"' --cfg 'feature="stitching"' --cfg 'feature="structured_light"' --cfg 'feature="superres"' --cfg 'feature="surface_matching"' --cfg 'feature="text"' --cfg 'feature="tracking"' --cfg 'feature="video"' --cfg 'feature="videoio"' --cfg 'feature="videostab"' --cfg 'feature="viz"' --cfg 'feature="wechat_qrcode"' --cfg 'feature="xfeatures2d"' --cfg 'feature="ximgproc"' --cfg 'feature="xobjdetect"' --cfg 'feature="xphoto"' -C metadata=5da634adddb80ad4 -C extra-filename=-5da634adddb80ad4 --out-dir '/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/deps' -L 'dependency=/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/deps' --extern 'libc=/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/deps/liblibc-d6e98f05428589f9.rmeta' --extern 'num_traits=/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/deps/libnum_traits-f5163cef90d35a06.rmeta' --extern 'once_cell=/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/deps/libonce_cell-ebe4714a1591b2e7.rmeta' --cap-lints warn -L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib -L 'native=/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out' -L /opt/homebrew/Cellar/opencv/4.8.0_4/share/opencv4 -L framework=/opt/homebrew/Cellar/opencv/4.8.0_4/share/opencv4 -l static=ocvrs -l c++ -l '' --cfg ocvrs_opencv_branch_4 --cfg ocvrs_has_module_alphamat --cfg ocvrs_has_module_aruco --cfg ocvrs_has_module_bgsegm --cfg ocvrs_has_module_bioinspired --cfg ocvrs_has_module_calib3d --cfg ocvrs_has_module_ccalib --cfg ocvrs_has_module_core --cfg ocvrs_has_module_dnn --cfg ocvrs_has_module_dnn_superres --cfg ocvrs_has_module_dpm --cfg ocvrs_has_module_face --cfg ocvrs_has_module_features2d --cfg ocvrs_has_module_flann --cfg ocvrs_has_module_freetype --cfg ocvrs_has_module_fuzzy --cfg ocvrs_has_module_gapi --cfg ocvrs_has_module_hfs --cfg ocvrs_has_module_highgui --cfg ocvrs_has_module_img_hash --cfg ocvrs_has_module_imgcodecs --cfg ocvrs_has_module_imgproc --cfg ocvrs_has_module_intensity_transform --cfg ocvrs_has_module_line_descriptor --cfg ocvrs_has_module_mcc --cfg ocvrs_has_module_ml --cfg ocvrs_has_module_objdetect --cfg ocvrs_has_module_optflow --cfg ocvrs_has_module_phase_unwrapping --cfg ocvrs_has_module_photo --cfg ocvrs_has_module_plot --cfg ocvrs_has_module_quality --cfg ocvrs_has_module_rapid --cfg ocvrs_has_module_rgbd --cfg ocvrs_has_module_saliency --cfg ocvrs_has_module_sfm --cfg ocvrs_has_module_shape --cfg ocvrs_has_module_stereo --cfg ocvrs_has_module_stitching --cfg ocvrs_has_module_structured_light --cfg ocvrs_has_module_superres --cfg ocvrs_has_module_surface_matching --cfg ocvrs_has_module_text --cfg ocvrs_has_module_tracking --cfg ocvrs_has_module_video --cfg ocvrs_has_module_videoio --cfg ocvrs_has_module_videostab --cfg ocvrs_has_module_viz --cfg ocvrs_has_module_wechat_qrcode --cfg ocvrs_has_module_xfeatures2d --cfg ocvrs_has_module_ximgproc --cfg ocvrs_has_module_xobjdetect --cfg ocvrs_has_module_xphoto` (exit status: 1)
aaqidmasoodi@Aaqids-MacBook-Air learn-rust % 
twistedfall commented 1 year ago

Hmm, can you please issue a cargo clean before and then post the new output of cargo build -vv?

aaqidmasoodi commented 1 year ago

It didn't fit on my terminal. I saved it to a file - does this work?

Full Output > output.txt

output.txt

Everything After compiling opencv starts

Compiling opencv v0.84.5
     Running `CARGO=/Users/aaqidmasoodi/.rustup/toolchains/stable-aarch64-apple-darwin/bin/cargo CARGO_CRATE_NAME=build_script_build CARGO_MANIFEST_DIR=/Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5 CARGO_PKG_AUTHORS='Pro <twisted.fall@gmail.com>:Mathieu Poumeyrol <kali@zoy.org>' CARGO_PKG_DESCRIPTION='Rust bindings for OpenCV' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE=MIT CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=opencv CARGO_PKG_README=README.md CARGO_PKG_REPOSITORY='https://github.com/twistedfall/opencv-rust' CARGO_PKG_RUST_VERSION=1.59 CARGO_PKG_VERSION=0.84.5 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=84 CARGO_PKG_VERSION_PATCH=5 CARGO_PKG_VERSION_PRE='' DYLD_FALLBACK_LIBRARY_PATH='/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/deps:/Users/aaqidmasoodi/.rustup/toolchains/stable-aarch64-apple-darwin/lib:/Users/aaqidmasoodi/.rustup/toolchains/stable-aarch64-apple-darwin/lib:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/' /Users/aaqidmasoodi/.rustup/toolchains/stable-aarch64-apple-darwin/bin/rustc --crate-name build_script_build --edition=2021 /Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5/build.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=124 --crate-type bin --emit=dep-info,link -C embed-bitcode=no --cfg 'feature="alphamat"' --cfg 'feature="aruco"' --cfg 'feature="aruco_detector"' --cfg 'feature="barcode"' --cfg 'feature="bgsegm"' --cfg 'feature="bioinspired"' --cfg 'feature="calib3d"' --cfg 'feature="ccalib"' --cfg 'feature="cudaarithm"' --cfg 'feature="cudabgsegm"' --cfg 'feature="cudacodec"' --cfg 'feature="cudafeatures2d"' --cfg 'feature="cudafilters"' --cfg 'feature="cudaimgproc"' --cfg 'feature="cudaobjdetect"' --cfg 'feature="cudaoptflow"' --cfg 'feature="cudastereo"' --cfg 'feature="cudawarping"' --cfg 'feature="cvv"' --cfg 'feature="default"' --cfg 'feature="dnn"' --cfg 'feature="dnn_superres"' --cfg 'feature="dpm"' --cfg 'feature="face"' --cfg 'feature="features2d"' --cfg 'feature="flann"' --cfg 'feature="freetype"' --cfg 'feature="fuzzy"' --cfg 'feature="gapi"' --cfg 'feature="hdf"' --cfg 'feature="hfs"' --cfg 'feature="highgui"' --cfg 'feature="img_hash"' --cfg 'feature="imgcodecs"' --cfg 'feature="imgproc"' --cfg 'feature="intensity_transform"' --cfg 'feature="line_descriptor"' --cfg 'feature="mcc"' --cfg 'feature="ml"' --cfg 'feature="objdetect"' --cfg 'feature="optflow"' --cfg 'feature="ovis"' --cfg 'feature="phase_unwrapping"' --cfg 'feature="photo"' --cfg 'feature="plot"' --cfg 'feature="quality"' --cfg 'feature="rapid"' --cfg 'feature="rgbd"' --cfg 'feature="saliency"' --cfg 'feature="sfm"' --cfg 'feature="shape"' --cfg 'feature="stereo"' --cfg 'feature="stitching"' --cfg 'feature="structured_light"' --cfg 'feature="superres"' --cfg 'feature="surface_matching"' --cfg 'feature="text"' --cfg 'feature="tracking"' --cfg 'feature="video"' --cfg 'feature="videoio"' --cfg 'feature="videostab"' --cfg 'feature="viz"' --cfg 'feature="wechat_qrcode"' --cfg 'feature="xfeatures2d"' --cfg 'feature="ximgproc"' --cfg 'feature="xobjdetect"' --cfg 'feature="xphoto"' -C metadata=c6e35606d3c22d4a -C extra-filename=-c6e35606d3c22d4a --out-dir '/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-c6e35606d3c22d4a' -L 'dependency=/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/deps' --extern 'cc=/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/deps/libcc-7f8028de4e731117.rlib' --extern 'dunce=/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/deps/libdunce-5767440a3adc859b.rlib' --extern 'jobserver=/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/deps/libjobserver-363d5871cdcd01cc.rlib' --extern 'once_cell=/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/deps/libonce_cell-ebe4714a1591b2e7.rlib' --extern 'opencv_binding_generator=/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/deps/libopencv_binding_generator-c7e949c656fdecf6.rlib' --extern 'pkg_config=/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/deps/libpkg_config-0c0e6abcdc3c52ec.rlib' --extern 'semver=/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/deps/libsemver-f9edc51c30063d6d.rlib' --extern 'shlex=/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/deps/libshlex-79786989b7fcbc9a.rlib' --extern 'vcpkg=/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/deps/libvcpkg-66ac3e07482991d9.rlib' --cap-lints warn -L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib -L /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib`
     Running `/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-c6e35606d3c22d4a/build-script-build`
[opencv 0.84.5] === Crate version: Some("0.84.5")
[opencv 0.84.5] === Environment configuration:
[opencv 0.84.5] ===   OPENCV_PACKAGE_NAME = None
[opencv 0.84.5] ===   OPENCV_PKGCONFIG_NAME = None
[opencv 0.84.5] ===   OPENCV_CMAKE_NAME = None
[opencv 0.84.5] ===   OPENCV_CMAKE_BIN = None
[opencv 0.84.5] ===   OPENCV_VCPKG_NAME = None
[opencv 0.84.5] ===   OPENCV_LINK_LIBS = Some("/opt/homebrew/Cellar/opencv/4.8.0_4/lib")
[opencv 0.84.5] ===   OPENCV_LINK_PATHS = Some("/opt/homebrew/Cellar/opencv/4.8.0_4/share/opencv4")
[opencv 0.84.5] ===   OPENCV_INCLUDE_PATHS = Some("/opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4")
[opencv 0.84.5] ===   OPENCV_DISABLE_PROBES = None
[opencv 0.84.5] ===   OPENCV_MSVC_CRT = None
[opencv 0.84.5] ===   CMAKE_PREFIX_PATH = None
[opencv 0.84.5] ===   OpenCV_DIR = None
[opencv 0.84.5] ===   PKG_CONFIG_PATH = None
[opencv 0.84.5] ===   VCPKG_ROOT = None
[opencv 0.84.5] ===   VCPKGRS_DYNAMIC = None
[opencv 0.84.5] ===   VCPKGRS_TRIPLET = None
[opencv 0.84.5] ===   OCVRS_DOCS_GENERATE_DIR = None
[opencv 0.84.5] ===   DOCS_RS = None
[opencv 0.84.5] ===   PATH = Some("/opt/homebrew/opt/qt@5/bin:/usr/local/opt/qt/bin:/opt/homebrew/opt/openjdk@11/bin:/opt/homebrew/Cellar/pyenv-virtualenv/1.2.1/shims:/usr/local/mysql/bin:/Users/aaqidmasoodi/.nvm/versions/node/v16.20.1/bin:/opt/homebrew/opt/qt@5/bin:/usr/local/opt/qt/bin:/opt/homebrew/opt/openjdk@11/bin:/opt/homebrew/Cellar/pyenv-virtualenv/1.2.1/shims:/usr/local/mysql/bin:/Users/aaqidmasoodi/.nvm/versions/node/v16.20.1/bin:/opt/homebrew/opt/qt@5/bin:/usr/local/opt/qt/bin:/opt/homebrew/opt/openjdk@11/bin:/opt/homebrew/Cellar/pyenv-virtualenv/1.2.1/shims:/usr/local/mysql/bin:/Users/aaqidmasoodi/.nvm/versions/node/v16.20.1/bin:/opt/homebrew/opt/qt@5/bin:/usr/local/opt/qt/bin:/opt/homebrew/opt/openjdk@11/bin:/opt/homebrew/Cellar/pyenv-virtualenv/1.2.1/shims:/usr/local/mysql/bin:/Users/aaqidmasoodi/.nvm/versions/node/v16.20.1/bin:/opt/homebrew/opt/qt@5/bin:/usr/local/opt/qt/bin:/opt/homebrew/opt/openjdk@11/bin:/opt/homebrew/Cellar/pyenv-virtualenv/1.2.1/shims:/usr/local/mysql/bin:/Users/aaqidmasoodi/.nvm/versions/node/v16.20.1/bin:/opt/homebrew/opt/qt@5/bin:/usr/local/opt/qt/bin:/opt/homebrew/opt/openjdk@11/bin:/opt/homebrew/Cellar/pyenv-virtualenv/1.2.1/shims:/usr/local/mysql/bin:/Users/aaqidmasoodi/.nvm/versions/node/v16.20.1/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/homebrew/opt/qt@5/bin:/usr/local/opt/qt/bin:/opt/homebrew/opt/openjdk@11/bin:/opt/homebrew/Cellar/pyenv-virtualenv/1.2.1/shims:/usr/local/mysql/bin:/Users/aaqidmasoodi/.nvm/versions/node/v16.20.1/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/Users/aaqidmasoodi/.cargo/bin:/Users/aaqidmasoodi/Library/Android/sdk/tools:/Users/aaqidmasoodi/Library/Android/sdk/platform-tools:/emulator:/tools/bin:/Users/aaqidmasoodi/Library/Android/sdk/tools:/Users/aaqidmasoodi/Library/Android/sdk/platform-tools:/emulator:/tools/bin:/Users/aaqidmasoodi/Library/Android/sdk/tools:/Users/aaqidmasoodi/Library/Android/sdk/platform-tools:/emulator:/tools/bin:/Users/aaqidmasoodi/Library/Android/sdk/tools:/Users/aaqidmasoodi/Library/Android/sdk/platform-tools:/emulator:/tools/bin:/Users/aaqidmasoodi/Library/Android/sdk/tools:/Users/aaqidmasoodi/Library/Android/sdk/platform-tools:/emulator:/tools/bin:/Users/aaqidmasoodi/Library/Android/sdk/tools:/Users/aaqidmasoodi/Library/Android/sdk/platform-tools:/emulator:/tools/bin:/Users/aaqidmasoodi/Library/Android/sdk/tools:/Users/aaqidmasoodi/Library/Android/sdk/platform-tools:/emulator:/tools/bin")
[opencv 0.84.5] === Enabled features:
[opencv 0.84.5] ===   ALPHAMAT
[opencv 0.84.5] ===   ARUCO
[opencv 0.84.5] ===   ARUCO_DETECTOR
[opencv 0.84.5] ===   BARCODE
[opencv 0.84.5] ===   BGSEGM
[opencv 0.84.5] ===   BIOINSPIRED
[opencv 0.84.5] ===   CALIB3D
[opencv 0.84.5] ===   CCALIB
[opencv 0.84.5] ===   CUDAARITHM
[opencv 0.84.5] ===   CUDABGSEGM
[opencv 0.84.5] ===   CUDACODEC
[opencv 0.84.5] ===   CUDAFEATURES2D
[opencv 0.84.5] ===   CUDAFILTERS
[opencv 0.84.5] ===   CUDAIMGPROC
[opencv 0.84.5] ===   CUDAOBJDETECT
[opencv 0.84.5] ===   CUDAOPTFLOW
[opencv 0.84.5] ===   CUDASTEREO
[opencv 0.84.5] ===   CUDAWARPING
[opencv 0.84.5] ===   CVV
[opencv 0.84.5] ===   DEFAULT
[opencv 0.84.5] ===   DNN
[opencv 0.84.5] ===   DNN_SUPERRES
[opencv 0.84.5] ===   DPM
[opencv 0.84.5] ===   FACE
[opencv 0.84.5] ===   FEATURES2D
[opencv 0.84.5] ===   FLANN
[opencv 0.84.5] ===   FREETYPE
[opencv 0.84.5] ===   FUZZY
[opencv 0.84.5] ===   GAPI
[opencv 0.84.5] ===   HDF
[opencv 0.84.5] ===   HFS
[opencv 0.84.5] ===   HIGHGUI
[opencv 0.84.5] ===   IMGCODECS
[opencv 0.84.5] ===   IMGPROC
[opencv 0.84.5] ===   IMG_HASH
[opencv 0.84.5] ===   INTENSITY_TRANSFORM
[opencv 0.84.5] ===   LINE_DESCRIPTOR
[opencv 0.84.5] ===   MCC
[opencv 0.84.5] ===   ML
[opencv 0.84.5] ===   OBJDETECT
[opencv 0.84.5] ===   OPTFLOW
[opencv 0.84.5] ===   OVIS
[opencv 0.84.5] ===   PHASE_UNWRAPPING
[opencv 0.84.5] ===   PHOTO
[opencv 0.84.5] ===   PLOT
[opencv 0.84.5] ===   QUALITY
[opencv 0.84.5] ===   RAPID
[opencv 0.84.5] ===   RGBD
[opencv 0.84.5] ===   SALIENCY
[opencv 0.84.5] ===   SFM
[opencv 0.84.5] ===   SHAPE
[opencv 0.84.5] ===   STEREO
[opencv 0.84.5] ===   STITCHING
[opencv 0.84.5] ===   STRUCTURED_LIGHT
[opencv 0.84.5] ===   SUPERRES
[opencv 0.84.5] ===   SURFACE_MATCHING
[opencv 0.84.5] ===   TEXT
[opencv 0.84.5] ===   TRACKING
[opencv 0.84.5] ===   VIDEO
[opencv 0.84.5] ===   VIDEOIO
[opencv 0.84.5] ===   VIDEOSTAB
[opencv 0.84.5] ===   VIZ
[opencv 0.84.5] ===   WECHAT_QRCODE
[opencv 0.84.5] ===   XFEATURES2D
[opencv 0.84.5] ===   XIMGPROC
[opencv 0.84.5] ===   XOBJDETECT
[opencv 0.84.5] ===   XPHOTO
[opencv 0.84.5] === Detected probe priority based on environment vars: pkg_config: false, cmake: false, vcpkg: false
[opencv 0.84.5] === Probing the OpenCV library in the following order: environment, pkg_config, cmake, vcpkg_cmake, vcpkg
[opencv 0.84.5] === Configuring OpenCV library from the environment:
[opencv 0.84.5] ===   include_paths: /opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4
[opencv 0.84.5] ===   link_paths: /opt/homebrew/Cellar/opencv/4.8.0_4/share/opencv4
[opencv 0.84.5] ===   link_libs: /opt/homebrew/Cellar/opencv/4.8.0_4/lib
[opencv 0.84.5] === Successfully probed using: environment
[opencv 0.84.5] === OpenCV library configuration: Library {
[opencv 0.84.5]     include_paths: [
[opencv 0.84.5]         "/opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4",
[opencv 0.84.5]     ],
[opencv 0.84.5]     version: Version {
[opencv 0.84.5]         major: 4,
[opencv 0.84.5]         minor: 8,
[opencv 0.84.5]         patch: 0,
[opencv 0.84.5]     },
[opencv 0.84.5]     cargo_metadata: [
[opencv 0.84.5]         "cargo:rustc-link-search=/opt/homebrew/Cellar/opencv/4.8.0_4/share/opencv4",
[opencv 0.84.5]         "cargo:rustc-link-search=framework=/opt/homebrew/Cellar/opencv/4.8.0_4/share/opencv4",
[opencv 0.84.5]         "cargo:rustc-link-lib=",
[opencv 0.84.5]     ],
[opencv 0.84.5] }
[opencv 0.84.5] === Detected OpenCV module header dir at: /opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4/opencv2
[opencv 0.84.5] === Found OpenCV version: 4.8.0 in headers located at: /opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4
[opencv 0.84.5] === Generating code in: /Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out
[opencv 0.84.5] === Placing generated bindings into: /Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out/opencv
[opencv 0.84.5] === Using OpenCV headers from: /opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4
[opencv 0.84.5] === Clang: Apple clang version 14.0.3 (clang-1403.0.22.14.1)
[opencv 0.84.5] === Clang command line args: [
[opencv 0.84.5]     "-isystem/usr/local/include",
[opencv 0.84.5]     "-isystem/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1",
[opencv 0.84.5]     "-isystem/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/include",
[opencv 0.84.5]     "-isystem/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include",
[opencv 0.84.5]     "-isystem/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include",
[opencv 0.84.5]     "-isystem/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks",
[opencv 0.84.5]     "-I/opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4",
[opencv 0.84.5]     "-F/opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4",
[opencv 0.84.5]     "-I/Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5/src_cpp",
[opencv 0.84.5]     "-F/Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5/src_cpp",
[opencv 0.84.5]     "-DOCVRS_PARSING_HEADERS",
[opencv 0.84.5]     "-includeocvrs_common.hpp",
[opencv 0.84.5]     "-std=c++14",
[opencv 0.84.5] ]
[opencv 0.84.5] === Using environment job server with the the amount of available jobs: 8
[opencv 0.84.5] === Generating 52 modules
[opencv 0.84.5] === Running: "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-c6e35606d3c22d4a/build-script-build" "/opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4" "/Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5/src_cpp" "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out" "bgsegm" ""
[opencv 0.84.5] === Running: "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-c6e35606d3c22d4a/build-script-build" "/opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4" "/Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5/src_cpp" "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out" "aruco" ""
[opencv 0.84.5] === Running: "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-c6e35606d3c22d4a/build-script-build" "/opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4" "/Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5/src_cpp" "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out" "alphamat" ""
[opencv 0.84.5] === Running: "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-c6e35606d3c22d4a/build-script-build" "/opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4" "/Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5/src_cpp" "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out" "bioinspired" ""
[opencv 0.84.5] === Running: "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-c6e35606d3c22d4a/build-script-build" "/opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4" "/Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5/src_cpp" "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out" "calib3d" ""
[opencv 0.84.5] === Running: "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-c6e35606d3c22d4a/build-script-build" "/opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4" "/Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5/src_cpp" "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out" "ccalib" ""
[opencv 0.84.5] === Running: "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-c6e35606d3c22d4a/build-script-build" "/opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4" "/Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5/src_cpp" "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out" "core" ""
[opencv 0.84.5] === Running: "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-c6e35606d3c22d4a/build-script-build" "/opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4" "/Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5/src_cpp" "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out" "dnn" ""
[opencv 0.84.5] === Generated: alphamat in 2.108303041s
[opencv 0.84.5] === Running: "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-c6e35606d3c22d4a/build-script-build" "/opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4" "/Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5/src_cpp" "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out" "dnn_superres" ""
[opencv 0.84.5] === Generated: bioinspired in 2.292647292s
[opencv 0.84.5] === Running: "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-c6e35606d3c22d4a/build-script-build" "/opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4" "/Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5/src_cpp" "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out" "dpm" ""
[opencv 0.84.5] === Generated: bgsegm in 2.29530225s
[opencv 0.84.5] === Running: "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-c6e35606d3c22d4a/build-script-build" "/opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4" "/Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5/src_cpp" "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out" "face" ""
[opencv 0.84.5] === Generated: aruco in 2.337011458s
[opencv 0.84.5] === Running: "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-c6e35606d3c22d4a/build-script-build" "/opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4" "/Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5/src_cpp" "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out" "features2d" ""
[opencv 0.84.5] === Generated: ccalib in 2.467115958s
[opencv 0.84.5] === Running: "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-c6e35606d3c22d4a/build-script-build" "/opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4" "/Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5/src_cpp" "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out" "flann" ""
[opencv 0.84.5] === Generated: calib3d in 3.047166083s
[opencv 0.84.5] === Running: "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-c6e35606d3c22d4a/build-script-build" "/opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4" "/Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5/src_cpp" "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out" "freetype" ""
[opencv 0.84.5] === Generated: dnn_superres in 1.298953s
[opencv 0.84.5] === Running: "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-c6e35606d3c22d4a/build-script-build" "/opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4" "/Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5/src_cpp" "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out" "fuzzy" ""
[opencv 0.84.5] === Generated: dpm in 1.144591292s
[opencv 0.84.5] === Running: "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-c6e35606d3c22d4a/build-script-build" "/opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4" "/Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5/src_cpp" "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out" "gapi" ""
[opencv 0.84.5] === Generated: flann in 1.271760167s
[opencv 0.84.5] === Running: "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-c6e35606d3c22d4a/build-script-build" "/opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4" "/Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5/src_cpp" "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out" "hfs" ""
[opencv 0.84.5] === Generated: features2d in 1.606803208s
[opencv 0.84.5] === Running: "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-c6e35606d3c22d4a/build-script-build" "/opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4" "/Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5/src_cpp" "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out" "highgui" ""
[opencv 0.84.5] === Generated: face in 1.667682166s
[opencv 0.84.5] === Running: "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-c6e35606d3c22d4a/build-script-build" "/opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4" "/Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5/src_cpp" "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out" "img_hash" ""
[opencv 0.84.5] === Generated: freetype in 1.284530958s
[opencv 0.84.5] === Running: "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-c6e35606d3c22d4a/build-script-build" "/opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4" "/Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5/src_cpp" "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out" "imgcodecs" ""
[opencv 0.84.5] === Generated: fuzzy in 1.271137333s
[opencv 0.84.5] === Running: "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-c6e35606d3c22d4a/build-script-build" "/opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4" "/Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5/src_cpp" "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out" "imgproc" ""
[opencv 0.84.5] === Generated: dnn in 4.806606084s
[opencv 0.84.5] === Running: "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-c6e35606d3c22d4a/build-script-build" "/opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4" "/Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5/src_cpp" "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out" "intensity_transform" ""
[opencv 0.84.5] === Generated: hfs in 1.238603542s
[opencv 0.84.5] === Running: "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-c6e35606d3c22d4a/build-script-build" "/opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4" "/Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5/src_cpp" "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out" "line_descriptor" ""
[opencv 0.84.5] === Generated: highgui in 1.246869292s
[opencv 0.84.5] === Running: "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-c6e35606d3c22d4a/build-script-build" "/opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4" "/Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5/src_cpp" "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out" "mcc" ""
[opencv 0.84.5] === Generated: img_hash in 1.237518666s
[opencv 0.84.5] === Running: "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-c6e35606d3c22d4a/build-script-build" "/opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4" "/Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5/src_cpp" "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out" "ml" ""
[opencv 0.84.5] === Generated: core in 5.296956792s
[opencv 0.84.5] === Running: "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-c6e35606d3c22d4a/build-script-build" "/opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4" "/Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5/src_cpp" "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out" "objdetect" ""
[opencv 0.84.5] === Generated: imgcodecs in 1.177435833s
[opencv 0.84.5] === Running: "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-c6e35606d3c22d4a/build-script-build" "/opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4" "/Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5/src_cpp" "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out" "optflow" ""
[opencv 0.84.5] === Generated: gapi in 2.178311333s
[opencv 0.84.5] === Running: "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-c6e35606d3c22d4a/build-script-build" "/opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4" "/Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5/src_cpp" "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out" "phase_unwrapping" ""
[opencv 0.84.5] === Generated: intensity_transform in 1.323943208s
[opencv 0.84.5] === Running: "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-c6e35606d3c22d4a/build-script-build" "/opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4" "/Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5/src_cpp" "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out" "photo" ""
[opencv 0.84.5] === Generated: line_descriptor in 1.431484208s
[opencv 0.84.5] === Running: "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-c6e35606d3c22d4a/build-script-build" "/opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4" "/Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5/src_cpp" "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out" "plot" ""
[opencv 0.84.5] === Generated: mcc in 1.3916875s
[opencv 0.84.5] === Running: "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-c6e35606d3c22d4a/build-script-build" "/opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4" "/Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5/src_cpp" "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out" "quality" ""
[opencv 0.84.5] === Generated: imgproc in 2.076609042s
[opencv 0.84.5] === Running: "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-c6e35606d3c22d4a/build-script-build" "/opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4" "/Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5/src_cpp" "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out" "rapid" ""
[opencv 0.84.5] === Generated: phase_unwrapping in 1.194928333s
[opencv 0.84.5] === Running: "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-c6e35606d3c22d4a/build-script-build" "/opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4" "/Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5/src_cpp" "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out" "rgbd" ""
[opencv 0.84.5] === Generated: ml in 1.708420667s
[opencv 0.84.5] === Running: "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-c6e35606d3c22d4a/build-script-build" "/opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4" "/Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5/src_cpp" "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out" "saliency" ""
[opencv 0.84.5] === Generated: optflow in 1.524641917s
[opencv 0.84.5] === Running: "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-c6e35606d3c22d4a/build-script-build" "/opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4" "/Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5/src_cpp" "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out" "sfm" ""
[opencv 0.84.5] === Generated: objdetect in 2.064115417s
[opencv 0.84.5] === Running: "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-c6e35606d3c22d4a/build-script-build" "/opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4" "/Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5/src_cpp" "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out" "shape" ""
[opencv 0.84.5] === Generated: photo in 1.511731958s
[opencv 0.84.5] === Running: "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-c6e35606d3c22d4a/build-script-build" "/opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4" "/Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5/src_cpp" "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out" "stereo" ""
[opencv 0.84.5] === Generated: plot in 1.274446917s
[opencv 0.84.5] === Running: "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-c6e35606d3c22d4a/build-script-build" "/opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4" "/Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5/src_cpp" "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out" "stitching" ""
[opencv 0.84.5] === Generated: quality in 1.417618333s
[opencv 0.84.5] === Running: "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-c6e35606d3c22d4a/build-script-build" "/opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4" "/Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5/src_cpp" "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out" "structured_light" ""
[opencv 0.84.5] === Generated: rapid in 1.332077459s
[opencv 0.84.5] === Running: "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-c6e35606d3c22d4a/build-script-build" "/opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4" "/Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5/src_cpp" "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out" "superres" ""
[opencv 0.84.5] === Generated: saliency in 1.375277208s
[opencv 0.84.5] === Running: "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-c6e35606d3c22d4a/build-script-build" "/opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4" "/Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5/src_cpp" "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out" "surface_matching" ""
[opencv 0.84.5] === Generated: sfm in 1.374302042s
[opencv 0.84.5] === Running: "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-c6e35606d3c22d4a/build-script-build" "/opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4" "/Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5/src_cpp" "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out" "text" ""
[opencv 0.84.5] === Generated: shape in 1.337610209s
[opencv 0.84.5] === Running: "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-c6e35606d3c22d4a/build-script-build" "/opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4" "/Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5/src_cpp" "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out" "tracking" ""
[opencv 0.84.5] === Generated: stereo in 1.277515541s
[opencv 0.84.5] === Running: "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-c6e35606d3c22d4a/build-script-build" "/opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4" "/Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5/src_cpp" "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out" "video" ""
[opencv 0.84.5] === Generated: rgbd in 2.151619584s
[opencv 0.84.5] === Running: "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-c6e35606d3c22d4a/build-script-build" "/opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4" "/Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5/src_cpp" "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out" "videoio" ""
[opencv 0.84.5] === Generated: structured_light in 1.324235167s
[opencv 0.84.5] === Running: "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-c6e35606d3c22d4a/build-script-build" "/opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4" "/Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5/src_cpp" "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out" "videostab" ""
[opencv 0.84.5] === Generated: superres in 1.36599075s
[opencv 0.84.5] === Running: "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-c6e35606d3c22d4a/build-script-build" "/opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4" "/Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5/src_cpp" "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out" "viz" ""
[opencv 0.84.5] === Generated: surface_matching in 1.303696375s
[opencv 0.84.5] === Running: "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-c6e35606d3c22d4a/build-script-build" "/opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4" "/Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5/src_cpp" "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out" "wechat_qrcode" ""
[opencv 0.84.5] === Generated: text in 1.555007875s
[opencv 0.84.5] === Running: "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-c6e35606d3c22d4a/build-script-build" "/opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4" "/Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5/src_cpp" "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out" "xfeatures2d" ""
[opencv 0.84.5] === Generated: tracking in 1.337363959s
[opencv 0.84.5] === Running: "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-c6e35606d3c22d4a/build-script-build" "/opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4" "/Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5/src_cpp" "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out" "ximgproc" ""
[opencv 0.84.5] === Generated: stitching in 2.483466208s
[opencv 0.84.5] === Running: "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-c6e35606d3c22d4a/build-script-build" "/opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4" "/Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5/src_cpp" "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out" "xobjdetect" ""
[opencv 0.84.5] === Generated: videoio in 1.31853875s
[opencv 0.84.5] === Running: "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-c6e35606d3c22d4a/build-script-build" "/opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4" "/Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5/src_cpp" "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out" "xphoto" ""
[opencv 0.84.5] === Generated: video in 1.637409709s
[opencv 0.84.5] === Generated: wechat_qrcode in 1.195691709s
[opencv 0.84.5] === Generated: videostab in 1.6908725s
[opencv 0.84.5] === Generated: viz in 1.613091417s
[opencv 0.84.5] === Generated: xobjdetect in 1.068416291s
[opencv 0.84.5] === Generated: xphoto in 1.104043083s
[opencv 0.84.5] === Generated: xfeatures2d in 1.47378425s
[opencv 0.84.5] === Generated: ximgproc in 1.583862209s
[opencv 0.84.5] === Total binding generation time: 11.6270095s
[opencv 0.84.5] === Total binding collection time: 364.207792ms
[opencv 0.84.5] === Compiler information: Tool {
[opencv 0.84.5]     path: "c++",
[opencv 0.84.5]     cc_wrapper_path: None,
[opencv 0.84.5]     cc_wrapper_args: [],
[opencv 0.84.5]     args: [
[opencv 0.84.5]         "-O0",
[opencv 0.84.5]         "-ffunction-sections",
[opencv 0.84.5]         "-fdata-sections",
[opencv 0.84.5]         "-fPIC",
[opencv 0.84.5]         "-gdwarf-2",
[opencv 0.84.5]         "-fno-omit-frame-pointer",
[opencv 0.84.5]         "-arch",
[opencv 0.84.5]         "arm64",
[opencv 0.84.5]         "-I",
[opencv 0.84.5]         "/Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5/src_cpp",
[opencv 0.84.5]         "-I",
[opencv 0.84.5]         "/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out",
[opencv 0.84.5]         "-I",
[opencv 0.84.5]         ".",
[opencv 0.84.5]         "-I",
[opencv 0.84.5]         "/opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4",
[opencv 0.84.5]         "-Wall",
[opencv 0.84.5]         "-Wextra",
[opencv 0.84.5]         "-std=c++11",
[opencv 0.84.5]         "-Wno-deprecated-declarations",
[opencv 0.84.5]         "-Wno-deprecated-copy",
[opencv 0.84.5]         "-Wno-unused-parameter",
[opencv 0.84.5]         "-Wno-sign-compare",
[opencv 0.84.5]         "-Wno-comment",
[opencv 0.84.5]         "-Wno-unused-variable",
[opencv 0.84.5]         "-Wno-ignored-qualifiers",
[opencv 0.84.5]         "-Wno-return-type-c-linkage",
[opencv 0.84.5]         "-F/opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4",
[opencv 0.84.5]     ],
[opencv 0.84.5]     env: [],
[opencv 0.84.5]     family: Gnu,
[opencv 0.84.5]     cuda: false,
[opencv 0.84.5]     removed_args: [],
[opencv 0.84.5] }
[opencv 0.84.5] === Total cpp build time: 7.131682542s
warning: In file included from /Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out/saliency.cpp:2:
warning: In file included from /opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4/opencv2/saliency.hpp:46:
warning: /opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4/opencv2/saliency/saliencySpecializedClasses.hpp:311:16: warning: 'cv::saliency::ObjectnessBING::read' hides overloaded virtual function [-Woverloaded-virtual]
warning:   CV_WRAP void read();
warning:                ^
warning: /opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4/opencv2/core.hpp:3174:26: note: hidden overloaded virtual function 'cv::Algorithm::read' declared here: different number of parameters (1 vs 0)
warning:     CV_WRAP virtual void read(const FileNode& fn) { CV_UNUSED(fn); }
warning:                          ^
warning: In file included from /Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out/saliency.cpp:2:
warning: In file included from /opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4/opencv2/saliency.hpp:46:
warning: /opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4/opencv2/saliency/saliencySpecializedClasses.hpp:312:16: warning: 'cv::saliency::ObjectnessBING::write' hides overloaded virtual function [-Woverloaded-virtual]
warning:   CV_WRAP void write() const;
warning:                ^
warning: /opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4/opencv2/core.hpp:3161:26: note: hidden overloaded virtual function 'cv::Algorithm::write' declared here: different number of parameters (1 vs 0)
warning:     CV_WRAP virtual void write(FileStorage& fs) const { CV_UNUSED(fs); }
warning:                          ^
warning: 2 warnings generated.
     Running `CARGO=/Users/aaqidmasoodi/.rustup/toolchains/stable-aarch64-apple-darwin/bin/cargo CARGO_CRATE_NAME=opencv CARGO_MANIFEST_DIR=/Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5 CARGO_PKG_AUTHORS='Pro <twisted.fall@gmail.com>:Mathieu Poumeyrol <kali@zoy.org>' CARGO_PKG_DESCRIPTION='Rust bindings for OpenCV' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE=MIT CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=opencv CARGO_PKG_README=README.md CARGO_PKG_REPOSITORY='https://github.com/twistedfall/opencv-rust' CARGO_PKG_RUST_VERSION=1.59 CARGO_PKG_VERSION=0.84.5 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=84 CARGO_PKG_VERSION_PATCH=5 CARGO_PKG_VERSION_PRE='' DYLD_FALLBACK_LIBRARY_PATH='/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/deps:/Users/aaqidmasoodi/.rustup/toolchains/stable-aarch64-apple-darwin/lib:/Users/aaqidmasoodi/.rustup/toolchains/stable-aarch64-apple-darwin/lib:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/' OUT_DIR='/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out' /Users/aaqidmasoodi/.rustup/toolchains/stable-aarch64-apple-darwin/bin/rustc --crate-name opencv --edition=2021 /Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=124 --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C split-debuginfo=unpacked --cfg 'feature="alphamat"' --cfg 'feature="aruco"' --cfg 'feature="aruco_detector"' --cfg 'feature="barcode"' --cfg 'feature="bgsegm"' --cfg 'feature="bioinspired"' --cfg 'feature="calib3d"' --cfg 'feature="ccalib"' --cfg 'feature="cudaarithm"' --cfg 'feature="cudabgsegm"' --cfg 'feature="cudacodec"' --cfg 'feature="cudafeatures2d"' --cfg 'feature="cudafilters"' --cfg 'feature="cudaimgproc"' --cfg 'feature="cudaobjdetect"' --cfg 'feature="cudaoptflow"' --cfg 'feature="cudastereo"' --cfg 'feature="cudawarping"' --cfg 'feature="cvv"' --cfg 'feature="default"' --cfg 'feature="dnn"' --cfg 'feature="dnn_superres"' --cfg 'feature="dpm"' --cfg 'feature="face"' --cfg 'feature="features2d"' --cfg 'feature="flann"' --cfg 'feature="freetype"' --cfg 'feature="fuzzy"' --cfg 'feature="gapi"' --cfg 'feature="hdf"' --cfg 'feature="hfs"' --cfg 'feature="highgui"' --cfg 'feature="img_hash"' --cfg 'feature="imgcodecs"' --cfg 'feature="imgproc"' --cfg 'feature="intensity_transform"' --cfg 'feature="line_descriptor"' --cfg 'feature="mcc"' --cfg 'feature="ml"' --cfg 'feature="objdetect"' --cfg 'feature="optflow"' --cfg 'feature="ovis"' --cfg 'feature="phase_unwrapping"' --cfg 'feature="photo"' --cfg 'feature="plot"' --cfg 'feature="quality"' --cfg 'feature="rapid"' --cfg 'feature="rgbd"' --cfg 'feature="saliency"' --cfg 'feature="sfm"' --cfg 'feature="shape"' --cfg 'feature="stereo"' --cfg 'feature="stitching"' --cfg 'feature="structured_light"' --cfg 'feature="superres"' --cfg 'feature="surface_matching"' --cfg 'feature="text"' --cfg 'feature="tracking"' --cfg 'feature="video"' --cfg 'feature="videoio"' --cfg 'feature="videostab"' --cfg 'feature="viz"' --cfg 'feature="wechat_qrcode"' --cfg 'feature="xfeatures2d"' --cfg 'feature="ximgproc"' --cfg 'feature="xobjdetect"' --cfg 'feature="xphoto"' -C metadata=5da634adddb80ad4 -C extra-filename=-5da634adddb80ad4 --out-dir '/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/deps' -L 'dependency=/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/deps' --extern 'libc=/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/deps/liblibc-d6e98f05428589f9.rmeta' --extern 'num_traits=/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/deps/libnum_traits-f5163cef90d35a06.rmeta' --extern 'once_cell=/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/deps/libonce_cell-ebe4714a1591b2e7.rmeta' --cap-lints warn -L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib -L 'native=/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out' -L /opt/homebrew/Cellar/opencv/4.8.0_4/share/opencv4 -L framework=/opt/homebrew/Cellar/opencv/4.8.0_4/share/opencv4 -l static=ocvrs -l c++ -l '' --cfg ocvrs_opencv_branch_4 --cfg ocvrs_has_module_alphamat --cfg ocvrs_has_module_aruco --cfg ocvrs_has_module_bgsegm --cfg ocvrs_has_module_bioinspired --cfg ocvrs_has_module_calib3d --cfg ocvrs_has_module_ccalib --cfg ocvrs_has_module_core --cfg ocvrs_has_module_dnn --cfg ocvrs_has_module_dnn_superres --cfg ocvrs_has_module_dpm --cfg ocvrs_has_module_face --cfg ocvrs_has_module_features2d --cfg ocvrs_has_module_flann --cfg ocvrs_has_module_freetype --cfg ocvrs_has_module_fuzzy --cfg ocvrs_has_module_gapi --cfg ocvrs_has_module_hfs --cfg ocvrs_has_module_highgui --cfg ocvrs_has_module_img_hash --cfg ocvrs_has_module_imgcodecs --cfg ocvrs_has_module_imgproc --cfg ocvrs_has_module_intensity_transform --cfg ocvrs_has_module_line_descriptor --cfg ocvrs_has_module_mcc --cfg ocvrs_has_module_ml --cfg ocvrs_has_module_objdetect --cfg ocvrs_has_module_optflow --cfg ocvrs_has_module_phase_unwrapping --cfg ocvrs_has_module_photo --cfg ocvrs_has_module_plot --cfg ocvrs_has_module_quality --cfg ocvrs_has_module_rapid --cfg ocvrs_has_module_rgbd --cfg ocvrs_has_module_saliency --cfg ocvrs_has_module_sfm --cfg ocvrs_has_module_shape --cfg ocvrs_has_module_stereo --cfg ocvrs_has_module_stitching --cfg ocvrs_has_module_structured_light --cfg ocvrs_has_module_superres --cfg ocvrs_has_module_surface_matching --cfg ocvrs_has_module_text --cfg ocvrs_has_module_tracking --cfg ocvrs_has_module_video --cfg ocvrs_has_module_videoio --cfg ocvrs_has_module_videostab --cfg ocvrs_has_module_viz --cfg ocvrs_has_module_wechat_qrcode --cfg ocvrs_has_module_xfeatures2d --cfg ocvrs_has_module_ximgproc --cfg ocvrs_has_module_xobjdetect --cfg ocvrs_has_module_xphoto`
error: library name must not be empty

The following warnings were emitted during compilation:

warning: In file included from /Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out/saliency.cpp:2:
warning: In file included from /opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4/opencv2/saliency.hpp:46:
warning: /opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4/opencv2/saliency/saliencySpecializedClasses.hpp:311:16: warning: 'cv::saliency::ObjectnessBING::read' hides overloaded virtual function [-Woverloaded-virtual]
warning:   CV_WRAP void read();
warning:                ^
warning: /opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4/opencv2/core.hpp:3174:26: note: hidden overloaded virtual function 'cv::Algorithm::read' declared here: different number of parameters (1 vs 0)
warning:     CV_WRAP virtual void read(const FileNode& fn) { CV_UNUSED(fn); }
warning:                          ^
warning: In file included from /Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out/saliency.cpp:2:
warning: In file included from /opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4/opencv2/saliency.hpp:46:
warning: /opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4/opencv2/saliency/saliencySpecializedClasses.hpp:312:16: warning: 'cv::saliency::ObjectnessBING::write' hides overloaded virtual function [-Woverloaded-virtual]
warning:   CV_WRAP void write() const;
warning:                ^
warning: /opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4/opencv2/core.hpp:3161:26: note: hidden overloaded virtual function 'cv::Algorithm::write' declared here: different number of parameters (1 vs 0)
warning:     CV_WRAP virtual void write(FileStorage& fs) const { CV_UNUSED(fs); }
warning:                          ^
warning: 2 warnings generated.

error: could not compile `opencv` (lib)

Caused by:
  process didn't exit successfully: `CARGO=/Users/aaqidmasoodi/.rustup/toolchains/stable-aarch64-apple-darwin/bin/cargo CARGO_CRATE_NAME=opencv CARGO_MANIFEST_DIR=/Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5 CARGO_PKG_AUTHORS='Pro <twisted.fall@gmail.com>:Mathieu Poumeyrol <kali@zoy.org>' CARGO_PKG_DESCRIPTION='Rust bindings for OpenCV' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE=MIT CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=opencv CARGO_PKG_README=README.md CARGO_PKG_REPOSITORY='https://github.com/twistedfall/opencv-rust' CARGO_PKG_RUST_VERSION=1.59 CARGO_PKG_VERSION=0.84.5 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=84 CARGO_PKG_VERSION_PATCH=5 CARGO_PKG_VERSION_PRE='' DYLD_FALLBACK_LIBRARY_PATH='/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/deps:/Users/aaqidmasoodi/.rustup/toolchains/stable-aarch64-apple-darwin/lib:/Users/aaqidmasoodi/.rustup/toolchains/stable-aarch64-apple-darwin/lib:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/' OUT_DIR='/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out' /Users/aaqidmasoodi/.rustup/toolchains/stable-aarch64-apple-darwin/bin/rustc --crate-name opencv --edition=2021 /Users/aaqidmasoodi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/opencv-0.84.5/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=124 --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C split-debuginfo=unpacked --cfg 'feature="alphamat"' --cfg 'feature="aruco"' --cfg 'feature="aruco_detector"' --cfg 'feature="barcode"' --cfg 'feature="bgsegm"' --cfg 'feature="bioinspired"' --cfg 'feature="calib3d"' --cfg 'feature="ccalib"' --cfg 'feature="cudaarithm"' --cfg 'feature="cudabgsegm"' --cfg 'feature="cudacodec"' --cfg 'feature="cudafeatures2d"' --cfg 'feature="cudafilters"' --cfg 'feature="cudaimgproc"' --cfg 'feature="cudaobjdetect"' --cfg 'feature="cudaoptflow"' --cfg 'feature="cudastereo"' --cfg 'feature="cudawarping"' --cfg 'feature="cvv"' --cfg 'feature="default"' --cfg 'feature="dnn"' --cfg 'feature="dnn_superres"' --cfg 'feature="dpm"' --cfg 'feature="face"' --cfg 'feature="features2d"' --cfg 'feature="flann"' --cfg 'feature="freetype"' --cfg 'feature="fuzzy"' --cfg 'feature="gapi"' --cfg 'feature="hdf"' --cfg 'feature="hfs"' --cfg 'feature="highgui"' --cfg 'feature="img_hash"' --cfg 'feature="imgcodecs"' --cfg 'feature="imgproc"' --cfg 'feature="intensity_transform"' --cfg 'feature="line_descriptor"' --cfg 'feature="mcc"' --cfg 'feature="ml"' --cfg 'feature="objdetect"' --cfg 'feature="optflow"' --cfg 'feature="ovis"' --cfg 'feature="phase_unwrapping"' --cfg 'feature="photo"' --cfg 'feature="plot"' --cfg 'feature="quality"' --cfg 'feature="rapid"' --cfg 'feature="rgbd"' --cfg 'feature="saliency"' --cfg 'feature="sfm"' --cfg 'feature="shape"' --cfg 'feature="stereo"' --cfg 'feature="stitching"' --cfg 'feature="structured_light"' --cfg 'feature="superres"' --cfg 'feature="surface_matching"' --cfg 'feature="text"' --cfg 'feature="tracking"' --cfg 'feature="video"' --cfg 'feature="videoio"' --cfg 'feature="videostab"' --cfg 'feature="viz"' --cfg 'feature="wechat_qrcode"' --cfg 'feature="xfeatures2d"' --cfg 'feature="ximgproc"' --cfg 'feature="xobjdetect"' --cfg 'feature="xphoto"' -C metadata=5da634adddb80ad4 -C extra-filename=-5da634adddb80ad4 --out-dir '/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/deps' -L 'dependency=/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/deps' --extern 'libc=/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/deps/liblibc-d6e98f05428589f9.rmeta' --extern 'num_traits=/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/deps/libnum_traits-f5163cef90d35a06.rmeta' --extern 'once_cell=/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/deps/libonce_cell-ebe4714a1591b2e7.rmeta' --cap-lints warn -L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib -L 'native=/Users/aaqidmasoodi/Documents/rust projects/learn-rust/target/debug/build/opencv-136f622ef68154a4/out' -L /opt/homebrew/Cellar/opencv/4.8.0_4/share/opencv4 -L framework=/opt/homebrew/Cellar/opencv/4.8.0_4/share/opencv4 -l static=ocvrs -l c++ -l '' --cfg ocvrs_opencv_branch_4 --cfg ocvrs_has_module_alphamat --cfg ocvrs_has_module_aruco --cfg ocvrs_has_module_bgsegm --cfg ocvrs_has_module_bioinspired --cfg ocvrs_has_module_calib3d --cfg ocvrs_has_module_ccalib --cfg ocvrs_has_module_core --cfg ocvrs_has_module_dnn --cfg ocvrs_has_module_dnn_superres --cfg ocvrs_has_module_dpm --cfg ocvrs_has_module_face --cfg ocvrs_has_module_features2d --cfg ocvrs_has_module_flann --cfg ocvrs_has_module_freetype --cfg ocvrs_has_module_fuzzy --cfg ocvrs_has_module_gapi --cfg ocvrs_has_module_hfs --cfg ocvrs_has_module_highgui --cfg ocvrs_has_module_img_hash --cfg ocvrs_has_module_imgcodecs --cfg ocvrs_has_module_imgproc --cfg ocvrs_has_module_intensity_transform --cfg ocvrs_has_module_line_descriptor --cfg ocvrs_has_module_mcc --cfg ocvrs_has_module_ml --cfg ocvrs_has_module_objdetect --cfg ocvrs_has_module_optflow --cfg ocvrs_has_module_phase_unwrapping --cfg ocvrs_has_module_photo --cfg ocvrs_has_module_plot --cfg ocvrs_has_module_quality --cfg ocvrs_has_module_rapid --cfg ocvrs_has_module_rgbd --cfg ocvrs_has_module_saliency --cfg ocvrs_has_module_sfm --cfg ocvrs_has_module_shape --cfg ocvrs_has_module_stereo --cfg ocvrs_has_module_stitching --cfg ocvrs_has_module_structured_light --cfg ocvrs_has_module_superres --cfg ocvrs_has_module_surface_matching --cfg ocvrs_has_module_text --cfg ocvrs_has_module_tracking --cfg ocvrs_has_module_video --cfg ocvrs_has_module_videoio --cfg ocvrs_has_module_videostab --cfg ocvrs_has_module_viz --cfg ocvrs_has_module_wechat_qrcode --cfg ocvrs_has_module_xfeatures2d --cfg ocvrs_has_module_ximgproc --cfg ocvrs_has_module_xobjdetect --cfg ocvrs_has_module_xphoto` (exit status: 1)
aaqidmasoodi@Aaqids-MacBook-Air learn-rust %  
twistedfall commented 1 year ago

In this case you're using OPENCV_LINK_LIBS environment variable incorrectly. This should be a comma-separated list of shared library names that you want to link it. E.g. opencv_core,opencv_imgproc,opencv_highgui. The specific list depends on what part of OpenCV you're using and with which features OpenCV was built.

BTW, why are you not relying on automatic detection of the OpenCV installation? As far as I know it should work on macOS with OpenCV installed from brew. To use the automatic detection, just don't set those environment variables: OPENCV_LINK_LIBS, OPENCV_LINK_PATHS, OPENCV_INCLUDE_PATHS.

aaqidmasoodi commented 12 months ago

okay, let me try this. I am going to take out the variables OPENCV_LINK_LIBS, OPENCV_LINK_PATHS, OPENCV_INCLUDE_PATHS and not set them essentially.

aaqidmasoodi commented 12 months ago

It worked. It took these variables out of my zshrc and it worked.

aaqidmasoodi@Aaqids-MacBook-Air learn-rust % source ~/.zshrc
aaqidmasoodi@Aaqids-MacBook-Air learn-rust % cargo build
    Updating crates.io index
   Compiling libc v0.2.147
   Compiling glob v0.3.1
   Compiling memchr v2.6.3
   Compiling regex-syntax v0.7.5
   Compiling semver v1.0.18
   Compiling percent-encoding v2.3.0
   Compiling once_cell v1.18.0
   Compiling dunce v1.0.4
   Compiling autocfg v1.1.0
   Compiling vcpkg v0.2.15
   Compiling pkg-config v0.3.27
   Compiling aho-corasick v1.0.5
   Compiling clang-sys v1.6.1
   Compiling num-traits v0.2.16
   Compiling shlex v1.2.0
   Compiling regex-automata v0.3.8
   Compiling jobserver v0.1.26
   Compiling cc v1.0.79
   Compiling regex v1.9.5
   Compiling clang v2.0.0
   Compiling opencv-binding-generator v0.72.0
   Compiling opencv v0.84.5
   Compiling learn-rust v0.1.0 (/Users/aaqidmasoodi/Documents/rust projects/learn-rust)
    Finished dev [unoptimized + debuginfo] target(s) in 45.94s
aaqidmasoodi@Aaqids-MacBook-Air learn-rust % 

Here is the final zshrc

ZSH_THEME="robbyrussell"
export PATH=/Users/aaqidmasoodi/.nvm/versions/node/v16.20.1/bin:$PATH
export PATH=/usr/local/mysql/bin:$PATH
eval "$(pyenv virtualenv-init -)"
export PATH="/opt/homebrew/opt/openjdk@11/bin:$PATH"

export ANDROID_HOME=/Users/aaqidmasoodi/Library/Android/sdk
export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
export PATH=$PATH:$ANDROID_PATH/emulator
export PATH=$PATH:$ANDROID_PATH/tools/bin
export PATH="/usr/local/opt/qt/bin:$PATH"
export PATH="/opt/homebrew/opt/qt@5/bin:$PATH"

export DYLD_FALLBACK_LIBRARY_PATH="$(xcode-select --print-path)/Toolchains/$
export LDFLAGS=-L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib

i guess we just need to add these and rest macos takes care of own its own?

export DYLD_FALLBACK_LIBRARY_PATH="$(xcode-select --print-path)/Toolchains/$
export LDFLAGS=-L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib

Thank you very much!

aaqidmasoodi commented 12 months ago

Closing

aaqidmasoodi commented 12 months ago

Here is a gist about how to set it up properly on macOS step by step

https://gist.github.com/aaqidmasoodi/da698ab103e4fbb180ed965988bea734