twistedfall / opencv-rust

Rust bindings for OpenCV 3 & 4
MIT License
1.99k stars 160 forks source link

If opencv-4 is the only feature enabled, opencv fails to build due to trying to include dnn_superres.hpp #196

Closed tylerhawkes closed 3 years ago

tylerhawkes commented 3 years ago

I know that in the troubleshooting guide it strongly recommends using the buildtime-bindgen feature. I will open another issue shortly describing why that doesn't work. The error here is that it is expecting dnn_superres.hpp to be available even though I don't have the contrib feature enabled.

Operating system: Linux 5.7.8 in a podman container OpenCV installation: manual cross-compilation OpenCV version: 4.5.1 Rustc version: rustc 1.49.0 (e1884a8e3 2020-12-29) Output from build:

tmp> cargo new opencv-nobuildtime
     Created binary (application) `opencv-nobuildtime` package
tmp> cd opencv-nobuildtime
opencv-nobuildtime [master ?]> echo 'opencv = { version = "*", default-features = false, features = ["opencv-4"] }' >> Cargo.toml
opencv-nobuildtime [master ?]> RUST_BACKTRACE=full cargo -vv build
    Updating crates.io index
   Compiling libc v0.2.82
       Fresh autocfg v1.0.1
       Fresh semver-parser v0.7.0
       Fresh glob v0.3.0
       Fresh shlex v0.1.1
       Fresh vcpkg v0.2.11
     Running `CARGO=/rust/rustup/toolchains/1.49.0-x86_64-unknown-linux-gnu/bin/cargo CARGO_CRATE_NAME=build_script_build CARGO_MANIFEST_DIR=/rust/cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.82 CARGO_PKG_AUTHORS='The Rust Project Developers' CARGO_PKG_DESCRIPTION='Raw FFI bindings to platform libraries like libc.
' CARGO_PKG_HOMEPAGE='https://github.com/rust-lang/libc' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=libc CARGO_PKG_REPOSITORY='https://github.com/rust-lang/libc' CARGO_PKG_VERSION=0.2.82 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=2 CARGO_PKG_VERSION_PATCH=82 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/target/debug/deps:/rust/rustup/toolchains/1.49.0-x86_64-unknown-linux-gnu/lib:/rust/rustup/toolchains/1.49.0-x86_64-unknown-linux-gnu/lib' /sccache/rustc rustc --crate-name build_script_build /rust/cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.82/build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=256 --cfg 'feature="default"' --cfg 'feature="std"' -C metadata=dcaae1f179117036 -C extra-filename=-dcaae1f179117036 --out-dir /target/debug/build/libc-dcaae1f179117036 -C linker=rust-x86_64-linker-wrapper.sh -L dependency=/target/debug/deps --cap-lints warn`
       Fresh dunce v1.0.1
       Fresh pkg-config v0.3.19
   Compiling once_cell v1.5.2
       Fresh semver v0.10.0
   Compiling num-traits v0.2.14
     Running `CARGO=/rust/rustup/toolchains/1.49.0-x86_64-unknown-linux-gnu/bin/cargo CARGO_CRATE_NAME=once_cell CARGO_MANIFEST_DIR=/rust/cargo/registry/src/github.com-1ecc6299db9ec823/once_cell-1.5.2 CARGO_PKG_AUTHORS='Aleksey Kladov <aleksey.kladov@gmail.com>' CARGO_PKG_DESCRIPTION='Single assignment cells and lazy values.' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=once_cell CARGO_PKG_REPOSITORY='https://github.com/matklad/once_cell' CARGO_PKG_VERSION=1.5.2 CARGO_PKG_VERSION_MAJOR=1 CARGO_PKG_VERSION_MINOR=5 CARGO_PKG_VERSION_PATCH=2 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/target/debug/deps:/rust/rustup/toolchains/1.49.0-x86_64-unknown-linux-gnu/lib:/rust/rustup/toolchains/1.49.0-x86_64-unknown-linux-gnu/lib' /sccache/rustc rustc --crate-name once_cell --edition=2018 /rust/cargo/registry/src/github.com-1ecc6299db9ec823/once_cell-1.5.2/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no --cfg 'feature="alloc"' --cfg 'feature="default"' --cfg 'feature="std"' -C metadata=f09907c4c3ca39d5 -C extra-filename=-f09907c4c3ca39d5 --out-dir /target/debug/deps -C linker=rust-x86_64-linker-wrapper.sh -L dependency=/target/debug/deps --cap-lints warn`
     Running `CARGO=/rust/rustup/toolchains/1.49.0-x86_64-unknown-linux-gnu/bin/cargo CARGO_CRATE_NAME=build_script_build CARGO_MANIFEST_DIR=/rust/cargo/registry/src/github.com-1ecc6299db9ec823/num-traits-0.2.14 CARGO_PKG_AUTHORS='The Rust Project Developers' CARGO_PKG_DESCRIPTION='Numeric traits for generic mathematics' CARGO_PKG_HOMEPAGE='https://github.com/rust-num/num-traits' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=num-traits CARGO_PKG_REPOSITORY='https://github.com/rust-num/num-traits' CARGO_PKG_VERSION=0.2.14 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=2 CARGO_PKG_VERSION_PATCH=14 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/target/debug/deps:/rust/rustup/toolchains/1.49.0-x86_64-unknown-linux-gnu/lib:/rust/rustup/toolchains/1.49.0-x86_64-unknown-linux-gnu/lib' /sccache/rustc rustc --crate-name build_script_build /rust/cargo/registry/src/github.com-1ecc6299db9ec823/num-traits-0.2.14/build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=256 --cfg 'feature="default"' --cfg 'feature="std"' -C metadata=db5b493d6092784a -C extra-filename=-db5b493d6092784a --out-dir /target/debug/build/num-traits-db5b493d6092784a -C linker=rust-x86_64-linker-wrapper.sh -L dependency=/target/debug/deps --extern autocfg=/target/debug/deps/libautocfg-a4b5ec222611e647.rlib --cap-lints warn`
     Running `/target/debug/build/num-traits-db5b493d6092784a/build-script-build`
     Running `/target/debug/build/libc-dcaae1f179117036/build-script-build`
[num-traits 0.2.14] cargo:rustc-cfg=has_i128
[libc 0.2.82] cargo:rustc-cfg=freebsd11
[libc 0.2.82] cargo:rustc-cfg=libc_priv_mod_use
[libc 0.2.82] cargo:rustc-cfg=libc_union
[libc 0.2.82] cargo:rustc-cfg=libc_const_size_of
[libc 0.2.82] cargo:rustc-cfg=libc_align
[libc 0.2.82] cargo:rustc-cfg=libc_core_cvoid
[libc 0.2.82] cargo:rustc-cfg=libc_packedN
[libc 0.2.82] cargo:rustc-cfg=libc_cfg_target_vendor
     Running `CARGO=/rust/rustup/toolchains/1.49.0-x86_64-unknown-linux-gnu/bin/cargo CARGO_CRATE_NAME=libc CARGO_MANIFEST_DIR=/rust/cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.82 CARGO_PKG_AUTHORS='The Rust Project Developers' CARGO_PKG_DESCRIPTION='Raw FFI bindings to platform libraries like libc.
' CARGO_PKG_HOMEPAGE='https://github.com/rust-lang/libc' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=libc CARGO_PKG_REPOSITORY='https://github.com/rust-lang/libc' CARGO_PKG_VERSION=0.2.82 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=2 CARGO_PKG_VERSION_PATCH=82 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/target/debug/deps:/rust/rustup/toolchains/1.49.0-x86_64-unknown-linux-gnu/lib:/rust/rustup/toolchains/1.49.0-x86_64-unknown-linux-gnu/lib' OUT_DIR=/target/debug/build/libc-79091642cb645d99/out /sccache/rustc rustc --crate-name libc /rust/cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.82/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=256 --cfg 'feature="default"' --cfg 'feature="std"' -C metadata=aecdbb85ac3dc19b -C extra-filename=-aecdbb85ac3dc19b --out-dir /target/debug/deps -C linker=rust-x86_64-linker-wrapper.sh -L dependency=/target/debug/deps --cap-lints warn --cfg freebsd11 --cfg libc_priv_mod_use --cfg libc_union --cfg libc_const_size_of --cfg libc_align --cfg libc_core_cvoid --cfg libc_packedN --cfg libc_cfg_target_vendor`
     Running `CARGO=/rust/rustup/toolchains/1.49.0-x86_64-unknown-linux-gnu/bin/cargo CARGO_CRATE_NAME=libc CARGO_MANIFEST_DIR=/rust/cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.82 CARGO_PKG_AUTHORS='The Rust Project Developers' CARGO_PKG_DESCRIPTION='Raw FFI bindings to platform libraries like libc.
' CARGO_PKG_HOMEPAGE='https://github.com/rust-lang/libc' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=libc CARGO_PKG_REPOSITORY='https://github.com/rust-lang/libc' CARGO_PKG_VERSION=0.2.82 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=2 CARGO_PKG_VERSION_PATCH=82 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/target/debug/deps:/rust/rustup/toolchains/1.49.0-x86_64-unknown-linux-gnu/lib:/rust/rustup/toolchains/1.49.0-x86_64-unknown-linux-gnu/lib' OUT_DIR=/target/debug/build/libc-79091642cb645d99/out /sccache/rustc rustc --crate-name libc /rust/cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.82/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no --cfg 'feature="default"' --cfg 'feature="std"' -C metadata=50122a3f1e6a1017 -C extra-filename=-50122a3f1e6a1017 --out-dir /target/debug/deps -C linker=rust-x86_64-linker-wrapper.sh -L dependency=/target/debug/deps --cap-lints warn --cfg freebsd11 --cfg libc_priv_mod_use --cfg libc_union --cfg libc_const_size_of --cfg libc_align --cfg libc_core_cvoid --cfg libc_packedN --cfg libc_cfg_target_vendor`
[num-traits 0.2.14] cargo:rustc-cfg=has_to_int_unchecked
[num-traits 0.2.14] cargo:rerun-if-changed=build.rs
     Running `CARGO=/rust/rustup/toolchains/1.49.0-x86_64-unknown-linux-gnu/bin/cargo CARGO_CRATE_NAME=num_traits CARGO_MANIFEST_DIR=/rust/cargo/registry/src/github.com-1ecc6299db9ec823/num-traits-0.2.14 CARGO_PKG_AUTHORS='The Rust Project Developers' CARGO_PKG_DESCRIPTION='Numeric traits for generic mathematics' CARGO_PKG_HOMEPAGE='https://github.com/rust-num/num-traits' CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=num-traits CARGO_PKG_REPOSITORY='https://github.com/rust-num/num-traits' CARGO_PKG_VERSION=0.2.14 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=2 CARGO_PKG_VERSION_PATCH=14 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/target/debug/deps:/rust/rustup/toolchains/1.49.0-x86_64-unknown-linux-gnu/lib:/rust/rustup/toolchains/1.49.0-x86_64-unknown-linux-gnu/lib' OUT_DIR=/target/debug/build/num-traits-77486069843bafa6/out /sccache/rustc rustc --crate-name num_traits /rust/cargo/registry/src/github.com-1ecc6299db9ec823/num-traits-0.2.14/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no --cfg 'feature="default"' --cfg 'feature="std"' -C metadata=a445c48375ba5248 -C extra-filename=-a445c48375ba5248 --out-dir /target/debug/deps -C linker=rust-x86_64-linker-wrapper.sh -L dependency=/target/debug/deps --cap-lints warn --cfg has_i128 --cfg has_to_int_unchecked`
   Compiling jobserver v0.1.21
     Running `CARGO=/rust/rustup/toolchains/1.49.0-x86_64-unknown-linux-gnu/bin/cargo CARGO_CRATE_NAME=jobserver CARGO_MANIFEST_DIR=/rust/cargo/registry/src/github.com-1ecc6299db9ec823/jobserver-0.1.21 CARGO_PKG_AUTHORS='Alex Crichton <alex@alexcrichton.com>' CARGO_PKG_DESCRIPTION='An implementation of the GNU make jobserver for Rust
' CARGO_PKG_HOMEPAGE='https://github.com/alexcrichton/jobserver-rs' CARGO_PKG_LICENSE=MIT/Apache-2.0 CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=jobserver CARGO_PKG_REPOSITORY='https://github.com/alexcrichton/jobserver-rs' CARGO_PKG_VERSION=0.1.21 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=1 CARGO_PKG_VERSION_PATCH=21 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/target/debug/deps:/rust/rustup/toolchains/1.49.0-x86_64-unknown-linux-gnu/lib:/rust/rustup/toolchains/1.49.0-x86_64-unknown-linux-gnu/lib' /sccache/rustc rustc --crate-name jobserver --edition=2018 /rust/cargo/registry/src/github.com-1ecc6299db9ec823/jobserver-0.1.21/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=256 -C metadata=141749752d9795c0 -C extra-filename=-141749752d9795c0 --out-dir /target/debug/deps -C linker=rust-x86_64-linker-wrapper.sh -L dependency=/target/debug/deps --extern libc=/target/debug/deps/liblibc-aecdbb85ac3dc19b.rmeta --cap-lints warn`
   Compiling cc v1.0.66
     Running `CARGO=/rust/rustup/toolchains/1.49.0-x86_64-unknown-linux-gnu/bin/cargo CARGO_CRATE_NAME=cc CARGO_MANIFEST_DIR=/rust/cargo/registry/src/github.com-1ecc6299db9ec823/cc-1.0.66 CARGO_PKG_AUTHORS='Alex Crichton <alex@alexcrichton.com>' CARGO_PKG_DESCRIPTION='A build-time dependency for Cargo build scripts to assist in invoking the native
C compiler to compile native C code into a static archive to be linked into Rust
code.
' CARGO_PKG_HOMEPAGE='https://github.com/alexcrichton/cc-rs' CARGO_PKG_LICENSE=MIT/Apache-2.0 CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=cc CARGO_PKG_REPOSITORY='https://github.com/alexcrichton/cc-rs' CARGO_PKG_VERSION=1.0.66 CARGO_PKG_VERSION_MAJOR=1 CARGO_PKG_VERSION_MINOR=0 CARGO_PKG_VERSION_PATCH=66 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/target/debug/deps:/rust/rustup/toolchains/1.49.0-x86_64-unknown-linux-gnu/lib:/rust/rustup/toolchains/1.49.0-x86_64-unknown-linux-gnu/lib' /sccache/rustc rustc --crate-name cc --edition=2018 /rust/cargo/registry/src/github.com-1ecc6299db9ec823/cc-1.0.66/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=256 --cfg 'feature="jobserver"' --cfg 'feature="parallel"' -C metadata=e316c70b6ec8942e -C extra-filename=-e316c70b6ec8942e --out-dir /target/debug/deps -C linker=rust-x86_64-linker-wrapper.sh -L dependency=/target/debug/deps --extern jobserver=/target/debug/deps/libjobserver-141749752d9795c0.rmeta --cap-lints warn`
   Compiling opencv v0.47.0
     Running `CARGO=/rust/rustup/toolchains/1.49.0-x86_64-unknown-linux-gnu/bin/cargo CARGO_CRATE_NAME=build_script_build CARGO_MANIFEST_DIR=/rust/cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.47.0 CARGO_PKG_AUTHORS='Mathieu Poumeyrol <kali@zoy.org>:Pro <twisted.fall@gmail.com>' CARGO_PKG_DESCRIPTION='Rust bindings for OpenCV' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE=MIT CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=opencv CARGO_PKG_REPOSITORY='https://github.com/twistedfall/opencv-rust' CARGO_PKG_VERSION=0.47.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=47 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/target/debug/deps:/rust/rustup/toolchains/1.49.0-x86_64-unknown-linux-gnu/lib:/rust/rustup/toolchains/1.49.0-x86_64-unknown-linux-gnu/lib' /sccache/rustc rustc --crate-name build_script_build --edition=2018 /rust/cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.47.0/build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no -C codegen-units=256 --cfg 'feature="opencv-4"' -C metadata=e1f804b991deba20 -C extra-filename=-e1f804b991deba20 --out-dir /target/debug/build/opencv-e1f804b991deba20 -C linker=rust-x86_64-linker-wrapper.sh -L dependency=/target/debug/deps --extern cc=/target/debug/deps/libcc-e316c70b6ec8942e.rlib --extern dunce=/target/debug/deps/libdunce-367da047d5f20893.rlib --extern glob=/target/debug/deps/libglob-1777aa6492c485b4.rlib --extern once_cell=/target/debug/deps/libonce_cell-2c92c24fa9602637.rlib --extern pkg_config=/target/debug/deps/libpkg_config-23614dd08f52df50.rlib --extern semver=/target/debug/deps/libsemver-a86ecbdf4b6df1f8.rlib --extern shlex=/target/debug/deps/libshlex-7244f3fbe35e4cd0.rlib --extern vcpkg=/target/debug/deps/libvcpkg-5d805d9847331388.rlib --cap-lints warn`
warning: unused import: `process::Command`
  --> /rust/cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.47.0/build.rs:11:2
   |
11 |     process::Command,
   |     ^^^^^^^^^^^^^^^^
   |
   = note: `#[warn(unused_imports)]` on by default

warning: 1 warning emitted

     Running `/target/debug/build/opencv-e1f804b991deba20/build-script-build`
[opencv 0.47.0] === Crate version: Some("0.47.0")
[opencv 0.47.0] === Environment configuration:
[opencv 0.47.0] ===   OPENCV_HEADER_DIR = None
[opencv 0.47.0] ===   OPENCV_PACKAGE_NAME = None
[opencv 0.47.0] ===   OPENCV_PKGCONFIG_NAME = None
[opencv 0.47.0] ===   OPENCV_CMAKE_NAME = None
[opencv 0.47.0] ===   OPENCV_CMAKE_BIN = None
[opencv 0.47.0] ===   OPENCV_VCPKG_NAME = None
[opencv 0.47.0] ===   OPENCV_LINK_LIBS = None
[opencv 0.47.0] ===   OPENCV_LINK_PATHS = None
[opencv 0.47.0] ===   OPENCV_INCLUDE_PATHS = None
[opencv 0.47.0] ===   OPENCV_DISABLE_PROBES = None
[opencv 0.47.0] ===   OPENCV_CLANG_STDLIB_PATH = None
[opencv 0.47.0] ===   OPENCV_MODULE_WHITELIST = None
[opencv 0.47.0] ===   OPENCV_MODULE_BLACKLIST = None
[opencv 0.47.0] ===   CMAKE_PREFIX_PATH = None
[opencv 0.47.0] ===   OpenCV_DIR = None
[opencv 0.47.0] ===   PKG_CONFIG_PATH = None
[opencv 0.47.0] ===   VCPKG_ROOT = None
[opencv 0.47.0] ===   VCPKGRS_DYNAMIC = None
[opencv 0.47.0] === Enabled features:
[opencv 0.47.0] ===   OPENCV_4
[opencv 0.47.0] === Detected probe priority based on environment vars: pkg_config: false, cmake: false, vcpkg: false
[opencv 0.47.0] === Probing the OpenCV library in the following order: environment, pkg_config, cmake, vcpkg_cmake, vcpkg
[opencv 0.47.0] === Can't probe using: environment, continuing with other methods because: Some environment variables are missing
[opencv 0.47.0] === Probing OpenCV library using pkg_config
[opencv 0.47.0] cargo:rerun-if-env-changed=OPENCV4_NO_PKG_CONFIG
[opencv 0.47.0] cargo:rerun-if-env-changed=PKG_CONFIG
[opencv 0.47.0] cargo:rerun-if-env-changed=OPENCV4_STATIC
[opencv 0.47.0] cargo:rerun-if-env-changed=OPENCV4_DYNAMIC
[opencv 0.47.0] cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
[opencv 0.47.0] cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
[opencv 0.47.0] cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-unknown-linux-gnu
[opencv 0.47.0] cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_unknown_linux_gnu
[opencv 0.47.0] cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-unknown-linux-gnu
[opencv 0.47.0] cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_unknown_linux_gnu
[opencv 0.47.0] cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
[opencv 0.47.0] cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
[opencv 0.47.0] cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-unknown-linux-gnu
[opencv 0.47.0] cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_gnu
[opencv 0.47.0] cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
[opencv 0.47.0] cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
[opencv 0.47.0] cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
[opencv 0.47.0] cargo:rerun-if-env-changed=SYSROOT
[opencv 0.47.0] cargo:rerun-if-env-changed=OPENCV4_STATIC
[opencv 0.47.0] cargo:rerun-if-env-changed=OPENCV4_DYNAMIC
[opencv 0.47.0] cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
[opencv 0.47.0] cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
[opencv 0.47.0] cargo:rerun-if-env-changed=PKG_CONFIG
[opencv 0.47.0] cargo:rerun-if-env-changed=OPENCV4_STATIC
[opencv 0.47.0] cargo:rerun-if-env-changed=OPENCV4_DYNAMIC
[opencv 0.47.0] cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
[opencv 0.47.0] cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
[opencv 0.47.0] cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-unknown-linux-gnu
[opencv 0.47.0] cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_unknown_linux_gnu
[opencv 0.47.0] cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-unknown-linux-gnu
[opencv 0.47.0] cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_unknown_linux_gnu
[opencv 0.47.0] cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
[opencv 0.47.0] cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
[opencv 0.47.0] cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-unknown-linux-gnu
[opencv 0.47.0] cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_gnu
[opencv 0.47.0] cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
[opencv 0.47.0] cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
[opencv 0.47.0] === OpenCV library configuration: Library {
[opencv 0.47.0]     include_paths: [
[opencv 0.47.0]         "/opt/opencv/include/opencv4",
[opencv 0.47.0]     ],
[opencv 0.47.0]     version: "4.5.1",
[opencv 0.47.0]     cargo_metadata: [
[opencv 0.47.0]         "cargo:rustc-link-search=/opt/opencv/lib64",
[opencv 0.47.0]         "cargo:rustc-link-search=/opt/opencv/lib64/opencv4/3rdparty",
[opencv 0.47.0]         "cargo:rustc-link-search=/tmp/build/lib",
[opencv 0.47.0]         "cargo:rustc-link-search=/lib64",
[opencv 0.47.0]         "cargo:rustc-link-lib=opencv_gapi",
[opencv 0.47.0]         "cargo:rustc-link-lib=opencv_highgui",
[opencv 0.47.0]         "cargo:rustc-link-lib=opencv_ml",
[opencv 0.47.0]         "cargo:rustc-link-lib=opencv_objdetect",
[opencv 0.47.0]         "cargo:rustc-link-lib=opencv_photo",
[opencv 0.47.0]         "cargo:rustc-link-lib=opencv_stitching",
[opencv 0.47.0]         "cargo:rustc-link-lib=opencv_video",
[opencv 0.47.0]         "cargo:rustc-link-lib=opencv_calib3d",
[opencv 0.47.0]         "cargo:rustc-link-lib=opencv_features2d",
[opencv 0.47.0]         "cargo:rustc-link-lib=opencv_dnn",
[opencv 0.47.0]         "cargo:rustc-link-lib=opencv_flann",
[opencv 0.47.0]         "cargo:rustc-link-lib=opencv_videoio",
[opencv 0.47.0]         "cargo:rustc-link-lib=opencv_imgcodecs",
[opencv 0.47.0]         "cargo:rustc-link-lib=opencv_imgproc",
[opencv 0.47.0]         "cargo:rustc-link-lib=opencv_core",
[opencv 0.47.0]         "cargo:rustc-link-lib=protobuf",
[opencv 0.47.0]         "cargo:rustc-link-lib=zlib",
[opencv 0.47.0]         "cargo:rustc-link-lib=jpeg-turbo",
[opencv 0.47.0]         "cargo:rustc-link-lib=png",
[opencv 0.47.0]         "cargo:rustc-link-lib=openjp2",
[opencv 0.47.0]         "cargo:rustc-link-lib=ade",
[opencv 0.47.0]         "cargo:rustc-link-lib=gthread-2.0",
[opencv 0.47.0]         "cargo:rustc-link-lib=glib-2.0",
[opencv 0.47.0]         "cargo:rustc-link-lib=dl",
[opencv 0.47.0]         "cargo:rustc-link-lib=m",
[opencv 0.47.0]         "cargo:rustc-link-lib=pthread",
[opencv 0.47.0]         "cargo:rustc-link-lib=rt",
[opencv 0.47.0]     ],
[opencv 0.47.0] }
[opencv 0.47.0] === Found OpenCV library version: 4.5.1 in headers located at: /rust/cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.47.0/headers/4
[opencv 0.47.0] cargo:rerun-if-env-changed=OPENCV_HEADER_DIR
[opencv 0.47.0] cargo:rerun-if-env-changed=OPENCV_PACKAGE_NAME
[opencv 0.47.0] cargo:rerun-if-env-changed=OPENCV_PKGCONFIG_NAME
[opencv 0.47.0] cargo:rerun-if-env-changed=OPENCV_CMAKE_NAME
[opencv 0.47.0] cargo:rerun-if-env-changed=OPENCV_CMAKE_BIN
[opencv 0.47.0] cargo:rerun-if-env-changed=OPENCV_VCPKG_NAME
[opencv 0.47.0] cargo:rerun-if-env-changed=OPENCV_LINK_LIBS
[opencv 0.47.0] cargo:rerun-if-env-changed=OPENCV_LINK_PATHS
[opencv 0.47.0] cargo:rerun-if-env-changed=OPENCV_INCLUDE_PATHS
[opencv 0.47.0] cargo:rerun-if-env-changed=OPENCV_DISABLE_PROBES
[opencv 0.47.0] cargo:rerun-if-env-changed=OPENCV_CLANG_STDLIB_PATH
[opencv 0.47.0] cargo:rerun-if-env-changed=OPENCV_MODULE_WHITELIST
[opencv 0.47.0] cargo:rerun-if-env-changed=OPENCV_MODULE_BLACKLIST
[opencv 0.47.0] cargo:rerun-if-env-changed=CMAKE_PREFIX_PATH
[opencv 0.47.0] cargo:rerun-if-env-changed=OpenCV_DIR
[opencv 0.47.0] cargo:rerun-if-env-changed=PKG_CONFIG_PATH
[opencv 0.47.0] cargo:rerun-if-env-changed=VCPKG_ROOT
[opencv 0.47.0] cargo:rerun-if-env-changed=VCPKGRS_DYNAMIC
[opencv 0.47.0] cargo:rerun-if-changed=/rust/cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.47.0/src_cpp/aruco.hpp
[opencv 0.47.0] cargo:rerun-if-changed=/rust/cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.47.0/src_cpp/bioinspired.hpp
[opencv 0.47.0] cargo:rerun-if-changed=/rust/cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.47.0/src_cpp/calib3d.hpp
[opencv 0.47.0] cargo:rerun-if-changed=/rust/cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.47.0/src_cpp/ccalib.hpp
[opencv 0.47.0] cargo:rerun-if-changed=/rust/cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.47.0/src_cpp/core.hpp
[opencv 0.47.0] cargo:rerun-if-changed=/rust/cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.47.0/src_cpp/dnn.hpp
[opencv 0.47.0] cargo:rerun-if-changed=/rust/cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.47.0/src_cpp/face.hpp
[opencv 0.47.0] cargo:rerun-if-changed=/rust/cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.47.0/src_cpp/gapi.hpp
[opencv 0.47.0] cargo:rerun-if-changed=/rust/cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.47.0/src_cpp/imgproc.hpp
[opencv 0.47.0] cargo:rerun-if-changed=/rust/cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.47.0/src_cpp/manual-core.cpp
[opencv 0.47.0] cargo:rerun-if-changed=/rust/cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.47.0/src_cpp/manual-dnn.cpp
[opencv 0.47.0] cargo:rerun-if-changed=/rust/cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.47.0/src_cpp/manual-features2d.cpp
[opencv 0.47.0] cargo:rerun-if-changed=/rust/cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.47.0/src_cpp/ocvrs_common.hpp
[opencv 0.47.0] cargo:rerun-if-changed=/rust/cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.47.0/src_cpp/ocvrs_resolve_types.hpp
[opencv 0.47.0] cargo:rerun-if-changed=/rust/cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.47.0/src_cpp/photo.hpp
[opencv 0.47.0] cargo:rerun-if-changed=/rust/cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.47.0/src_cpp/sfm.hpp
[opencv 0.47.0] cargo:rerun-if-changed=/rust/cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.47.0/src_cpp/videoio.hpp
[opencv 0.47.0] cargo:rerun-if-changed=/rust/cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.47.0/src_cpp/xfeatures2d.hpp
[opencv 0.47.0] TARGET = Some("x86_64-unknown-linux-gnu")
[opencv 0.47.0] OPT_LEVEL = Some("3")
[opencv 0.47.0] HOST = Some("x86_64-unknown-linux-gnu")
[opencv 0.47.0] CXX_x86_64-unknown-linux-gnu = None
[opencv 0.47.0] CXX_x86_64_unknown_linux_gnu = None
[opencv 0.47.0] HOST_CXX = None
[opencv 0.47.0] CXX = None
[opencv 0.47.0] CXXFLAGS_x86_64-unknown-linux-gnu = None
[opencv 0.47.0] CXXFLAGS_x86_64_unknown_linux_gnu = None
[opencv 0.47.0] HOST_CXXFLAGS = None
[opencv 0.47.0] CXXFLAGS = None
[opencv 0.47.0] CRATE_CC_NO_DEFAULTS = None
[opencv 0.47.0] DEBUG = Some("false")
[opencv 0.47.0] CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
[opencv 0.47.0] CXX_x86_64-unknown-linux-gnu = None
[opencv 0.47.0] CXX_x86_64_unknown_linux_gnu = None
[opencv 0.47.0] HOST_CXX = None
[opencv 0.47.0] CXX = None
[opencv 0.47.0] CXXFLAGS_x86_64-unknown-linux-gnu = None
[opencv 0.47.0] CXXFLAGS_x86_64_unknown_linux_gnu = None
[opencv 0.47.0] HOST_CXXFLAGS = None
[opencv 0.47.0] CXXFLAGS = None
[opencv 0.47.0] CRATE_CC_NO_DEFAULTS = None
[opencv 0.47.0] CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
[opencv 0.47.0] CXX_x86_64-unknown-linux-gnu = None
[opencv 0.47.0] CXX_x86_64_unknown_linux_gnu = None
[opencv 0.47.0] HOST_CXX = None
[opencv 0.47.0] CXX = None
[opencv 0.47.0] CXXFLAGS_x86_64-unknown-linux-gnu = None
[opencv 0.47.0] CXXFLAGS_x86_64_unknown_linux_gnu = None
[opencv 0.47.0] HOST_CXXFLAGS = None
[opencv 0.47.0] CXXFLAGS = None
[opencv 0.47.0] CRATE_CC_NO_DEFAULTS = None
[opencv 0.47.0] CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
[opencv 0.47.0] CXX_x86_64-unknown-linux-gnu = None
[opencv 0.47.0] CXX_x86_64_unknown_linux_gnu = None
[opencv 0.47.0] HOST_CXX = None
[opencv 0.47.0] CXX = None
[opencv 0.47.0] CXXFLAGS_x86_64-unknown-linux-gnu = None
[opencv 0.47.0] CXXFLAGS_x86_64_unknown_linux_gnu = None
[opencv 0.47.0] HOST_CXXFLAGS = None
[opencv 0.47.0] CXXFLAGS = None
[opencv 0.47.0] CRATE_CC_NO_DEFAULTS = None
[opencv 0.47.0] CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
[opencv 0.47.0] CXX_x86_64-unknown-linux-gnu = None
[opencv 0.47.0] CXX_x86_64_unknown_linux_gnu = None
[opencv 0.47.0] HOST_CXX = None
[opencv 0.47.0] CXX = None
[opencv 0.47.0] CXXFLAGS_x86_64-unknown-linux-gnu = None
[opencv 0.47.0] CXXFLAGS_x86_64_unknown_linux_gnu = None
[opencv 0.47.0] HOST_CXXFLAGS = None
[opencv 0.47.0] CXXFLAGS = None
[opencv 0.47.0] CRATE_CC_NO_DEFAULTS = None
[opencv 0.47.0] CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
[opencv 0.47.0] CXX_x86_64-unknown-linux-gnu = None
[opencv 0.47.0] CXX_x86_64_unknown_linux_gnu = None
[opencv 0.47.0] HOST_CXX = None
[opencv 0.47.0] CXX = None
[opencv 0.47.0] CXXFLAGS_x86_64-unknown-linux-gnu = None
[opencv 0.47.0] CXXFLAGS_x86_64_unknown_linux_gnu = None
[opencv 0.47.0] HOST_CXXFLAGS = None
[opencv 0.47.0] CXXFLAGS = None
[opencv 0.47.0] CRATE_CC_NO_DEFAULTS = None
[opencv 0.47.0] CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
[opencv 0.47.0] CXX_x86_64-unknown-linux-gnu = None
[opencv 0.47.0] CXX_x86_64_unknown_linux_gnu = None
[opencv 0.47.0] HOST_CXX = None
[opencv 0.47.0] CXX = None
[opencv 0.47.0] CXXFLAGS_x86_64-unknown-linux-gnu = None
[opencv 0.47.0] CXXFLAGS_x86_64_unknown_linux_gnu = None
[opencv 0.47.0] HOST_CXXFLAGS = None
[opencv 0.47.0] CXXFLAGS = None
[opencv 0.47.0] CRATE_CC_NO_DEFAULTS = None
[opencv 0.47.0] CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
[opencv 0.47.0] running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "/rust/cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.47.0/src_cpp" "-I" "/target/debug/build/opencv-dfdbb6ab21b36a53/out" "-I" "." "-I" "/opt/opencv/include/opencv4" "-Wall" "-Wextra" "-std=c++11" "-Wno-class-memaccess" "-Wno-deprecated-declarations" "-Wno-deprecated-copy" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/target/debug/build/opencv-dfdbb6ab21b36a53/out/calib3d.o" "-c" "/target/debug/build/opencv-dfdbb6ab21b36a53/out/calib3d.cpp"
[opencv 0.47.0] running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "/rust/cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.47.0/src_cpp" "-I" "/target/debug/build/opencv-dfdbb6ab21b36a53/out" "-I" "." "-I" "/opt/opencv/include/opencv4" "-Wall" "-Wextra" "-std=c++11" "-Wno-class-memaccess" "-Wno-deprecated-declarations" "-Wno-deprecated-copy" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/target/debug/build/opencv-dfdbb6ab21b36a53/out/features2d.o" "-c" "/target/debug/build/opencv-dfdbb6ab21b36a53/out/features2d.cpp"
[opencv 0.47.0] running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "/rust/cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.47.0/src_cpp" "-I" "/target/debug/build/opencv-dfdbb6ab21b36a53/out" "-I" "." "-I" "/opt/opencv/include/opencv4" "-Wall" "-Wextra" "-std=c++11" "-Wno-class-memaccess" "-Wno-deprecated-declarations" "-Wno-deprecated-copy" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/target/debug/build/opencv-dfdbb6ab21b36a53/out/dnn.o" "-c" "/target/debug/build/opencv-dfdbb6ab21b36a53/out/dnn.cpp"
[opencv 0.47.0] running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "/rust/cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.47.0/src_cpp" "-I" "/target/debug/build/opencv-dfdbb6ab21b36a53/out" "-I" "." "-I" "/opt/opencv/include/opencv4" "-Wall" "-Wextra" "-std=c++11" "-Wno-class-memaccess" "-Wno-deprecated-declarations" "-Wno-deprecated-copy" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/target/debug/build/opencv-dfdbb6ab21b36a53/out/manual-core.o" "-c" "/rust/cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.47.0/src_cpp/manual-core.cpp"
[opencv 0.47.0] running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "/rust/cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.47.0/src_cpp" "-I" "/target/debug/build/opencv-dfdbb6ab21b36a53/out" "-I" "." "-I" "/opt/opencv/include/opencv4" "-Wall" "-Wextra" "-std=c++11" "-Wno-class-memaccess" "-Wno-deprecated-declarations" "-Wno-deprecated-copy" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/target/debug/build/opencv-dfdbb6ab21b36a53/out/core.o" "-c" "/target/debug/build/opencv-dfdbb6ab21b36a53/out/core.cpp"
[opencv 0.47.0] running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "/rust/cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.47.0/src_cpp" "-I" "/target/debug/build/opencv-dfdbb6ab21b36a53/out" "-I" "." "-I" "/opt/opencv/include/opencv4" "-Wall" "-Wextra" "-std=c++11" "-Wno-class-memaccess" "-Wno-deprecated-declarations" "-Wno-deprecated-copy" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/target/debug/build/opencv-dfdbb6ab21b36a53/out/manual-dnn.o" "-c" "/rust/cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.47.0/src_cpp/manual-dnn.cpp"
[opencv 0.47.0] running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "/rust/cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.47.0/src_cpp" "-I" "/target/debug/build/opencv-dfdbb6ab21b36a53/out" "-I" "." "-I" "/opt/opencv/include/opencv4" "-Wall" "-Wextra" "-std=c++11" "-Wno-class-memaccess" "-Wno-deprecated-declarations" "-Wno-deprecated-copy" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/target/debug/build/opencv-dfdbb6ab21b36a53/out/dnn_superres.o" "-c" "/target/debug/build/opencv-dfdbb6ab21b36a53/out/dnn_superres.cpp"
[opencv 0.47.0] cargo:warning=c++: error: /target/debug/build/opencv-dfdbb6ab21b36a53/out/dnn_superres.cpp: No such file or directory
[opencv 0.47.0] cargo:warning=c++: fatal error: no input files
[opencv 0.47.0] cargo:warning=compilation terminated.
[opencv 0.47.0] cargo:warning=c++: error: /target/debug/build/opencv-dfdbb6ab21b36a53/out/dnn_superres.cpp: No such file or directory
[opencv 0.47.0] cargo:warning=c++: fatal error: no input files
[opencv 0.47.0] cargo:warning=compilation terminated.
[opencv 0.47.0] exit code: 1
[opencv 0.47.0] running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "/rust/cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.47.0/src_cpp" "-I" "/target/debug/build/opencv-dfdbb6ab21b36a53/out" "-I" "." "-I" "/opt/opencv/include/opencv4" "-Wall" "-Wextra" "-std=c++11" "-Wno-class-memaccess" "-Wno-deprecated-declarations" "-Wno-deprecated-copy" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/target/debug/build/opencv-dfdbb6ab21b36a53/out/manual-features2d.o" "-c" "/rust/cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.47.0/src_cpp/manual-features2d.cpp"
[opencv 0.47.0] exit code: 0
[opencv 0.47.0] exit code: 0
[opencv 0.47.0] exit code: 0
[opencv 0.47.0] exit code: 0
[opencv 0.47.0] exit code: 0
[opencv 0.47.0] exit code: 0
[opencv 0.47.0] exit code: 0
[opencv 0.47.0]
[opencv 0.47.0]
[opencv 0.47.0] error occurred: Command "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "/rust/cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.47.0/src_cpp" "-I" "/target/debug/build/opencv-dfdbb6ab21b36a53/out" "-I" "." "-I" "/opt/opencv/include/opencv4" "-Wall" "-Wextra" "-std=c++11" "-Wno-class-memaccess" "-Wno-deprecated-declarations" "-Wno-deprecated-copy" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/target/debug/build/opencv-dfdbb6ab21b36a53/out/dnn_superres.o" "-c" "/target/debug/build/opencv-dfdbb6ab21b36a53/out/dnn_superres.cpp" with args "c++" did not execute successfully (status code exit code: 1).
[opencv 0.47.0]
[opencv 0.47.0]
The following warnings were emitted during compilation:

warning: c++: error: /target/debug/build/opencv-dfdbb6ab21b36a53/out/dnn_superres.cpp: No such file or directory
warning: c++: fatal error: no input files
warning: compilation terminated.
warning: c++: error: /target/debug/build/opencv-dfdbb6ab21b36a53/out/dnn_superres.cpp: No such file or directory
warning: c++: fatal error: no input files
warning: compilation terminated.

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

Caused by:
  process didn't exit successfully: `/target/debug/build/opencv-e1f804b991deba20/build-script-build` (exit code: 1)
  --- stdout
  cargo:rerun-if-env-changed=OPENCV4_NO_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG
  cargo:rerun-if-env-changed=OPENCV4_STATIC
  cargo:rerun-if-env-changed=OPENCV4_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=SYSROOT
  cargo:rerun-if-env-changed=OPENCV4_STATIC
  cargo:rerun-if-env-changed=OPENCV4_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG
  cargo:rerun-if-env-changed=OPENCV4_STATIC
  cargo:rerun-if-env-changed=OPENCV4_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=OPENCV_HEADER_DIR
  cargo:rerun-if-env-changed=OPENCV_PACKAGE_NAME
  cargo:rerun-if-env-changed=OPENCV_PKGCONFIG_NAME
  cargo:rerun-if-env-changed=OPENCV_CMAKE_NAME
  cargo:rerun-if-env-changed=OPENCV_CMAKE_BIN
  cargo:rerun-if-env-changed=OPENCV_VCPKG_NAME
  cargo:rerun-if-env-changed=OPENCV_LINK_LIBS
  cargo:rerun-if-env-changed=OPENCV_LINK_PATHS
  cargo:rerun-if-env-changed=OPENCV_INCLUDE_PATHS
  cargo:rerun-if-env-changed=OPENCV_DISABLE_PROBES
  cargo:rerun-if-env-changed=OPENCV_CLANG_STDLIB_PATH
  cargo:rerun-if-env-changed=OPENCV_MODULE_WHITELIST
  cargo:rerun-if-env-changed=OPENCV_MODULE_BLACKLIST
  cargo:rerun-if-env-changed=CMAKE_PREFIX_PATH
  cargo:rerun-if-env-changed=OpenCV_DIR
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=VCPKG_ROOT
  cargo:rerun-if-env-changed=VCPKGRS_DYNAMIC
  cargo:rerun-if-changed=/rust/cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.47.0/src_cpp/aruco.hpp
  cargo:rerun-if-changed=/rust/cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.47.0/src_cpp/bioinspired.hpp
  cargo:rerun-if-changed=/rust/cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.47.0/src_cpp/calib3d.hpp
  cargo:rerun-if-changed=/rust/cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.47.0/src_cpp/ccalib.hpp
  cargo:rerun-if-changed=/rust/cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.47.0/src_cpp/core.hpp
  cargo:rerun-if-changed=/rust/cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.47.0/src_cpp/dnn.hpp
  cargo:rerun-if-changed=/rust/cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.47.0/src_cpp/face.hpp
  cargo:rerun-if-changed=/rust/cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.47.0/src_cpp/gapi.hpp
  cargo:rerun-if-changed=/rust/cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.47.0/src_cpp/imgproc.hpp
  cargo:rerun-if-changed=/rust/cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.47.0/src_cpp/manual-core.cpp
  cargo:rerun-if-changed=/rust/cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.47.0/src_cpp/manual-dnn.cpp
  cargo:rerun-if-changed=/rust/cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.47.0/src_cpp/manual-features2d.cpp
  cargo:rerun-if-changed=/rust/cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.47.0/src_cpp/ocvrs_common.hpp
  cargo:rerun-if-changed=/rust/cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.47.0/src_cpp/ocvrs_resolve_types.hpp
  cargo:rerun-if-changed=/rust/cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.47.0/src_cpp/photo.hpp
  cargo:rerun-if-changed=/rust/cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.47.0/src_cpp/sfm.hpp
  cargo:rerun-if-changed=/rust/cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.47.0/src_cpp/videoio.hpp
  cargo:rerun-if-changed=/rust/cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.47.0/src_cpp/xfeatures2d.hpp
  TARGET = Some("x86_64-unknown-linux-gnu")
  OPT_LEVEL = Some("3")
  HOST = Some("x86_64-unknown-linux-gnu")
  CXX_x86_64-unknown-linux-gnu = None
  CXX_x86_64_unknown_linux_gnu = None
  HOST_CXX = None
  CXX = None
  CXXFLAGS_x86_64-unknown-linux-gnu = None
  CXXFLAGS_x86_64_unknown_linux_gnu = None
  HOST_CXXFLAGS = None
  CXXFLAGS = None
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some("false")
  CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
  CXX_x86_64-unknown-linux-gnu = None
  CXX_x86_64_unknown_linux_gnu = None
  HOST_CXX = None
  CXX = None
  CXXFLAGS_x86_64-unknown-linux-gnu = None
  CXXFLAGS_x86_64_unknown_linux_gnu = None
  HOST_CXXFLAGS = None
  CXXFLAGS = None
  CRATE_CC_NO_DEFAULTS = None
  CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
  CXX_x86_64-unknown-linux-gnu = None
  CXX_x86_64_unknown_linux_gnu = None
  HOST_CXX = None
  CXX = None
  CXXFLAGS_x86_64-unknown-linux-gnu = None
  CXXFLAGS_x86_64_unknown_linux_gnu = None
  HOST_CXXFLAGS = None
  CXXFLAGS = None
  CRATE_CC_NO_DEFAULTS = None
  CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
  CXX_x86_64-unknown-linux-gnu = None
  CXX_x86_64_unknown_linux_gnu = None
  HOST_CXX = None
  CXX = None
  CXXFLAGS_x86_64-unknown-linux-gnu = None
  CXXFLAGS_x86_64_unknown_linux_gnu = None
  HOST_CXXFLAGS = None
  CXXFLAGS = None
  CRATE_CC_NO_DEFAULTS = None
  CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
  CXX_x86_64-unknown-linux-gnu = None
  CXX_x86_64_unknown_linux_gnu = None
  HOST_CXX = None
  CXX = None
  CXXFLAGS_x86_64-unknown-linux-gnu = None
  CXXFLAGS_x86_64_unknown_linux_gnu = None
  HOST_CXXFLAGS = None
  CXXFLAGS = None
  CRATE_CC_NO_DEFAULTS = None
  CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
  CXX_x86_64-unknown-linux-gnu = None
  CXX_x86_64_unknown_linux_gnu = None
  HOST_CXX = None
  CXX = None
  CXXFLAGS_x86_64-unknown-linux-gnu = None
  CXXFLAGS_x86_64_unknown_linux_gnu = None
  HOST_CXXFLAGS = None
  CXXFLAGS = None
  CRATE_CC_NO_DEFAULTS = None
  CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
  CXX_x86_64-unknown-linux-gnu = None
  CXX_x86_64_unknown_linux_gnu = None
  HOST_CXX = None
  CXX = None
  CXXFLAGS_x86_64-unknown-linux-gnu = None
  CXXFLAGS_x86_64_unknown_linux_gnu = None
  HOST_CXXFLAGS = None
  CXXFLAGS = None
  CRATE_CC_NO_DEFAULTS = None
  CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
  running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "/rust/cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.47.0/src_cpp" "-I" "/target/debug/build/opencv-dfdbb6ab21b36a53/out" "-I" "." "-I" "/opt/opencv/include/opencv4" "-Wall" "-Wextra" "-std=c++11" "-Wno-class-memaccess" "-Wno-deprecated-declarations" "-Wno-deprecated-copy" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/target/debug/build/opencv-dfdbb6ab21b36a53/out/calib3d.o" "-c" "/target/debug/build/opencv-dfdbb6ab21b36a53/out/calib3d.cpp"
  running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "/rust/cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.47.0/src_cpp" "-I" "/target/debug/build/opencv-dfdbb6ab21b36a53/out" "-I" "." "-I" "/opt/opencv/include/opencv4" "-Wall" "-Wextra" "-std=c++11" "-Wno-class-memaccess" "-Wno-deprecated-declarations" "-Wno-deprecated-copy" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/target/debug/build/opencv-dfdbb6ab21b36a53/out/features2d.o" "-c" "/target/debug/build/opencv-dfdbb6ab21b36a53/out/features2d.cpp"
  running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "/rust/cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.47.0/src_cpp" "-I" "/target/debug/build/opencv-dfdbb6ab21b36a53/out" "-I" "." "-I" "/opt/opencv/include/opencv4" "-Wall" "-Wextra" "-std=c++11" "-Wno-class-memaccess" "-Wno-deprecated-declarations" "-Wno-deprecated-copy" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/target/debug/build/opencv-dfdbb6ab21b36a53/out/dnn.o" "-c" "/target/debug/build/opencv-dfdbb6ab21b36a53/out/dnn.cpp"
  running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "/rust/cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.47.0/src_cpp" "-I" "/target/debug/build/opencv-dfdbb6ab21b36a53/out" "-I" "." "-I" "/opt/opencv/include/opencv4" "-Wall" "-Wextra" "-std=c++11" "-Wno-class-memaccess" "-Wno-deprecated-declarations" "-Wno-deprecated-copy" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/target/debug/build/opencv-dfdbb6ab21b36a53/out/manual-core.o" "-c" "/rust/cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.47.0/src_cpp/manual-core.cpp"
  running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "/rust/cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.47.0/src_cpp" "-I" "/target/debug/build/opencv-dfdbb6ab21b36a53/out" "-I" "." "-I" "/opt/opencv/include/opencv4" "-Wall" "-Wextra" "-std=c++11" "-Wno-class-memaccess" "-Wno-deprecated-declarations" "-Wno-deprecated-copy" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/target/debug/build/opencv-dfdbb6ab21b36a53/out/core.o" "-c" "/target/debug/build/opencv-dfdbb6ab21b36a53/out/core.cpp"
  running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "/rust/cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.47.0/src_cpp" "-I" "/target/debug/build/opencv-dfdbb6ab21b36a53/out" "-I" "." "-I" "/opt/opencv/include/opencv4" "-Wall" "-Wextra" "-std=c++11" "-Wno-class-memaccess" "-Wno-deprecated-declarations" "-Wno-deprecated-copy" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/target/debug/build/opencv-dfdbb6ab21b36a53/out/manual-dnn.o" "-c" "/rust/cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.47.0/src_cpp/manual-dnn.cpp"
  running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "/rust/cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.47.0/src_cpp" "-I" "/target/debug/build/opencv-dfdbb6ab21b36a53/out" "-I" "." "-I" "/opt/opencv/include/opencv4" "-Wall" "-Wextra" "-std=c++11" "-Wno-class-memaccess" "-Wno-deprecated-declarations" "-Wno-deprecated-copy" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/target/debug/build/opencv-dfdbb6ab21b36a53/out/dnn_superres.o" "-c" "/target/debug/build/opencv-dfdbb6ab21b36a53/out/dnn_superres.cpp"
  cargo:warning=c++: error: /target/debug/build/opencv-dfdbb6ab21b36a53/out/dnn_superres.cpp: No such file or directory
  cargo:warning=c++: fatal error: no input files
  cargo:warning=compilation terminated.
  cargo:warning=c++: error: /target/debug/build/opencv-dfdbb6ab21b36a53/out/dnn_superres.cpp: No such file or directory
  cargo:warning=c++: fatal error: no input files
  cargo:warning=compilation terminated.
  exit code: 1
  running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "/rust/cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.47.0/src_cpp" "-I" "/target/debug/build/opencv-dfdbb6ab21b36a53/out" "-I" "." "-I" "/opt/opencv/include/opencv4" "-Wall" "-Wextra" "-std=c++11" "-Wno-class-memaccess" "-Wno-deprecated-declarations" "-Wno-deprecated-copy" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/target/debug/build/opencv-dfdbb6ab21b36a53/out/manual-features2d.o" "-c" "/rust/cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.47.0/src_cpp/manual-features2d.cpp"
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0

  --- stderr
  === Crate version: Some("0.47.0")
  === Environment configuration:
  ===   OPENCV_HEADER_DIR = None
  ===   OPENCV_PACKAGE_NAME = None
  ===   OPENCV_PKGCONFIG_NAME = None
  ===   OPENCV_CMAKE_NAME = None
  ===   OPENCV_CMAKE_BIN = None
  ===   OPENCV_VCPKG_NAME = None
  ===   OPENCV_LINK_LIBS = None
  ===   OPENCV_LINK_PATHS = None
  ===   OPENCV_INCLUDE_PATHS = None
  ===   OPENCV_DISABLE_PROBES = None
  ===   OPENCV_CLANG_STDLIB_PATH = None
  ===   OPENCV_MODULE_WHITELIST = None
  ===   OPENCV_MODULE_BLACKLIST = None
  ===   CMAKE_PREFIX_PATH = None
  ===   OpenCV_DIR = None
  ===   PKG_CONFIG_PATH = None
  ===   VCPKG_ROOT = None
  ===   VCPKGRS_DYNAMIC = None
  === Enabled features:
  ===   OPENCV_4
  === 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
  === Can't probe using: environment, continuing with other methods because: Some environment variables are missing
  === Probing OpenCV library using pkg_config
  === OpenCV library configuration: Library {
      include_paths: [
          "/opt/opencv/include/opencv4",
      ],
      version: "4.5.1",
      cargo_metadata: [
          "cargo:rustc-link-search=/opt/opencv/lib64",
          "cargo:rustc-link-search=/opt/opencv/lib64/opencv4/3rdparty",
          "cargo:rustc-link-search=/tmp/build/lib",
          "cargo:rustc-link-search=/lib64",
          "cargo:rustc-link-lib=opencv_gapi",
          "cargo:rustc-link-lib=opencv_highgui",
          "cargo:rustc-link-lib=opencv_ml",
          "cargo:rustc-link-lib=opencv_objdetect",
          "cargo:rustc-link-lib=opencv_photo",
          "cargo:rustc-link-lib=opencv_stitching",
          "cargo:rustc-link-lib=opencv_video",
          "cargo:rustc-link-lib=opencv_calib3d",
          "cargo:rustc-link-lib=opencv_features2d",
          "cargo:rustc-link-lib=opencv_dnn",
          "cargo:rustc-link-lib=opencv_flann",
          "cargo:rustc-link-lib=opencv_videoio",
          "cargo:rustc-link-lib=opencv_imgcodecs",
          "cargo:rustc-link-lib=opencv_imgproc",
          "cargo:rustc-link-lib=opencv_core",
          "cargo:rustc-link-lib=protobuf",
          "cargo:rustc-link-lib=zlib",
          "cargo:rustc-link-lib=jpeg-turbo",
          "cargo:rustc-link-lib=png",
          "cargo:rustc-link-lib=openjp2",
          "cargo:rustc-link-lib=ade",
          "cargo:rustc-link-lib=gthread-2.0",
          "cargo:rustc-link-lib=glib-2.0",
          "cargo:rustc-link-lib=dl",
          "cargo:rustc-link-lib=m",
          "cargo:rustc-link-lib=pthread",
          "cargo:rustc-link-lib=rt",
      ],
  }
  === Found OpenCV library version: 4.5.1 in headers located at: /rust/cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.47.0/headers/4

  error occurred: Command "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "/rust/cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.47.0/src_cpp" "-I" "/target/debug/build/opencv-dfdbb6ab21b36a53/out" "-I" "." "-I" "/opt/opencv/include/opencv4" "-Wall" "-Wextra" "-std=c++11" "-Wno-class-memaccess" "-Wno-deprecated-declarations" "-Wno-deprecated-copy" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/target/debug/build/opencv-dfdbb6ab21b36a53/out/dnn_superres.o" "-c" "/target/debug/build/opencv-dfdbb6ab21b36a53/out/dnn_superres.cpp" with args "c++" did not execute successfully (status code exit code: 1).
twistedfall commented 3 years ago

For some reason the dnn_superres is marked as the core module for OpenCV-4, but I've checked through all OpenCV-4 versions and it doesn't seem to have ever been the one, so it's most probably a bug. Just to check, can you please try removing it from the CORE_MODULES global constant in build.rs?

As to building without the buildtime-bindgen, it proved to be not realistic in the real world. It should work as long as you're building against the exact same OpenCV version that the built-in bindings were generated from (4.5.1 at the time of writing), you're using Linux (headers are different in parts between platforms) and you have a beefy OpenCV installation (my local install is built with most features enabled to cover as more API surface as possible).

tylerhawkes commented 3 years ago

I figured that building without buildtime-bindgen is probably the root of the cause here, but after digging around a lot I couldn't find anything about dnn_superres in my opencv install or the master branch so I figured it was a bug. I tried just removing dnn_superres from the CORE_MODULES while working on that other pull request and it just fails with a bunch of other errors. I'm sure it's a simple solve, but I don't have time to fix this particular problem right now. Hopefully someone else can get it figured out.

twistedfall commented 3 years ago

Will you please post the logs you're seeing when it fails?

tylerhawkes commented 3 years ago

Here's the output I get when removing that line from build.rs

   Compiling once_cell v1.5.2
   Compiling opencv v0.47.0 (/build/dev/opencv-rust)
The following warnings were emitted during compilation:

warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/viz.cpp:2:10: fatal error: opencv2/viz.hpp: No such file or directory
warning:     2 | #include <opencv2/viz.hpp>
warning:       |          ^~~~~~~~~~~~~~~~~
warning: compilation terminated.
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/viz.cpp:2:10: fatal error: opencv2/viz.hpp: No such file or directory
warning:     2 | #include <opencv2/viz.hpp>
warning:       |          ^~~~~~~~~~~~~~~~~
warning: compilation terminated.
warning: In file included from /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:3:
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching_types.hpp:64:36: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
warning:    64 | template struct Result<cv::detail::GraphCutSeamFinderGpu*>;
warning:       |                                    ^~~~~~~~~~~~~~~~~~~~~
warning:       |                                    GraphCutSeamFinder
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching_types.hpp:64:36: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
warning:    64 | template struct Result<cv::detail::GraphCutSeamFinderGpu*>;
warning:       |                                    ^~~~~~~~~~~~~~~~~~~~~
warning:       |                                    GraphCutSeamFinder
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching_types.hpp:64:58: error: template argument 1 is invalid
warning:    64 | template struct Result<cv::detail::GraphCutSeamFinderGpu*>;
warning:       |                                                          ^
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1852:7: error: variable or field ‘cv_Detail_GraphCutSeamFinderGpu_delete’ declared void
warning:  1852 |  void cv_Detail_GraphCutSeamFinderGpu_delete(cv::detail::GraphCutSeamFinderGpu* instance) {
warning:       |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1852:58: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
warning:  1852 |  void cv_Detail_GraphCutSeamFinderGpu_delete(cv::detail::GraphCutSeamFinderGpu* instance) {
warning:       |                                                          ^~~~~~~~~~~~~~~~~~~~~
warning:       |                                                          GraphCutSeamFinder
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1852:81: error: ‘instance’ was not declared in this scope
warning:  1852 |  void cv_Detail_GraphCutSeamFinderGpu_delete(cv::detail::GraphCutSeamFinderGpu* instance) {
warning:       |                                                                                 ^~~~~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1855:21: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
warning:  1855 |  Result<cv::detail::GraphCutSeamFinderGpu*> cv_detail_GraphCutSeamFinderGpu_GraphCutSeamFinderGpu_int_float_float(int cost_type, float terminal_cost, float bad_region_penalty) {
warning:       |                     ^~~~~~~~~~~~~~~~~~~~~
warning:       |                     GraphCutSeamFinder
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1855:21: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
warning:  1855 |  Result<cv::detail::GraphCutSeamFinderGpu*> cv_detail_GraphCutSeamFinderGpu_GraphCutSeamFinderGpu_int_float_float(int cost_type, float terminal_cost, float bad_region_penalty) {
warning:       |                     ^~~~~~~~~~~~~~~~~~~~~
warning:       |                     GraphCutSeamFinder
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1855:43: error: template argument 1 is invalid
warning:  1855 |  Result<cv::detail::GraphCutSeamFinderGpu*> cv_detail_GraphCutSeamFinderGpu_GraphCutSeamFinderGpu_int_float_float(int cost_type, float terminal_cost, float bad_region_penalty) {
warning:       |                                           ^
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp: In function ‘int cv_detail_GraphCutSeamFinderGpu_GraphCutSeamFinderGpu_int_float_float(int, float, float)’:
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1857:16: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
warning:  1857 |    cv::detail::GraphCutSeamFinderGpu* ret = new cv::detail::GraphCutSeamFinderGpu(cost_type, terminal_cost, bad_region_penalty);
warning:       |                ^~~~~~~~~~~~~~~~~~~~~
warning:       |                GraphCutSeamFinder
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1857:39: error: ‘ret’ was not declared in this scope
warning:  1857 |    cv::detail::GraphCutSeamFinderGpu* ret = new cv::detail::GraphCutSeamFinderGpu(cost_type, terminal_cost, bad_region_penalty);
warning:       |                                       ^~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1857:49: error: expected type-specifier
warning:  1857 |    cv::detail::GraphCutSeamFinderGpu* ret = new cv::detail::GraphCutSeamFinderGpu(cost_type, terminal_cost, bad_region_penalty);
warning:       |                                                 ^~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1858:26: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
warning:  1858 |    return Ok<cv::detail::GraphCutSeamFinderGpu*>(ret);
warning:       |                          ^~~~~~~~~~~~~~~~~~~~~
warning:       |                          GraphCutSeamFinder
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1858:26: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
warning:  1858 |    return Ok<cv::detail::GraphCutSeamFinderGpu*>(ret);
warning:       |                          ^~~~~~~~~~~~~~~~~~~~~
warning:       |                          GraphCutSeamFinder
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1858:11: error: parse error in template argument list
warning:  1858 |    return Ok<cv::detail::GraphCutSeamFinderGpu*>(ret);
warning:       |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: In file included from /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1:
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:47: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |                                               ^~~~~~~~~~~~~~~~~~~~~
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:13: note: in definition of macro ‘CODE_CATCH’
warning:    23 |  return Err<return_type>(code, msg); \
warning:       |             ^~~~~~~~~~~
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:27:12: note: in expansion of macro ‘OCVRS_TYPE’
warning:    27 | CODE_CATCH(OCVRS_TYPE(return_type), cv::Exception& e, e.code, e.what()) \
warning:       |            ^~~~~~~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |     ^~~~~~~~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:17: note: in expansion of macro ‘OCVRS_TYPE’
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |                 ^~~~~~~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:47: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |                                               ^~~~~~~~~~~~~~~~~~~~~
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:13: note: in definition of macro ‘CODE_CATCH’
warning:    23 |  return Err<return_type>(code, msg); \
warning:       |             ^~~~~~~~~~~
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:27:12: note: in expansion of macro ‘OCVRS_TYPE’
warning:    27 | CODE_CATCH(OCVRS_TYPE(return_type), cv::Exception& e, e.code, e.what()) \
warning:       |            ^~~~~~~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |     ^~~~~~~~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:17: note: in expansion of macro ‘OCVRS_TYPE’
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |                 ^~~~~~~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:69: error: template argument 1 is invalid
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |                                                                     ^
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:13: note: in definition of macro ‘CODE_CATCH’
warning:    23 |  return Err<return_type>(code, msg); \
warning:       |             ^~~~~~~~~~~
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:27:12: note: in expansion of macro ‘OCVRS_TYPE’
warning:    27 | CODE_CATCH(OCVRS_TYPE(return_type), cv::Exception& e, e.code, e.what()) \
warning:       |            ^~~~~~~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |     ^~~~~~~~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:17: note: in expansion of macro ‘OCVRS_TYPE’
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |                 ^~~~~~~~~~
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:35: error: no matching function for call to ‘Err<<expression error> >(int&, const char*)’
warning:    23 |  return Err<return_type>(code, msg); \
warning:       |                                   ^
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:27:1: note: in expansion of macro ‘CODE_CATCH’
warning:    27 | CODE_CATCH(OCVRS_TYPE(return_type), cv::Exception& e, e.code, e.what()) \
warning:       | ^~~~~~~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |     ^~~~~~~~~~~
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:55:31: note: candidate: ‘template<class T> T Err(int, const char*)’
warning:    55 | template<typename T> inline T Err(int code, const char* msg) {
warning:       |                               ^~~
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:55:31: note:   template argument deduction/substitution failed:
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:35: error: template argument 1 is invalid
warning:    23 |  return Err<return_type>(code, msg); \
warning:       |                                   ^
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:27:1: note: in expansion of macro ‘CODE_CATCH’
warning:    27 | CODE_CATCH(OCVRS_TYPE(return_type), cv::Exception& e, e.code, e.what()) \
warning:       | ^~~~~~~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |     ^~~~~~~~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:47: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |                                               ^~~~~~~~~~~~~~~~~~~~~
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:13: note: in definition of macro ‘CODE_CATCH’
warning:    23 |  return Err<return_type>(code, msg); \
warning:       |             ^~~~~~~~~~~
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:28:12: note: in expansion of macro ‘OCVRS_TYPE’
warning:    28 | CODE_CATCH(OCVRS_TYPE(return_type), ..., -99999, "unspecified error in OpenCV guts")
warning:       |            ^~~~~~~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |     ^~~~~~~~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:17: note: in expansion of macro ‘OCVRS_TYPE’
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |                 ^~~~~~~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:47: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |                                               ^~~~~~~~~~~~~~~~~~~~~
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:13: note: in definition of macro ‘CODE_CATCH’
warning:    23 |  return Err<return_type>(code, msg); \
warning:       |             ^~~~~~~~~~~
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:28:12: note: in expansion of macro ‘OCVRS_TYPE’
warning:    28 | CODE_CATCH(OCVRS_TYPE(return_type), ..., -99999, "unspecified error in OpenCV guts")
warning:       |            ^~~~~~~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |     ^~~~~~~~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:17: note: in expansion of macro ‘OCVRS_TYPE’
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |                 ^~~~~~~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:69: error: template argument 1 is invalid
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |                                                                     ^
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:13: note: in definition of macro ‘CODE_CATCH’
warning:    23 |  return Err<return_type>(code, msg); \
warning:       |             ^~~~~~~~~~~
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:28:12: note: in expansion of macro ‘OCVRS_TYPE’
warning:    28 | CODE_CATCH(OCVRS_TYPE(return_type), ..., -99999, "unspecified error in OpenCV guts")
warning:       |            ^~~~~~~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |     ^~~~~~~~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:17: note: in expansion of macro ‘OCVRS_TYPE’
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |                 ^~~~~~~~~~
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:35: error: no matching function for call to ‘Err<<expression error> >(int, const char [33])’
warning:    23 |  return Err<return_type>(code, msg); \
warning:       |                                   ^
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:28:1: note: in expansion of macro ‘CODE_CATCH’
warning:    28 | CODE_CATCH(OCVRS_TYPE(return_type), ..., -99999, "unspecified error in OpenCV guts")
warning:       | ^~~~~~~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |     ^~~~~~~~~~~
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:55:31: note: candidate: ‘template<class T> T Err(int, const char*)’
warning:    55 | template<typename T> inline T Err(int code, const char* msg) {
warning:       |                               ^~~
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:55:31: note:   template argument deduction/substitution failed:
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:35: error: template argument 1 is invalid
warning:    23 |  return Err<return_type>(code, msg); \
warning:       |                                   ^
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:28:1: note: in expansion of macro ‘CODE_CATCH’
warning:    28 | CODE_CATCH(OCVRS_TYPE(return_type), ..., -99999, "unspecified error in OpenCV guts")
warning:       | ^~~~~~~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |     ^~~~~~~~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1855:119: warning: unused parameter ‘cost_type’ [-Wunused-parameter]
warning:  1855 |  Result<cv::detail::GraphCutSeamFinderGpu*> cv_detail_GraphCutSeamFinderGpu_GraphCutSeamFinderGpu_int_float_float(int cost_type, float terminal_cost, float bad_region_penalty) {
warning:       |                                                                                                                   ~~~~^~~~~~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1855:136: warning: unused parameter ‘terminal_cost’ [-Wunused-parameter]
warning:  1855 |  Result<cv::detail::GraphCutSeamFinderGpu*> cv_detail_GraphCutSeamFinderGpu_GraphCutSeamFinderGpu_int_float_float(int cost_type, float terminal_cost, float bad_region_penalty) {
warning:       |                                                                                                                                  ~~~~~~^~~~~~~~~~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1855:157: warning: unused parameter ‘bad_region_penalty’ [-Wunused-parameter]
warning:  1855 |  Result<cv::detail::GraphCutSeamFinderGpu*> cv_detail_GraphCutSeamFinderGpu_GraphCutSeamFinderGpu_int_float_float(int cost_type, float terminal_cost, float bad_region_penalty) {
warning:       |                                                                                                                                                       ~~~~~~^~~~~~~~~~~~~~~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp: At global scope:
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1862:118: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
warning:  1862 |  Result_void cv_detail_GraphCutSeamFinderGpu_find_const_vector_UMat_R_const_vector_Point_R_vector_UMat_R(cv::detail::GraphCutSeamFinderGpu* instance, const std::vector<cv::UMat>* src, const std::vector<cv::Point>* corners, std::vector<cv::UMat>* masks) {
warning:       |                                                                                                                      ^~~~~~~~~~~~~~~~~~~~~
warning:       |                                                                                                                      GraphCutSeamFinder
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1862:141: error: ‘instance’ was not declared in this scope
warning:  1862 |  Result_void cv_detail_GraphCutSeamFinderGpu_find_const_vector_UMat_R_const_vector_Point_R_vector_UMat_R(cv::detail::GraphCutSeamFinderGpu* instance, const std::vector<cv::UMat>* src, const std::vector<cv::Point>* corners, std::vector<cv::UMat>* masks) {
warning:       |                                                                                                                                             ^~~~~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1862:151: error: expected primary-expression before ‘const’
warning:  1862 |  Result_void cv_detail_GraphCutSeamFinderGpu_find_const_vector_UMat_R_const_vector_Point_R_vector_UMat_R(cv::detail::GraphCutSeamFinderGpu* instance, const std::vector<cv::UMat>* src, const std::vector<cv::Point>* corners, std::vector<cv::UMat>* masks) {
warning:       |                                                                                                                                                       ^~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1862:185: error: expected primary-expression before ‘const’
warning:  1862 |  Result_void cv_detail_GraphCutSeamFinderGpu_find_const_vector_UMat_R_const_vector_Point_R_vector_UMat_R(cv::detail::GraphCutSeamFinderGpu* instance, const std::vector<cv::UMat>* src, const std::vector<cv::Point>* corners, std::vector<cv::UMat>* masks) {
warning:       |                                                                                                                                                                                         ^~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1862:245: error: expected primary-expression before ‘*’ token
warning:  1862 |  Result_void cv_detail_GraphCutSeamFinderGpu_find_const_vector_UMat_R_const_vector_Point_R_vector_UMat_R(cv::detail::GraphCutSeamFinderGpu* instance, const std::vector<cv::UMat>* src, const std::vector<cv::Point>* corners, std::vector<cv::UMat>* masks) {
warning:       |                                                                                                                                                                                                                                                     ^
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1862:247: error: ‘masks’ was not declared in this scope
warning:  1862 |  Result_void cv_detail_GraphCutSeamFinderGpu_find_const_vector_UMat_R_const_vector_Point_R_vector_UMat_R(cv::detail::GraphCutSeamFinderGpu* instance, const std::vector<cv::UMat>* src, const std::vector<cv::Point>* corners, std::vector<cv::UMat>* masks) {
warning:       |                                                                                                                                                                                                                                                       ^~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1862:254: error: expected ‘,’ or ‘;’ before ‘{’ token
warning:  1862 |  Result_void cv_detail_GraphCutSeamFinderGpu_find_const_vector_UMat_R_const_vector_Point_R_vector_UMat_R(cv::detail::GraphCutSeamFinderGpu* instance, const std::vector<cv::UMat>* src, const std::vector<cv::Point>* corners, std::vector<cv::UMat>* masks) {
warning:       |                                                                                                                                                                                                                                                              ^
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1869:88: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
warning:  1869 |  Result_void cv_detail_GraphCutSeamFinderGpu_findInPair_size_t_size_t_Rect(cv::detail::GraphCutSeamFinderGpu* instance, size_t first, size_t second, cv::Rect* roi) {
warning:       |                                                                                        ^~~~~~~~~~~~~~~~~~~~~
warning:       |                                                                                        GraphCutSeamFinder
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1869:111: error: ‘instance’ was not declared in this scope
warning:  1869 |  Result_void cv_detail_GraphCutSeamFinderGpu_findInPair_size_t_size_t_Rect(cv::detail::GraphCutSeamFinderGpu* instance, size_t first, size_t second, cv::Rect* roi) {
warning:       |                                                                                                               ^~~~~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1869:128: error: expected primary-expression before ‘first’
warning:  1869 |  Result_void cv_detail_GraphCutSeamFinderGpu_findInPair_size_t_size_t_Rect(cv::detail::GraphCutSeamFinderGpu* instance, size_t first, size_t second, cv::Rect* roi) {
warning:       |                                                                                                                                ^~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1869:142: error: expected primary-expression before ‘second’
warning:  1869 |  Result_void cv_detail_GraphCutSeamFinderGpu_findInPair_size_t_size_t_Rect(cv::detail::GraphCutSeamFinderGpu* instance, size_t first, size_t second, cv::Rect* roi) {
warning:       |                                                                                                                                              ^~~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1869:158: error: expected primary-expression before ‘*’ token
warning:  1869 |  Result_void cv_detail_GraphCutSeamFinderGpu_findInPair_size_t_size_t_Rect(cv::detail::GraphCutSeamFinderGpu* instance, size_t first, size_t second, cv::Rect* roi) {
warning:       |                                                                                                                                                              ^
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1869:160: error: ‘roi’ was not declared in this scope
warning:  1869 |  Result_void cv_detail_GraphCutSeamFinderGpu_findInPair_size_t_size_t_Rect(cv::detail::GraphCutSeamFinderGpu* instance, size_t first, size_t second, cv::Rect* roi) {
warning:       |                                                                                                                                                                ^~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1869:165: error: expected ‘,’ or ‘;’ before ‘{’ token
warning:  1869 |  Result_void cv_detail_GraphCutSeamFinderGpu_findInPair_size_t_size_t_Rect(cv::detail::GraphCutSeamFinderGpu* instance, size_t first, size_t second, cv::Rect* roi) {
warning:       |                                                                                                                                                                     ^
warning: cc1plus: note: unrecognized command-line option ‘-Wno-return-type-c-linkage’ may have been intended to silence earlier diagnostics
warning: In file included from /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:3:
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching_types.hpp:64:36: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
warning:    64 | template struct Result<cv::detail::GraphCutSeamFinderGpu*>;
warning:       |                                    ^~~~~~~~~~~~~~~~~~~~~
warning:       |                                    GraphCutSeamFinder
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching_types.hpp:64:36: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
warning:    64 | template struct Result<cv::detail::GraphCutSeamFinderGpu*>;
warning:       |                                    ^~~~~~~~~~~~~~~~~~~~~
warning:       |                                    GraphCutSeamFinder
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching_types.hpp:64:58: error: template argument 1 is invalid
warning:    64 | template struct Result<cv::detail::GraphCutSeamFinderGpu*>;
warning:       |                                                          ^
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1852:7: error: variable or field ‘cv_Detail_GraphCutSeamFinderGpu_delete’ declared void
warning:  1852 |  void cv_Detail_GraphCutSeamFinderGpu_delete(cv::detail::GraphCutSeamFinderGpu* instance) {
warning:       |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1852:58: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
warning:  1852 |  void cv_Detail_GraphCutSeamFinderGpu_delete(cv::detail::GraphCutSeamFinderGpu* instance) {
warning:       |                                                          ^~~~~~~~~~~~~~~~~~~~~
warning:       |                                                          GraphCutSeamFinder
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1852:81: error: ‘instance’ was not declared in this scope
warning:  1852 |  void cv_Detail_GraphCutSeamFinderGpu_delete(cv::detail::GraphCutSeamFinderGpu* instance) {
warning:       |                                                                                 ^~~~~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1855:21: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
warning:  1855 |  Result<cv::detail::GraphCutSeamFinderGpu*> cv_detail_GraphCutSeamFinderGpu_GraphCutSeamFinderGpu_int_float_float(int cost_type, float terminal_cost, float bad_region_penalty) {
warning:       |                     ^~~~~~~~~~~~~~~~~~~~~
warning:       |                     GraphCutSeamFinder
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1855:21: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
warning:  1855 |  Result<cv::detail::GraphCutSeamFinderGpu*> cv_detail_GraphCutSeamFinderGpu_GraphCutSeamFinderGpu_int_float_float(int cost_type, float terminal_cost, float bad_region_penalty) {
warning:       |                     ^~~~~~~~~~~~~~~~~~~~~
warning:       |                     GraphCutSeamFinder
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1855:43: error: template argument 1 is invalid
warning:  1855 |  Result<cv::detail::GraphCutSeamFinderGpu*> cv_detail_GraphCutSeamFinderGpu_GraphCutSeamFinderGpu_int_float_float(int cost_type, float terminal_cost, float bad_region_penalty) {
warning:       |                                           ^
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp: In function ‘int cv_detail_GraphCutSeamFinderGpu_GraphCutSeamFinderGpu_int_float_float(int, float, float)’:
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1857:16: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
warning:  1857 |    cv::detail::GraphCutSeamFinderGpu* ret = new cv::detail::GraphCutSeamFinderGpu(cost_type, terminal_cost, bad_region_penalty);
warning:       |                ^~~~~~~~~~~~~~~~~~~~~
warning:       |                GraphCutSeamFinder
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1857:39: error: ‘ret’ was not declared in this scope
warning:  1857 |    cv::detail::GraphCutSeamFinderGpu* ret = new cv::detail::GraphCutSeamFinderGpu(cost_type, terminal_cost, bad_region_penalty);
warning:       |                                       ^~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1857:49: error: expected type-specifier
warning:  1857 |    cv::detail::GraphCutSeamFinderGpu* ret = new cv::detail::GraphCutSeamFinderGpu(cost_type, terminal_cost, bad_region_penalty);
warning:       |                                                 ^~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1858:26: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
warning:  1858 |    return Ok<cv::detail::GraphCutSeamFinderGpu*>(ret);
warning:       |                          ^~~~~~~~~~~~~~~~~~~~~
warning:       |                          GraphCutSeamFinder
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1858:26: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
warning:  1858 |    return Ok<cv::detail::GraphCutSeamFinderGpu*>(ret);
warning:       |                          ^~~~~~~~~~~~~~~~~~~~~
warning:       |                          GraphCutSeamFinder
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1858:11: error: parse error in template argument list
warning:  1858 |    return Ok<cv::detail::GraphCutSeamFinderGpu*>(ret);
warning:       |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: In file included from /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1:
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:47: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |                                               ^~~~~~~~~~~~~~~~~~~~~
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:13: note: in definition of macro ‘CODE_CATCH’
warning:    23 |  return Err<return_type>(code, msg); \
warning:       |             ^~~~~~~~~~~
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:27:12: note: in expansion of macro ‘OCVRS_TYPE’
warning:    27 | CODE_CATCH(OCVRS_TYPE(return_type), cv::Exception& e, e.code, e.what()) \
warning:       |            ^~~~~~~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |     ^~~~~~~~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:17: note: in expansion of macro ‘OCVRS_TYPE’
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |                 ^~~~~~~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:47: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |                                               ^~~~~~~~~~~~~~~~~~~~~
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:13: note: in definition of macro ‘CODE_CATCH’
warning:    23 |  return Err<return_type>(code, msg); \
warning:       |             ^~~~~~~~~~~
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:27:12: note: in expansion of macro ‘OCVRS_TYPE’
warning:    27 | CODE_CATCH(OCVRS_TYPE(return_type), cv::Exception& e, e.code, e.what()) \
warning:       |            ^~~~~~~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |     ^~~~~~~~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:17: note: in expansion of macro ‘OCVRS_TYPE’
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |                 ^~~~~~~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:69: error: template argument 1 is invalid
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |                                                                     ^
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:13: note: in definition of macro ‘CODE_CATCH’
warning:    23 |  return Err<return_type>(code, msg); \
warning:       |             ^~~~~~~~~~~
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:27:12: note: in expansion of macro ‘OCVRS_TYPE’
warning:    27 | CODE_CATCH(OCVRS_TYPE(return_type), cv::Exception& e, e.code, e.what()) \
warning:       |            ^~~~~~~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |     ^~~~~~~~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:17: note: in expansion of macro ‘OCVRS_TYPE’
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |                 ^~~~~~~~~~
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:35: error: no matching function for call to ‘Err<<expression error> >(int&, const char*)’
warning:    23 |  return Err<return_type>(code, msg); \
warning:       |                                   ^
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:27:1: note: in expansion of macro ‘CODE_CATCH’
warning:    27 | CODE_CATCH(OCVRS_TYPE(return_type), cv::Exception& e, e.code, e.what()) \
warning:       | ^~~~~~~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |     ^~~~~~~~~~~
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:55:31: note: candidate: ‘template<class T> T Err(int, const char*)’
warning:    55 | template<typename T> inline T Err(int code, const char* msg) {
warning:       |                               ^~~
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:55:31: note:   template argument deduction/substitution failed:
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:35: error: template argument 1 is invalid
warning:    23 |  return Err<return_type>(code, msg); \
warning:       |                                   ^
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:27:1: note: in expansion of macro ‘CODE_CATCH’
warning:    27 | CODE_CATCH(OCVRS_TYPE(return_type), cv::Exception& e, e.code, e.what()) \
warning:       | ^~~~~~~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |     ^~~~~~~~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:47: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |                                               ^~~~~~~~~~~~~~~~~~~~~
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:13: note: in definition of macro ‘CODE_CATCH’
warning:    23 |  return Err<return_type>(code, msg); \
warning:       |             ^~~~~~~~~~~
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:28:12: note: in expansion of macro ‘OCVRS_TYPE’
warning:    28 | CODE_CATCH(OCVRS_TYPE(return_type), ..., -99999, "unspecified error in OpenCV guts")
warning:       |            ^~~~~~~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |     ^~~~~~~~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:17: note: in expansion of macro ‘OCVRS_TYPE’
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |                 ^~~~~~~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:47: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |                                               ^~~~~~~~~~~~~~~~~~~~~
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:13: note: in definition of macro ‘CODE_CATCH’
warning:    23 |  return Err<return_type>(code, msg); \
warning:       |             ^~~~~~~~~~~
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:28:12: note: in expansion of macro ‘OCVRS_TYPE’
warning:    28 | CODE_CATCH(OCVRS_TYPE(return_type), ..., -99999, "unspecified error in OpenCV guts")
warning:       |            ^~~~~~~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |     ^~~~~~~~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:17: note: in expansion of macro ‘OCVRS_TYPE’
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |                 ^~~~~~~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:69: error: template argument 1 is invalid
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |                                                                     ^
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:13: note: in definition of macro ‘CODE_CATCH’
warning:    23 |  return Err<return_type>(code, msg); \
warning:       |             ^~~~~~~~~~~
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:28:12: note: in expansion of macro ‘OCVRS_TYPE’
warning:    28 | CODE_CATCH(OCVRS_TYPE(return_type), ..., -99999, "unspecified error in OpenCV guts")
warning:       |            ^~~~~~~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |     ^~~~~~~~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:17: note: in expansion of macro ‘OCVRS_TYPE’
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |                 ^~~~~~~~~~
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:35: error: no matching function for call to ‘Err<<expression error> >(int, const char [33])’
warning:    23 |  return Err<return_type>(code, msg); \
warning:       |                                   ^
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:28:1: note: in expansion of macro ‘CODE_CATCH’
warning:    28 | CODE_CATCH(OCVRS_TYPE(return_type), ..., -99999, "unspecified error in OpenCV guts")
warning:       | ^~~~~~~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |     ^~~~~~~~~~~
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:55:31: note: candidate: ‘template<class T> T Err(int, const char*)’
warning:    55 | template<typename T> inline T Err(int code, const char* msg) {
warning:       |                               ^~~
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:55:31: note:   template argument deduction/substitution failed:
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:35: error: template argument 1 is invalid
warning:    23 |  return Err<return_type>(code, msg); \
warning:       |                                   ^
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:28:1: note: in expansion of macro ‘CODE_CATCH’
warning:    28 | CODE_CATCH(OCVRS_TYPE(return_type), ..., -99999, "unspecified error in OpenCV guts")
warning:       | ^~~~~~~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |     ^~~~~~~~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1855:119: warning: unused parameter ‘cost_type’ [-Wunused-parameter]
warning:  1855 |  Result<cv::detail::GraphCutSeamFinderGpu*> cv_detail_GraphCutSeamFinderGpu_GraphCutSeamFinderGpu_int_float_float(int cost_type, float terminal_cost, float bad_region_penalty) {
warning:       |                                                                                                                   ~~~~^~~~~~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1855:136: warning: unused parameter ‘terminal_cost’ [-Wunused-parameter]
warning:  1855 |  Result<cv::detail::GraphCutSeamFinderGpu*> cv_detail_GraphCutSeamFinderGpu_GraphCutSeamFinderGpu_int_float_float(int cost_type, float terminal_cost, float bad_region_penalty) {
warning:       |                                                                                                                                  ~~~~~~^~~~~~~~~~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1855:157: warning: unused parameter ‘bad_region_penalty’ [-Wunused-parameter]
warning:  1855 |  Result<cv::detail::GraphCutSeamFinderGpu*> cv_detail_GraphCutSeamFinderGpu_GraphCutSeamFinderGpu_int_float_float(int cost_type, float terminal_cost, float bad_region_penalty) {
warning:       |                                                                                                                                                       ~~~~~~^~~~~~~~~~~~~~~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp: At global scope:
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1862:118: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
warning:  1862 |  Result_void cv_detail_GraphCutSeamFinderGpu_find_const_vector_UMat_R_const_vector_Point_R_vector_UMat_R(cv::detail::GraphCutSeamFinderGpu* instance, const std::vector<cv::UMat>* src, const std::vector<cv::Point>* corners, std::vector<cv::UMat>* masks) {
warning:       |                                                                                                                      ^~~~~~~~~~~~~~~~~~~~~
warning:       |                                                                                                                      GraphCutSeamFinder
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1862:141: error: ‘instance’ was not declared in this scope
warning:  1862 |  Result_void cv_detail_GraphCutSeamFinderGpu_find_const_vector_UMat_R_const_vector_Point_R_vector_UMat_R(cv::detail::GraphCutSeamFinderGpu* instance, const std::vector<cv::UMat>* src, const std::vector<cv::Point>* corners, std::vector<cv::UMat>* masks) {
warning:       |                                                                                                                                             ^~~~~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1862:151: error: expected primary-expression before ‘const’
warning:  1862 |  Result_void cv_detail_GraphCutSeamFinderGpu_find_const_vector_UMat_R_const_vector_Point_R_vector_UMat_R(cv::detail::GraphCutSeamFinderGpu* instance, const std::vector<cv::UMat>* src, const std::vector<cv::Point>* corners, std::vector<cv::UMat>* masks) {
warning:       |                                                                                                                                                       ^~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1862:185: error: expected primary-expression before ‘const’
warning:  1862 |  Result_void cv_detail_GraphCutSeamFinderGpu_find_const_vector_UMat_R_const_vector_Point_R_vector_UMat_R(cv::detail::GraphCutSeamFinderGpu* instance, const std::vector<cv::UMat>* src, const std::vector<cv::Point>* corners, std::vector<cv::UMat>* masks) {
warning:       |                                                                                                                                                                                         ^~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1862:245: error: expected primary-expression before ‘*’ token
warning:  1862 |  Result_void cv_detail_GraphCutSeamFinderGpu_find_const_vector_UMat_R_const_vector_Point_R_vector_UMat_R(cv::detail::GraphCutSeamFinderGpu* instance, const std::vector<cv::UMat>* src, const std::vector<cv::Point>* corners, std::vector<cv::UMat>* masks) {
warning:       |                                                                                                                                                                                                                                                     ^
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1862:247: error: ‘masks’ was not declared in this scope
warning:  1862 |  Result_void cv_detail_GraphCutSeamFinderGpu_find_const_vector_UMat_R_const_vector_Point_R_vector_UMat_R(cv::detail::GraphCutSeamFinderGpu* instance, const std::vector<cv::UMat>* src, const std::vector<cv::Point>* corners, std::vector<cv::UMat>* masks) {
warning:       |                                                                                                                                                                                                                                                       ^~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1862:254: error: expected ‘,’ or ‘;’ before ‘{’ token
warning:  1862 |  Result_void cv_detail_GraphCutSeamFinderGpu_find_const_vector_UMat_R_const_vector_Point_R_vector_UMat_R(cv::detail::GraphCutSeamFinderGpu* instance, const std::vector<cv::UMat>* src, const std::vector<cv::Point>* corners, std::vector<cv::UMat>* masks) {
warning:       |                                                                                                                                                                                                                                                              ^
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1869:88: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
warning:  1869 |  Result_void cv_detail_GraphCutSeamFinderGpu_findInPair_size_t_size_t_Rect(cv::detail::GraphCutSeamFinderGpu* instance, size_t first, size_t second, cv::Rect* roi) {
warning:       |                                                                                        ^~~~~~~~~~~~~~~~~~~~~
warning:       |                                                                                        GraphCutSeamFinder
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1869:111: error: ‘instance’ was not declared in this scope
warning:  1869 |  Result_void cv_detail_GraphCutSeamFinderGpu_findInPair_size_t_size_t_Rect(cv::detail::GraphCutSeamFinderGpu* instance, size_t first, size_t second, cv::Rect* roi) {
warning:       |                                                                                                               ^~~~~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1869:128: error: expected primary-expression before ‘first’
warning:  1869 |  Result_void cv_detail_GraphCutSeamFinderGpu_findInPair_size_t_size_t_Rect(cv::detail::GraphCutSeamFinderGpu* instance, size_t first, size_t second, cv::Rect* roi) {
warning:       |                                                                                                                                ^~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1869:142: error: expected primary-expression before ‘second’
warning:  1869 |  Result_void cv_detail_GraphCutSeamFinderGpu_findInPair_size_t_size_t_Rect(cv::detail::GraphCutSeamFinderGpu* instance, size_t first, size_t second, cv::Rect* roi) {
warning:       |                                                                                                                                              ^~~~~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1869:158: error: expected primary-expression before ‘*’ token
warning:  1869 |  Result_void cv_detail_GraphCutSeamFinderGpu_findInPair_size_t_size_t_Rect(cv::detail::GraphCutSeamFinderGpu* instance, size_t first, size_t second, cv::Rect* roi) {
warning:       |                                                                                                                                                              ^
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1869:160: error: ‘roi’ was not declared in this scope
warning:  1869 |  Result_void cv_detail_GraphCutSeamFinderGpu_findInPair_size_t_size_t_Rect(cv::detail::GraphCutSeamFinderGpu* instance, size_t first, size_t second, cv::Rect* roi) {
warning:       |                                                                                                                                                                ^~~
warning: /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1869:165: error: expected ‘,’ or ‘;’ before ‘{’ token
warning:  1869 |  Result_void cv_detail_GraphCutSeamFinderGpu_findInPair_size_t_size_t_Rect(cv::detail::GraphCutSeamFinderGpu* instance, size_t first, size_t second, cv::Rect* roi) {
warning:       |                                                                                                                                                                     ^
warning: cc1plus: note: unrecognized command-line option ‘-Wno-return-type-c-linkage’ may have been intended to silence earlier diagnostics

error: failed to run custom build command for `opencv v0.47.0 (/build/dev/opencv-rust)`

Caused by:
  process didn't exit successfully: `/target/debug/build/opencv-c7ef7ff91969b993/build-script-build` (exit code: 1)
  --- stdout
  cargo:rerun-if-env-changed=OPENCV4_NO_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG_ALLOW_CROSS_aarch64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_ALLOW_CROSS_aarch64_unknown_linux_gnu
  cargo:rerun-if-env-changed=TARGET_PKG_CONFIG_ALLOW_CROSS
  cargo:rerun-if-env-changed=PKG_CONFIG_ALLOW_CROSS
  cargo:rerun-if-env-changed=PKG_CONFIG
  cargo:rerun-if-env-changed=OPENCV4_STATIC
  cargo:rerun-if-env-changed=OPENCV4_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_aarch64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_aarch64_unknown_linux_gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_aarch64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_aarch64_unknown_linux_gnu
  cargo:rerun-if-env-changed=TARGET_PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_aarch64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_aarch64_unknown_linux_gnu
  cargo:rerun-if-env-changed=TARGET_PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=SYSROOT
  cargo:rerun-if-env-changed=OPENCV4_STATIC
  cargo:rerun-if-env-changed=OPENCV4_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG
  cargo:rerun-if-env-changed=OPENCV4_STATIC
  cargo:rerun-if-env-changed=OPENCV4_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_aarch64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_aarch64_unknown_linux_gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_aarch64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_aarch64_unknown_linux_gnu
  cargo:rerun-if-env-changed=TARGET_PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_aarch64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_aarch64_unknown_linux_gnu
  cargo:rerun-if-env-changed=TARGET_PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
  Modules: OnceCell(["alphamat", "aruco", "bgsegm", "bioinspired", "calib3d", "ccalib", "core", "cudaarithm", "cudabgsegm", "cudacodec", "cudafeatures2d", "cudafilters", "cudaimgproc", "cudaobjdetect", "cudaoptflow", "cudastereo", "cudawarping", "cvv", "dnn", "dnn_superres", "dpm", "face", "features2d", "flann", "freetype", "fuzzy", "hdf", "hfs", "highgui", "img_hash", "imgcodecs", "imgproc", "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", "xfeatures2d", "ximgproc", "xobjdetect", "xphoto"])
  cargo:rerun-if-env-changed=OPENCV_HEADER_DIR
  cargo:rerun-if-env-changed=OPENCV_PACKAGE_NAME
  cargo:rerun-if-env-changed=OPENCV_PKGCONFIG_NAME
  cargo:rerun-if-env-changed=OPENCV_CMAKE_NAME
  cargo:rerun-if-env-changed=OPENCV_CMAKE_BIN
  cargo:rerun-if-env-changed=OPENCV_VCPKG_NAME
  cargo:rerun-if-env-changed=OPENCV_LINK_LIBS
  cargo:rerun-if-env-changed=OPENCV_LINK_PATHS
  cargo:rerun-if-env-changed=OPENCV_INCLUDE_PATHS
  cargo:rerun-if-env-changed=OPENCV_DISABLE_PROBES
  cargo:rerun-if-env-changed=OPENCV_CLANG_STDLIB_PATH
  cargo:rerun-if-env-changed=OPENCV_MODULE_WHITELIST
  cargo:rerun-if-env-changed=OPENCV_MODULE_BLACKLIST
  cargo:rerun-if-env-changed=CMAKE_PREFIX_PATH
  cargo:rerun-if-env-changed=OpenCV_DIR
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=VCPKG_ROOT
  cargo:rerun-if-env-changed=VCPKGRS_DYNAMIC
  cargo:rerun-if-changed=/build/dev/opencv-rust/src_cpp/imgproc.hpp
  cargo:rerun-if-changed=/build/dev/opencv-rust/src_cpp/bioinspired.hpp
  cargo:rerun-if-changed=/build/dev/opencv-rust/src_cpp/ocvrs_resolve_types.hpp
  cargo:rerun-if-changed=/build/dev/opencv-rust/src_cpp/manual-features2d.cpp
  cargo:rerun-if-changed=/build/dev/opencv-rust/src_cpp/calib3d.hpp
  cargo:rerun-if-changed=/build/dev/opencv-rust/src_cpp/gapi.hpp
  cargo:rerun-if-changed=/build/dev/opencv-rust/src_cpp/face.hpp
  cargo:rerun-if-changed=/build/dev/opencv-rust/src_cpp/manual-dnn.cpp
  cargo:rerun-if-changed=/build/dev/opencv-rust/src_cpp/sfm.hpp
  cargo:rerun-if-changed=/build/dev/opencv-rust/src_cpp/xfeatures2d.hpp
  cargo:rerun-if-changed=/build/dev/opencv-rust/src_cpp/photo.hpp
  cargo:rerun-if-changed=/build/dev/opencv-rust/src_cpp/ccalib.hpp
  cargo:rerun-if-changed=/build/dev/opencv-rust/src_cpp/dnn.hpp
  cargo:rerun-if-changed=/build/dev/opencv-rust/src_cpp/videoio.hpp
  cargo:rerun-if-changed=/build/dev/opencv-rust/src_cpp/manual-core.cpp
  cargo:rerun-if-changed=/build/dev/opencv-rust/src_cpp/core.hpp
  cargo:rerun-if-changed=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp
  cargo:rerun-if-changed=/build/dev/opencv-rust/src_cpp/aruco.hpp
  cc = Build { include_directories: ["/build/dev/opencv-rust/src_cpp", "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out", ".", "/aarch64/opencv/include/opencv4"], definitions: [], objects: [], flags: ["-std=c++11"], flags_supported: ["-Wno-class-memaccess", "-Wno-deprecated-declarations", "-Wno-deprecated-copy", "-Wno-unused-variable", "-Wno-return-type-c-linkage", "-Wa,-mbig-obj"], known_flag_support_status: Mutex { data: {} }, ar_flags: [], no_default_flags: false, files: ["/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/calib3d.cpp", "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/core.cpp", "/build/dev/opencv-rust/src_cpp/manual-core.cpp", "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/dnn.cpp", "/build/dev/opencv-rust/src_cpp/manual-dnn.cpp", "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/features2d.cpp", "/build/dev/opencv-rust/src_cpp/manual-features2d.cpp", "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/flann.cpp", "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/highgui.cpp", "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/imgcodecs.cpp", "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/imgproc.cpp", "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/ml.cpp", "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/objdetect.cpp", "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/photo.cpp", "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp", "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/video.cpp", "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/videoio.cpp", "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/viz.cpp"], cpp: true, cpp_link_stdlib: None, cpp_set_stdlib: None, cuda: false, target: None, host: None, out_dir: None, opt_level: None, debug: None, force_frame_pointer: None, env: [], compiler: None, archiver: None, cargo_metadata: true, pic: None, use_plt: None, static_crt: None, shared_flag: None, static_flag: None, warnings_into_errors: false, warnings: None, extra_warnings: None, env_cache: Mutex { data: {} }, apple_sdk_root_cache: Mutex { data: {} } }
  TARGET = Some("aarch64-unknown-linux-gnu")
  OPT_LEVEL = Some("1")
  HOST = Some("x86_64-unknown-linux-gnu")
  CXX_aarch64-unknown-linux-gnu = None
  CXX_aarch64_unknown_linux_gnu = None
  TARGET_CXX = None
  CXX = None
  CROSS_COMPILE = None
  CXXFLAGS_aarch64-unknown-linux-gnu = None
  CXXFLAGS_aarch64_unknown_linux_gnu = None
  TARGET_CXXFLAGS = None
  CXXFLAGS = None
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some("true")
  CARGO_CFG_TARGET_FEATURE = None
  CXX_aarch64-unknown-linux-gnu = None
  CXX_aarch64_unknown_linux_gnu = None
  TARGET_CXX = None
  CXX = None
  CROSS_COMPILE = None
  CXXFLAGS_aarch64-unknown-linux-gnu = None
  CXXFLAGS_aarch64_unknown_linux_gnu = None
  TARGET_CXXFLAGS = None
  CXXFLAGS = None
  CRATE_CC_NO_DEFAULTS = None
  CARGO_CFG_TARGET_FEATURE = None
  CXX_aarch64-unknown-linux-gnu = None
  CXX_aarch64_unknown_linux_gnu = None
  TARGET_CXX = None
  CXX = None
  CROSS_COMPILE = None
  CXXFLAGS_aarch64-unknown-linux-gnu = None
  CXXFLAGS_aarch64_unknown_linux_gnu = None
  TARGET_CXXFLAGS = None
  CXXFLAGS = None
  CRATE_CC_NO_DEFAULTS = None
  CARGO_CFG_TARGET_FEATURE = None
  CXX_aarch64-unknown-linux-gnu = None
  CXX_aarch64_unknown_linux_gnu = None
  TARGET_CXX = None
  CXX = None
  CROSS_COMPILE = None
  CXXFLAGS_aarch64-unknown-linux-gnu = None
  CXXFLAGS_aarch64_unknown_linux_gnu = None
  TARGET_CXXFLAGS = None
  CXXFLAGS = None
  CRATE_CC_NO_DEFAULTS = None
  CARGO_CFG_TARGET_FEATURE = None
  CXX_aarch64-unknown-linux-gnu = None
  CXX_aarch64_unknown_linux_gnu = None
  TARGET_CXX = None
  CXX = None
  CROSS_COMPILE = None
  CXXFLAGS_aarch64-unknown-linux-gnu = None
  CXXFLAGS_aarch64_unknown_linux_gnu = None
  TARGET_CXXFLAGS = None
  CXXFLAGS = None
  CRATE_CC_NO_DEFAULTS = None
  CARGO_CFG_TARGET_FEATURE = None
  CXX_aarch64-unknown-linux-gnu = None
  CXX_aarch64_unknown_linux_gnu = None
  TARGET_CXX = None
  CXX = None
  CROSS_COMPILE = None
  CXXFLAGS_aarch64-unknown-linux-gnu = None
  CXXFLAGS_aarch64_unknown_linux_gnu = None
  TARGET_CXXFLAGS = None
  CXXFLAGS = None
  CRATE_CC_NO_DEFAULTS = None
  CARGO_CFG_TARGET_FEATURE = None
  CXX_aarch64-unknown-linux-gnu = None
  CXX_aarch64_unknown_linux_gnu = None
  TARGET_CXX = None
  CXX = None
  CROSS_COMPILE = None
  CXXFLAGS_aarch64-unknown-linux-gnu = None
  CXXFLAGS_aarch64_unknown_linux_gnu = None
  TARGET_CXXFLAGS = None
  CXXFLAGS = None
  CRATE_CC_NO_DEFAULTS = None
  CARGO_CFG_TARGET_FEATURE = None
  running: "aarch64-linux-gnu-g++" "-O1" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-I" "/build/dev/opencv-rust/src_cpp" "-I" "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out" "-I" "." "-I" "/aarch64/opencv/include/opencv4" "-Wall" "-Wextra" "-std=c++11" "-Wno-class-memaccess" "-Wno-deprecated-declarations" "-Wno-deprecated-copy" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/calib3d.o" "-c" "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/calib3d.cpp"
  running: "aarch64-linux-gnu-g++" "-O1" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-I" "/build/dev/opencv-rust/src_cpp" "-I" "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out" "-I" "." "-I" "/aarch64/opencv/include/opencv4" "-Wall" "-Wextra" "-std=c++11" "-Wno-class-memaccess" "-Wno-deprecated-declarations" "-Wno-deprecated-copy" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/features2d.o" "-c" "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/features2d.cpp"
  running: "aarch64-linux-gnu-g++" "-O1" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-I" "/build/dev/opencv-rust/src_cpp" "-I" "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out" "-I" "." "-I" "/aarch64/opencv/include/opencv4" "-Wall" "-Wextra" "-std=c++11" "-Wno-class-memaccess" "-Wno-deprecated-declarations" "-Wno-deprecated-copy" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/manual-core.o" "-c" "/build/dev/opencv-rust/src_cpp/manual-core.cpp"
  running: "aarch64-linux-gnu-g++" "-O1" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-I" "/build/dev/opencv-rust/src_cpp" "-I" "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out" "-I" "." "-I" "/aarch64/opencv/include/opencv4" "-Wall" "-Wextra" "-std=c++11" "-Wno-class-memaccess" "-Wno-deprecated-declarations" "-Wno-deprecated-copy" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/core.o" "-c" "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/core.cpp"
  running: "aarch64-linux-gnu-g++" "-O1" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-I" "/build/dev/opencv-rust/src_cpp" "-I" "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out" "-I" "." "-I" "/aarch64/opencv/include/opencv4" "-Wall" "-Wextra" "-std=c++11" "-Wno-class-memaccess" "-Wno-deprecated-declarations" "-Wno-deprecated-copy" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/dnn.o" "-c" "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/dnn.cpp"
  running: "aarch64-linux-gnu-g++" "-O1" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-I" "/build/dev/opencv-rust/src_cpp" "-I" "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out" "-I" "." "-I" "/aarch64/opencv/include/opencv4" "-Wall" "-Wextra" "-std=c++11" "-Wno-class-memaccess" "-Wno-deprecated-declarations" "-Wno-deprecated-copy" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/manual-dnn.o" "-c" "/build/dev/opencv-rust/src_cpp/manual-dnn.cpp"
  running: "aarch64-linux-gnu-g++" "-O1" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-I" "/build/dev/opencv-rust/src_cpp" "-I" "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out" "-I" "." "-I" "/aarch64/opencv/include/opencv4" "-Wall" "-Wextra" "-std=c++11" "-Wno-class-memaccess" "-Wno-deprecated-declarations" "-Wno-deprecated-copy" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/manual-features2d.o" "-c" "/build/dev/opencv-rust/src_cpp/manual-features2d.cpp"
  exit code: 0
  running: "aarch64-linux-gnu-g++" "-O1" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-I" "/build/dev/opencv-rust/src_cpp" "-I" "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out" "-I" "." "-I" "/aarch64/opencv/include/opencv4" "-Wall" "-Wextra" "-std=c++11" "-Wno-class-memaccess" "-Wno-deprecated-declarations" "-Wno-deprecated-copy" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/flann.o" "-c" "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/flann.cpp"
  exit code: 0
  running: "aarch64-linux-gnu-g++" "-O1" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-I" "/build/dev/opencv-rust/src_cpp" "-I" "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out" "-I" "." "-I" "/aarch64/opencv/include/opencv4" "-Wall" "-Wextra" "-std=c++11" "-Wno-class-memaccess" "-Wno-deprecated-declarations" "-Wno-deprecated-copy" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/highgui.o" "-c" "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/highgui.cpp"
  exit code: 0
  running: "aarch64-linux-gnu-g++" "-O1" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-I" "/build/dev/opencv-rust/src_cpp" "-I" "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out" "-I" "." "-I" "/aarch64/opencv/include/opencv4" "-Wall" "-Wextra" "-std=c++11" "-Wno-class-memaccess" "-Wno-deprecated-declarations" "-Wno-deprecated-copy" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/imgcodecs.o" "-c" "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/imgcodecs.cpp"
  exit code: 0
  running: "aarch64-linux-gnu-g++" "-O1" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-I" "/build/dev/opencv-rust/src_cpp" "-I" "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out" "-I" "." "-I" "/aarch64/opencv/include/opencv4" "-Wall" "-Wextra" "-std=c++11" "-Wno-class-memaccess" "-Wno-deprecated-declarations" "-Wno-deprecated-copy" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/imgproc.o" "-c" "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/imgproc.cpp"
  exit code: 0
  running: "aarch64-linux-gnu-g++" "-O1" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-I" "/build/dev/opencv-rust/src_cpp" "-I" "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out" "-I" "." "-I" "/aarch64/opencv/include/opencv4" "-Wall" "-Wextra" "-std=c++11" "-Wno-class-memaccess" "-Wno-deprecated-declarations" "-Wno-deprecated-copy" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/ml.o" "-c" "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/ml.cpp"
  exit code: 0
  running: "aarch64-linux-gnu-g++" "-O1" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-I" "/build/dev/opencv-rust/src_cpp" "-I" "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out" "-I" "." "-I" "/aarch64/opencv/include/opencv4" "-Wall" "-Wextra" "-std=c++11" "-Wno-class-memaccess" "-Wno-deprecated-declarations" "-Wno-deprecated-copy" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/objdetect.o" "-c" "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/objdetect.cpp"
  exit code: 0
  running: "aarch64-linux-gnu-g++" "-O1" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-I" "/build/dev/opencv-rust/src_cpp" "-I" "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out" "-I" "." "-I" "/aarch64/opencv/include/opencv4" "-Wall" "-Wextra" "-std=c++11" "-Wno-class-memaccess" "-Wno-deprecated-declarations" "-Wno-deprecated-copy" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/photo.o" "-c" "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/photo.cpp"
  exit code: 0
  running: "aarch64-linux-gnu-g++" "-O1" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-I" "/build/dev/opencv-rust/src_cpp" "-I" "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out" "-I" "." "-I" "/aarch64/opencv/include/opencv4" "-Wall" "-Wextra" "-std=c++11" "-Wno-class-memaccess" "-Wno-deprecated-declarations" "-Wno-deprecated-copy" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.o" "-c" "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp"
  exit code: 0
  running: "aarch64-linux-gnu-g++" "-O1" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-I" "/build/dev/opencv-rust/src_cpp" "-I" "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out" "-I" "." "-I" "/aarch64/opencv/include/opencv4" "-Wall" "-Wextra" "-std=c++11" "-Wno-class-memaccess" "-Wno-deprecated-declarations" "-Wno-deprecated-copy" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/video.o" "-c" "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/video.cpp"
  exit code: 0
  running: "aarch64-linux-gnu-g++" "-O1" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-I" "/build/dev/opencv-rust/src_cpp" "-I" "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out" "-I" "." "-I" "/aarch64/opencv/include/opencv4" "-Wall" "-Wextra" "-std=c++11" "-Wno-class-memaccess" "-Wno-deprecated-declarations" "-Wno-deprecated-copy" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/videoio.o" "-c" "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/videoio.cpp"
  exit code: 0
  running: "aarch64-linux-gnu-g++" "-O1" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-I" "/build/dev/opencv-rust/src_cpp" "-I" "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out" "-I" "." "-I" "/aarch64/opencv/include/opencv4" "-Wall" "-Wextra" "-std=c++11" "-Wno-class-memaccess" "-Wno-deprecated-declarations" "-Wno-deprecated-copy" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/viz.o" "-c" "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/viz.cpp"
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/viz.cpp:2:10: fatal error: opencv2/viz.hpp: No such file or directory
  cargo:warning=    2 | #include <opencv2/viz.hpp>
  cargo:warning=      |          ^~~~~~~~~~~~~~~~~
  cargo:warning=compilation terminated.
  exit code: 0
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/viz.cpp:2:10: fatal error: opencv2/viz.hpp: No such file or directory
  cargo:warning=    2 | #include <opencv2/viz.hpp>
  cargo:warning=      |          ^~~~~~~~~~~~~~~~~
  cargo:warning=compilation terminated.
  exit code: 1
  exit code: 0
  exit code: 0
  exit code: 0
  exit code: 0
  cargo:warning=In file included from /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:3:
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching_types.hpp:64:36: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
  cargo:warning=   64 | template struct Result<cv::detail::GraphCutSeamFinderGpu*>;
  cargo:warning=      |                                    ^~~~~~~~~~~~~~~~~~~~~
  cargo:warning=      |                                    GraphCutSeamFinder
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching_types.hpp:64:36: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
  cargo:warning=   64 | template struct Result<cv::detail::GraphCutSeamFinderGpu*>;
  cargo:warning=      |                                    ^~~~~~~~~~~~~~~~~~~~~
  cargo:warning=      |                                    GraphCutSeamFinder
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching_types.hpp:64:58: error: template argument 1 is invalid
  cargo:warning=   64 | template struct Result<cv::detail::GraphCutSeamFinderGpu*>;
  cargo:warning=      |                                                          ^
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1852:7: error: variable or field ‘cv_Detail_GraphCutSeamFinderGpu_delete’ declared void
  cargo:warning= 1852 |  void cv_Detail_GraphCutSeamFinderGpu_delete(cv::detail::GraphCutSeamFinderGpu* instance) {
  cargo:warning=      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1852:58: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
  cargo:warning= 1852 |  void cv_Detail_GraphCutSeamFinderGpu_delete(cv::detail::GraphCutSeamFinderGpu* instance) {
  cargo:warning=      |                                                          ^~~~~~~~~~~~~~~~~~~~~
  cargo:warning=      |                                                          GraphCutSeamFinder
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1852:81: error: ‘instance’ was not declared in this scope
  cargo:warning= 1852 |  void cv_Detail_GraphCutSeamFinderGpu_delete(cv::detail::GraphCutSeamFinderGpu* instance) {
  cargo:warning=      |                                                                                 ^~~~~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1855:21: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
  cargo:warning= 1855 |  Result<cv::detail::GraphCutSeamFinderGpu*> cv_detail_GraphCutSeamFinderGpu_GraphCutSeamFinderGpu_int_float_float(int cost_type, float terminal_cost, float bad_region_penalty) {
  cargo:warning=      |                     ^~~~~~~~~~~~~~~~~~~~~
  cargo:warning=      |                     GraphCutSeamFinder
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1855:21: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
  cargo:warning= 1855 |  Result<cv::detail::GraphCutSeamFinderGpu*> cv_detail_GraphCutSeamFinderGpu_GraphCutSeamFinderGpu_int_float_float(int cost_type, float terminal_cost, float bad_region_penalty) {
  cargo:warning=      |                     ^~~~~~~~~~~~~~~~~~~~~
  cargo:warning=      |                     GraphCutSeamFinder
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1855:43: error: template argument 1 is invalid
  cargo:warning= 1855 |  Result<cv::detail::GraphCutSeamFinderGpu*> cv_detail_GraphCutSeamFinderGpu_GraphCutSeamFinderGpu_int_float_float(int cost_type, float terminal_cost, float bad_region_penalty) {
  cargo:warning=      |                                           ^
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp: In function ‘int cv_detail_GraphCutSeamFinderGpu_GraphCutSeamFinderGpu_int_float_float(int, float, float)’:
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1857:16: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
  cargo:warning= 1857 |    cv::detail::GraphCutSeamFinderGpu* ret = new cv::detail::GraphCutSeamFinderGpu(cost_type, terminal_cost, bad_region_penalty);
  cargo:warning=      |                ^~~~~~~~~~~~~~~~~~~~~
  cargo:warning=      |                GraphCutSeamFinder
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1857:39: error: ‘ret’ was not declared in this scope
  cargo:warning= 1857 |    cv::detail::GraphCutSeamFinderGpu* ret = new cv::detail::GraphCutSeamFinderGpu(cost_type, terminal_cost, bad_region_penalty);
  cargo:warning=      |                                       ^~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1857:49: error: expected type-specifier
  cargo:warning= 1857 |    cv::detail::GraphCutSeamFinderGpu* ret = new cv::detail::GraphCutSeamFinderGpu(cost_type, terminal_cost, bad_region_penalty);
  cargo:warning=      |                                                 ^~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1858:26: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
  cargo:warning= 1858 |    return Ok<cv::detail::GraphCutSeamFinderGpu*>(ret);
  cargo:warning=      |                          ^~~~~~~~~~~~~~~~~~~~~
  cargo:warning=      |                          GraphCutSeamFinder
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1858:26: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
  cargo:warning= 1858 |    return Ok<cv::detail::GraphCutSeamFinderGpu*>(ret);
  cargo:warning=      |                          ^~~~~~~~~~~~~~~~~~~~~
  cargo:warning=      |                          GraphCutSeamFinder
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1858:11: error: parse error in template argument list
  cargo:warning= 1858 |    return Ok<cv::detail::GraphCutSeamFinderGpu*>(ret);
  cargo:warning=      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  cargo:warning=In file included from /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1:
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:47: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |                                               ^~~~~~~~~~~~~~~~~~~~~
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:13: note: in definition of macro ‘CODE_CATCH’
  cargo:warning=   23 |  return Err<return_type>(code, msg); \
  cargo:warning=      |             ^~~~~~~~~~~
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:27:12: note: in expansion of macro ‘OCVRS_TYPE’
  cargo:warning=   27 | CODE_CATCH(OCVRS_TYPE(return_type), cv::Exception& e, e.code, e.what()) \
  cargo:warning=      |            ^~~~~~~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |     ^~~~~~~~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:17: note: in expansion of macro ‘OCVRS_TYPE’
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |                 ^~~~~~~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:47: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |                                               ^~~~~~~~~~~~~~~~~~~~~
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:13: note: in definition of macro ‘CODE_CATCH’
  cargo:warning=   23 |  return Err<return_type>(code, msg); \
  cargo:warning=      |             ^~~~~~~~~~~
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:27:12: note: in expansion of macro ‘OCVRS_TYPE’
  cargo:warning=   27 | CODE_CATCH(OCVRS_TYPE(return_type), cv::Exception& e, e.code, e.what()) \
  cargo:warning=      |            ^~~~~~~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |     ^~~~~~~~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:17: note: in expansion of macro ‘OCVRS_TYPE’
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |                 ^~~~~~~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:69: error: template argument 1 is invalid
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |                                                                     ^
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:13: note: in definition of macro ‘CODE_CATCH’
  cargo:warning=   23 |  return Err<return_type>(code, msg); \
  cargo:warning=      |             ^~~~~~~~~~~
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:27:12: note: in expansion of macro ‘OCVRS_TYPE’
  cargo:warning=   27 | CODE_CATCH(OCVRS_TYPE(return_type), cv::Exception& e, e.code, e.what()) \
  cargo:warning=      |            ^~~~~~~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |     ^~~~~~~~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:17: note: in expansion of macro ‘OCVRS_TYPE’
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |                 ^~~~~~~~~~
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:35: error: no matching function for call to ‘Err<<expression error> >(int&, const char*)’
  cargo:warning=   23 |  return Err<return_type>(code, msg); \
  cargo:warning=      |                                   ^
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:27:1: note: in expansion of macro ‘CODE_CATCH’
  cargo:warning=   27 | CODE_CATCH(OCVRS_TYPE(return_type), cv::Exception& e, e.code, e.what()) \
  cargo:warning=      | ^~~~~~~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |     ^~~~~~~~~~~
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:55:31: note: candidate: ‘template<class T> T Err(int, const char*)’
  cargo:warning=   55 | template<typename T> inline T Err(int code, const char* msg) {
  cargo:warning=      |                               ^~~
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:55:31: note:   template argument deduction/substitution failed:
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:35: error: template argument 1 is invalid
  cargo:warning=   23 |  return Err<return_type>(code, msg); \
  cargo:warning=      |                                   ^
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:27:1: note: in expansion of macro ‘CODE_CATCH’
  cargo:warning=   27 | CODE_CATCH(OCVRS_TYPE(return_type), cv::Exception& e, e.code, e.what()) \
  cargo:warning=      | ^~~~~~~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |     ^~~~~~~~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:47: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |                                               ^~~~~~~~~~~~~~~~~~~~~
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:13: note: in definition of macro ‘CODE_CATCH’
  cargo:warning=   23 |  return Err<return_type>(code, msg); \
  cargo:warning=      |             ^~~~~~~~~~~
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:28:12: note: in expansion of macro ‘OCVRS_TYPE’
  cargo:warning=   28 | CODE_CATCH(OCVRS_TYPE(return_type), ..., -99999, "unspecified error in OpenCV guts")
  cargo:warning=      |            ^~~~~~~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |     ^~~~~~~~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:17: note: in expansion of macro ‘OCVRS_TYPE’
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |                 ^~~~~~~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:47: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |                                               ^~~~~~~~~~~~~~~~~~~~~
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:13: note: in definition of macro ‘CODE_CATCH’
  cargo:warning=   23 |  return Err<return_type>(code, msg); \
  cargo:warning=      |             ^~~~~~~~~~~
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:28:12: note: in expansion of macro ‘OCVRS_TYPE’
  cargo:warning=   28 | CODE_CATCH(OCVRS_TYPE(return_type), ..., -99999, "unspecified error in OpenCV guts")
  cargo:warning=      |            ^~~~~~~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |     ^~~~~~~~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:17: note: in expansion of macro ‘OCVRS_TYPE’
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |                 ^~~~~~~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:69: error: template argument 1 is invalid
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |                                                                     ^
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:13: note: in definition of macro ‘CODE_CATCH’
  cargo:warning=   23 |  return Err<return_type>(code, msg); \
  cargo:warning=      |             ^~~~~~~~~~~
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:28:12: note: in expansion of macro ‘OCVRS_TYPE’
  cargo:warning=   28 | CODE_CATCH(OCVRS_TYPE(return_type), ..., -99999, "unspecified error in OpenCV guts")
  cargo:warning=      |            ^~~~~~~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |     ^~~~~~~~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:17: note: in expansion of macro ‘OCVRS_TYPE’
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |                 ^~~~~~~~~~
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:35: error: no matching function for call to ‘Err<<expression error> >(int, const char [33])’
  cargo:warning=   23 |  return Err<return_type>(code, msg); \
  cargo:warning=      |                                   ^
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:28:1: note: in expansion of macro ‘CODE_CATCH’
  cargo:warning=   28 | CODE_CATCH(OCVRS_TYPE(return_type), ..., -99999, "unspecified error in OpenCV guts")
  cargo:warning=      | ^~~~~~~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |     ^~~~~~~~~~~
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:55:31: note: candidate: ‘template<class T> T Err(int, const char*)’
  cargo:warning=   55 | template<typename T> inline T Err(int code, const char* msg) {
  cargo:warning=      |                               ^~~
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:55:31: note:   template argument deduction/substitution failed:
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:35: error: template argument 1 is invalid
  cargo:warning=   23 |  return Err<return_type>(code, msg); \
  cargo:warning=      |                                   ^
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:28:1: note: in expansion of macro ‘CODE_CATCH’
  cargo:warning=   28 | CODE_CATCH(OCVRS_TYPE(return_type), ..., -99999, "unspecified error in OpenCV guts")
  cargo:warning=      | ^~~~~~~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |     ^~~~~~~~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1855:119: warning: unused parameter ‘cost_type’ [-Wunused-parameter]
  cargo:warning= 1855 |  Result<cv::detail::GraphCutSeamFinderGpu*> cv_detail_GraphCutSeamFinderGpu_GraphCutSeamFinderGpu_int_float_float(int cost_type, float terminal_cost, float bad_region_penalty) {
  cargo:warning=      |                                                                                                                   ~~~~^~~~~~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1855:136: warning: unused parameter ‘terminal_cost’ [-Wunused-parameter]
  cargo:warning= 1855 |  Result<cv::detail::GraphCutSeamFinderGpu*> cv_detail_GraphCutSeamFinderGpu_GraphCutSeamFinderGpu_int_float_float(int cost_type, float terminal_cost, float bad_region_penalty) {
  cargo:warning=      |                                                                                                                                  ~~~~~~^~~~~~~~~~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1855:157: warning: unused parameter ‘bad_region_penalty’ [-Wunused-parameter]
  cargo:warning= 1855 |  Result<cv::detail::GraphCutSeamFinderGpu*> cv_detail_GraphCutSeamFinderGpu_GraphCutSeamFinderGpu_int_float_float(int cost_type, float terminal_cost, float bad_region_penalty) {
  cargo:warning=      |                                                                                                                                                       ~~~~~~^~~~~~~~~~~~~~~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp: At global scope:
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1862:118: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
  cargo:warning= 1862 |  Result_void cv_detail_GraphCutSeamFinderGpu_find_const_vector_UMat_R_const_vector_Point_R_vector_UMat_R(cv::detail::GraphCutSeamFinderGpu* instance, const std::vector<cv::UMat>* src, const std::vector<cv::Point>* corners, std::vector<cv::UMat>* masks) {
  cargo:warning=      |                                                                                                                      ^~~~~~~~~~~~~~~~~~~~~
  cargo:warning=      |                                                                                                                      GraphCutSeamFinder
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1862:141: error: ‘instance’ was not declared in this scope
  cargo:warning= 1862 |  Result_void cv_detail_GraphCutSeamFinderGpu_find_const_vector_UMat_R_const_vector_Point_R_vector_UMat_R(cv::detail::GraphCutSeamFinderGpu* instance, const std::vector<cv::UMat>* src, const std::vector<cv::Point>* corners, std::vector<cv::UMat>* masks) {
  cargo:warning=      |                                                                                                                                             ^~~~~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1862:151: error: expected primary-expression before ‘const’
  cargo:warning= 1862 |  Result_void cv_detail_GraphCutSeamFinderGpu_find_const_vector_UMat_R_const_vector_Point_R_vector_UMat_R(cv::detail::GraphCutSeamFinderGpu* instance, const std::vector<cv::UMat>* src, const std::vector<cv::Point>* corners, std::vector<cv::UMat>* masks) {
  cargo:warning=      |                                                                                                                                                       ^~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1862:185: error: expected primary-expression before ‘const’
  cargo:warning= 1862 |  Result_void cv_detail_GraphCutSeamFinderGpu_find_const_vector_UMat_R_const_vector_Point_R_vector_UMat_R(cv::detail::GraphCutSeamFinderGpu* instance, const std::vector<cv::UMat>* src, const std::vector<cv::Point>* corners, std::vector<cv::UMat>* masks) {
  cargo:warning=      |                                                                                                                                                                                         ^~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1862:245: error: expected primary-expression before ‘*’ token
  cargo:warning= 1862 |  Result_void cv_detail_GraphCutSeamFinderGpu_find_const_vector_UMat_R_const_vector_Point_R_vector_UMat_R(cv::detail::GraphCutSeamFinderGpu* instance, const std::vector<cv::UMat>* src, const std::vector<cv::Point>* corners, std::vector<cv::UMat>* masks) {
  cargo:warning=      |                                                                                                                                                                                                                                                     ^
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1862:247: error: ‘masks’ was not declared in this scope
  cargo:warning= 1862 |  Result_void cv_detail_GraphCutSeamFinderGpu_find_const_vector_UMat_R_const_vector_Point_R_vector_UMat_R(cv::detail::GraphCutSeamFinderGpu* instance, const std::vector<cv::UMat>* src, const std::vector<cv::Point>* corners, std::vector<cv::UMat>* masks) {
  cargo:warning=      |                                                                                                                                                                                                                                                       ^~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1862:254: error: expected ‘,’ or ‘;’ before ‘{’ token
  cargo:warning= 1862 |  Result_void cv_detail_GraphCutSeamFinderGpu_find_const_vector_UMat_R_const_vector_Point_R_vector_UMat_R(cv::detail::GraphCutSeamFinderGpu* instance, const std::vector<cv::UMat>* src, const std::vector<cv::Point>* corners, std::vector<cv::UMat>* masks) {
  cargo:warning=      |                                                                                                                                                                                                                                                              ^
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1869:88: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
  cargo:warning= 1869 |  Result_void cv_detail_GraphCutSeamFinderGpu_findInPair_size_t_size_t_Rect(cv::detail::GraphCutSeamFinderGpu* instance, size_t first, size_t second, cv::Rect* roi) {
  cargo:warning=      |                                                                                        ^~~~~~~~~~~~~~~~~~~~~
  cargo:warning=      |                                                                                        GraphCutSeamFinder
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1869:111: error: ‘instance’ was not declared in this scope
  cargo:warning= 1869 |  Result_void cv_detail_GraphCutSeamFinderGpu_findInPair_size_t_size_t_Rect(cv::detail::GraphCutSeamFinderGpu* instance, size_t first, size_t second, cv::Rect* roi) {
  cargo:warning=      |                                                                                                               ^~~~~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1869:128: error: expected primary-expression before ‘first’
  cargo:warning= 1869 |  Result_void cv_detail_GraphCutSeamFinderGpu_findInPair_size_t_size_t_Rect(cv::detail::GraphCutSeamFinderGpu* instance, size_t first, size_t second, cv::Rect* roi) {
  cargo:warning=      |                                                                                                                                ^~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1869:142: error: expected primary-expression before ‘second’
  cargo:warning= 1869 |  Result_void cv_detail_GraphCutSeamFinderGpu_findInPair_size_t_size_t_Rect(cv::detail::GraphCutSeamFinderGpu* instance, size_t first, size_t second, cv::Rect* roi) {
  cargo:warning=      |                                                                                                                                              ^~~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1869:158: error: expected primary-expression before ‘*’ token
  cargo:warning= 1869 |  Result_void cv_detail_GraphCutSeamFinderGpu_findInPair_size_t_size_t_Rect(cv::detail::GraphCutSeamFinderGpu* instance, size_t first, size_t second, cv::Rect* roi) {
  cargo:warning=      |                                                                                                                                                              ^
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1869:160: error: ‘roi’ was not declared in this scope
  cargo:warning= 1869 |  Result_void cv_detail_GraphCutSeamFinderGpu_findInPair_size_t_size_t_Rect(cv::detail::GraphCutSeamFinderGpu* instance, size_t first, size_t second, cv::Rect* roi) {
  cargo:warning=      |                                                                                                                                                                ^~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1869:165: error: expected ‘,’ or ‘;’ before ‘{’ token
  cargo:warning= 1869 |  Result_void cv_detail_GraphCutSeamFinderGpu_findInPair_size_t_size_t_Rect(cv::detail::GraphCutSeamFinderGpu* instance, size_t first, size_t second, cv::Rect* roi) {
  cargo:warning=      |                                                                                                                                                                     ^
  cargo:warning=cc1plus: note: unrecognized command-line option ‘-Wno-return-type-c-linkage’ may have been intended to silence earlier diagnostics
  cargo:warning=In file included from /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:3:
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching_types.hpp:64:36: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
  cargo:warning=   64 | template struct Result<cv::detail::GraphCutSeamFinderGpu*>;
  cargo:warning=      |                                    ^~~~~~~~~~~~~~~~~~~~~
  cargo:warning=      |                                    GraphCutSeamFinder
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching_types.hpp:64:36: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
  cargo:warning=   64 | template struct Result<cv::detail::GraphCutSeamFinderGpu*>;
  cargo:warning=      |                                    ^~~~~~~~~~~~~~~~~~~~~
  cargo:warning=      |                                    GraphCutSeamFinder
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching_types.hpp:64:58: error: template argument 1 is invalid
  cargo:warning=   64 | template struct Result<cv::detail::GraphCutSeamFinderGpu*>;
  cargo:warning=      |                                                          ^
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1852:7: error: variable or field ‘cv_Detail_GraphCutSeamFinderGpu_delete’ declared void
  cargo:warning= 1852 |  void cv_Detail_GraphCutSeamFinderGpu_delete(cv::detail::GraphCutSeamFinderGpu* instance) {
  cargo:warning=      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1852:58: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
  cargo:warning= 1852 |  void cv_Detail_GraphCutSeamFinderGpu_delete(cv::detail::GraphCutSeamFinderGpu* instance) {
  cargo:warning=      |                                                          ^~~~~~~~~~~~~~~~~~~~~
  cargo:warning=      |                                                          GraphCutSeamFinder
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1852:81: error: ‘instance’ was not declared in this scope
  cargo:warning= 1852 |  void cv_Detail_GraphCutSeamFinderGpu_delete(cv::detail::GraphCutSeamFinderGpu* instance) {
  cargo:warning=      |                                                                                 ^~~~~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1855:21: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
  cargo:warning= 1855 |  Result<cv::detail::GraphCutSeamFinderGpu*> cv_detail_GraphCutSeamFinderGpu_GraphCutSeamFinderGpu_int_float_float(int cost_type, float terminal_cost, float bad_region_penalty) {
  cargo:warning=      |                     ^~~~~~~~~~~~~~~~~~~~~
  cargo:warning=      |                     GraphCutSeamFinder
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1855:21: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
  cargo:warning= 1855 |  Result<cv::detail::GraphCutSeamFinderGpu*> cv_detail_GraphCutSeamFinderGpu_GraphCutSeamFinderGpu_int_float_float(int cost_type, float terminal_cost, float bad_region_penalty) {
  cargo:warning=      |                     ^~~~~~~~~~~~~~~~~~~~~
  cargo:warning=      |                     GraphCutSeamFinder
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1855:43: error: template argument 1 is invalid
  cargo:warning= 1855 |  Result<cv::detail::GraphCutSeamFinderGpu*> cv_detail_GraphCutSeamFinderGpu_GraphCutSeamFinderGpu_int_float_float(int cost_type, float terminal_cost, float bad_region_penalty) {
  cargo:warning=      |                                           ^
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp: In function ‘int cv_detail_GraphCutSeamFinderGpu_GraphCutSeamFinderGpu_int_float_float(int, float, float)’:
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1857:16: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
  cargo:warning= 1857 |    cv::detail::GraphCutSeamFinderGpu* ret = new cv::detail::GraphCutSeamFinderGpu(cost_type, terminal_cost, bad_region_penalty);
  cargo:warning=      |                ^~~~~~~~~~~~~~~~~~~~~
  cargo:warning=      |                GraphCutSeamFinder
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1857:39: error: ‘ret’ was not declared in this scope
  cargo:warning= 1857 |    cv::detail::GraphCutSeamFinderGpu* ret = new cv::detail::GraphCutSeamFinderGpu(cost_type, terminal_cost, bad_region_penalty);
  cargo:warning=      |                                       ^~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1857:49: error: expected type-specifier
  cargo:warning= 1857 |    cv::detail::GraphCutSeamFinderGpu* ret = new cv::detail::GraphCutSeamFinderGpu(cost_type, terminal_cost, bad_region_penalty);
  cargo:warning=      |                                                 ^~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1858:26: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
  cargo:warning= 1858 |    return Ok<cv::detail::GraphCutSeamFinderGpu*>(ret);
  cargo:warning=      |                          ^~~~~~~~~~~~~~~~~~~~~
  cargo:warning=      |                          GraphCutSeamFinder
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1858:26: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
  cargo:warning= 1858 |    return Ok<cv::detail::GraphCutSeamFinderGpu*>(ret);
  cargo:warning=      |                          ^~~~~~~~~~~~~~~~~~~~~
  cargo:warning=      |                          GraphCutSeamFinder
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1858:11: error: parse error in template argument list
  cargo:warning= 1858 |    return Ok<cv::detail::GraphCutSeamFinderGpu*>(ret);
  cargo:warning=      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  cargo:warning=In file included from /target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1:
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:47: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |                                               ^~~~~~~~~~~~~~~~~~~~~
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:13: note: in definition of macro ‘CODE_CATCH’
  cargo:warning=   23 |  return Err<return_type>(code, msg); \
  cargo:warning=      |             ^~~~~~~~~~~
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:27:12: note: in expansion of macro ‘OCVRS_TYPE’
  cargo:warning=   27 | CODE_CATCH(OCVRS_TYPE(return_type), cv::Exception& e, e.code, e.what()) \
  cargo:warning=      |            ^~~~~~~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |     ^~~~~~~~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:17: note: in expansion of macro ‘OCVRS_TYPE’
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |                 ^~~~~~~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:47: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |                                               ^~~~~~~~~~~~~~~~~~~~~
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:13: note: in definition of macro ‘CODE_CATCH’
  cargo:warning=   23 |  return Err<return_type>(code, msg); \
  cargo:warning=      |             ^~~~~~~~~~~
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:27:12: note: in expansion of macro ‘OCVRS_TYPE’
  cargo:warning=   27 | CODE_CATCH(OCVRS_TYPE(return_type), cv::Exception& e, e.code, e.what()) \
  cargo:warning=      |            ^~~~~~~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |     ^~~~~~~~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:17: note: in expansion of macro ‘OCVRS_TYPE’
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |                 ^~~~~~~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:69: error: template argument 1 is invalid
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |                                                                     ^
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:13: note: in definition of macro ‘CODE_CATCH’
  cargo:warning=   23 |  return Err<return_type>(code, msg); \
  cargo:warning=      |             ^~~~~~~~~~~
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:27:12: note: in expansion of macro ‘OCVRS_TYPE’
  cargo:warning=   27 | CODE_CATCH(OCVRS_TYPE(return_type), cv::Exception& e, e.code, e.what()) \
  cargo:warning=      |            ^~~~~~~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |     ^~~~~~~~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:17: note: in expansion of macro ‘OCVRS_TYPE’
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |                 ^~~~~~~~~~
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:35: error: no matching function for call to ‘Err<<expression error> >(int&, const char*)’
  cargo:warning=   23 |  return Err<return_type>(code, msg); \
  cargo:warning=      |                                   ^
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:27:1: note: in expansion of macro ‘CODE_CATCH’
  cargo:warning=   27 | CODE_CATCH(OCVRS_TYPE(return_type), cv::Exception& e, e.code, e.what()) \
  cargo:warning=      | ^~~~~~~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |     ^~~~~~~~~~~
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:55:31: note: candidate: ‘template<class T> T Err(int, const char*)’
  cargo:warning=   55 | template<typename T> inline T Err(int code, const char* msg) {
  cargo:warning=      |                               ^~~
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:55:31: note:   template argument deduction/substitution failed:
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:35: error: template argument 1 is invalid
  cargo:warning=   23 |  return Err<return_type>(code, msg); \
  cargo:warning=      |                                   ^
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:27:1: note: in expansion of macro ‘CODE_CATCH’
  cargo:warning=   27 | CODE_CATCH(OCVRS_TYPE(return_type), cv::Exception& e, e.code, e.what()) \
  cargo:warning=      | ^~~~~~~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |     ^~~~~~~~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:47: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |                                               ^~~~~~~~~~~~~~~~~~~~~
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:13: note: in definition of macro ‘CODE_CATCH’
  cargo:warning=   23 |  return Err<return_type>(code, msg); \
  cargo:warning=      |             ^~~~~~~~~~~
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:28:12: note: in expansion of macro ‘OCVRS_TYPE’
  cargo:warning=   28 | CODE_CATCH(OCVRS_TYPE(return_type), ..., -99999, "unspecified error in OpenCV guts")
  cargo:warning=      |            ^~~~~~~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |     ^~~~~~~~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:17: note: in expansion of macro ‘OCVRS_TYPE’
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |                 ^~~~~~~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:47: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |                                               ^~~~~~~~~~~~~~~~~~~~~
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:13: note: in definition of macro ‘CODE_CATCH’
  cargo:warning=   23 |  return Err<return_type>(code, msg); \
  cargo:warning=      |             ^~~~~~~~~~~
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:28:12: note: in expansion of macro ‘OCVRS_TYPE’
  cargo:warning=   28 | CODE_CATCH(OCVRS_TYPE(return_type), ..., -99999, "unspecified error in OpenCV guts")
  cargo:warning=      |            ^~~~~~~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |     ^~~~~~~~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:17: note: in expansion of macro ‘OCVRS_TYPE’
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |                 ^~~~~~~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:69: error: template argument 1 is invalid
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |                                                                     ^
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:13: note: in definition of macro ‘CODE_CATCH’
  cargo:warning=   23 |  return Err<return_type>(code, msg); \
  cargo:warning=      |             ^~~~~~~~~~~
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:28:12: note: in expansion of macro ‘OCVRS_TYPE’
  cargo:warning=   28 | CODE_CATCH(OCVRS_TYPE(return_type), ..., -99999, "unspecified error in OpenCV guts")
  cargo:warning=      |            ^~~~~~~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |     ^~~~~~~~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:17: note: in expansion of macro ‘OCVRS_TYPE’
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |                 ^~~~~~~~~~
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:35: error: no matching function for call to ‘Err<<expression error> >(int, const char [33])’
  cargo:warning=   23 |  return Err<return_type>(code, msg); \
  cargo:warning=      |                                   ^
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:28:1: note: in expansion of macro ‘CODE_CATCH’
  cargo:warning=   28 | CODE_CATCH(OCVRS_TYPE(return_type), ..., -99999, "unspecified error in OpenCV guts")
  cargo:warning=      | ^~~~~~~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |     ^~~~~~~~~~~
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:55:31: note: candidate: ‘template<class T> T Err(int, const char*)’
  cargo:warning=   55 | template<typename T> inline T Err(int code, const char* msg) {
  cargo:warning=      |                               ^~~
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:55:31: note:   template argument deduction/substitution failed:
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:35: error: template argument 1 is invalid
  cargo:warning=   23 |  return Err<return_type>(code, msg); \
  cargo:warning=      |                                   ^
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:28:1: note: in expansion of macro ‘CODE_CATCH’
  cargo:warning=   28 | CODE_CATCH(OCVRS_TYPE(return_type), ..., -99999, "unspecified error in OpenCV guts")
  cargo:warning=      | ^~~~~~~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |     ^~~~~~~~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1855:119: warning: unused parameter ‘cost_type’ [-Wunused-parameter]
  cargo:warning= 1855 |  Result<cv::detail::GraphCutSeamFinderGpu*> cv_detail_GraphCutSeamFinderGpu_GraphCutSeamFinderGpu_int_float_float(int cost_type, float terminal_cost, float bad_region_penalty) {
  cargo:warning=      |                                                                                                                   ~~~~^~~~~~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1855:136: warning: unused parameter ‘terminal_cost’ [-Wunused-parameter]
  cargo:warning= 1855 |  Result<cv::detail::GraphCutSeamFinderGpu*> cv_detail_GraphCutSeamFinderGpu_GraphCutSeamFinderGpu_int_float_float(int cost_type, float terminal_cost, float bad_region_penalty) {
  cargo:warning=      |                                                                                                                                  ~~~~~~^~~~~~~~~~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1855:157: warning: unused parameter ‘bad_region_penalty’ [-Wunused-parameter]
  cargo:warning= 1855 |  Result<cv::detail::GraphCutSeamFinderGpu*> cv_detail_GraphCutSeamFinderGpu_GraphCutSeamFinderGpu_int_float_float(int cost_type, float terminal_cost, float bad_region_penalty) {
  cargo:warning=      |                                                                                                                                                       ~~~~~~^~~~~~~~~~~~~~~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp: At global scope:
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1862:118: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
  cargo:warning= 1862 |  Result_void cv_detail_GraphCutSeamFinderGpu_find_const_vector_UMat_R_const_vector_Point_R_vector_UMat_R(cv::detail::GraphCutSeamFinderGpu* instance, const std::vector<cv::UMat>* src, const std::vector<cv::Point>* corners, std::vector<cv::UMat>* masks) {
  cargo:warning=      |                                                                                                                      ^~~~~~~~~~~~~~~~~~~~~
  cargo:warning=      |                                                                                                                      GraphCutSeamFinder
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1862:141: error: ‘instance’ was not declared in this scope
  cargo:warning= 1862 |  Result_void cv_detail_GraphCutSeamFinderGpu_find_const_vector_UMat_R_const_vector_Point_R_vector_UMat_R(cv::detail::GraphCutSeamFinderGpu* instance, const std::vector<cv::UMat>* src, const std::vector<cv::Point>* corners, std::vector<cv::UMat>* masks) {
  cargo:warning=      |                                                                                                                                             ^~~~~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1862:151: error: expected primary-expression before ‘const’
  cargo:warning= 1862 |  Result_void cv_detail_GraphCutSeamFinderGpu_find_const_vector_UMat_R_const_vector_Point_R_vector_UMat_R(cv::detail::GraphCutSeamFinderGpu* instance, const std::vector<cv::UMat>* src, const std::vector<cv::Point>* corners, std::vector<cv::UMat>* masks) {
  cargo:warning=      |                                                                                                                                                       ^~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1862:185: error: expected primary-expression before ‘const’
  cargo:warning= 1862 |  Result_void cv_detail_GraphCutSeamFinderGpu_find_const_vector_UMat_R_const_vector_Point_R_vector_UMat_R(cv::detail::GraphCutSeamFinderGpu* instance, const std::vector<cv::UMat>* src, const std::vector<cv::Point>* corners, std::vector<cv::UMat>* masks) {
  cargo:warning=      |                                                                                                                                                                                         ^~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1862:245: error: expected primary-expression before ‘*’ token
  cargo:warning= 1862 |  Result_void cv_detail_GraphCutSeamFinderGpu_find_const_vector_UMat_R_const_vector_Point_R_vector_UMat_R(cv::detail::GraphCutSeamFinderGpu* instance, const std::vector<cv::UMat>* src, const std::vector<cv::Point>* corners, std::vector<cv::UMat>* masks) {
  cargo:warning=      |                                                                                                                                                                                                                                                     ^
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1862:247: error: ‘masks’ was not declared in this scope
  cargo:warning= 1862 |  Result_void cv_detail_GraphCutSeamFinderGpu_find_const_vector_UMat_R_const_vector_Point_R_vector_UMat_R(cv::detail::GraphCutSeamFinderGpu* instance, const std::vector<cv::UMat>* src, const std::vector<cv::Point>* corners, std::vector<cv::UMat>* masks) {
  cargo:warning=      |                                                                                                                                                                                                                                                       ^~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1862:254: error: expected ‘,’ or ‘;’ before ‘{’ token
  cargo:warning= 1862 |  Result_void cv_detail_GraphCutSeamFinderGpu_find_const_vector_UMat_R_const_vector_Point_R_vector_UMat_R(cv::detail::GraphCutSeamFinderGpu* instance, const std::vector<cv::UMat>* src, const std::vector<cv::Point>* corners, std::vector<cv::UMat>* masks) {
  cargo:warning=      |                                                                                                                                                                                                                                                              ^
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1869:88: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
  cargo:warning= 1869 |  Result_void cv_detail_GraphCutSeamFinderGpu_findInPair_size_t_size_t_Rect(cv::detail::GraphCutSeamFinderGpu* instance, size_t first, size_t second, cv::Rect* roi) {
  cargo:warning=      |                                                                                        ^~~~~~~~~~~~~~~~~~~~~
  cargo:warning=      |                                                                                        GraphCutSeamFinder
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1869:111: error: ‘instance’ was not declared in this scope
  cargo:warning= 1869 |  Result_void cv_detail_GraphCutSeamFinderGpu_findInPair_size_t_size_t_Rect(cv::detail::GraphCutSeamFinderGpu* instance, size_t first, size_t second, cv::Rect* roi) {
  cargo:warning=      |                                                                                                               ^~~~~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1869:128: error: expected primary-expression before ‘first’
  cargo:warning= 1869 |  Result_void cv_detail_GraphCutSeamFinderGpu_findInPair_size_t_size_t_Rect(cv::detail::GraphCutSeamFinderGpu* instance, size_t first, size_t second, cv::Rect* roi) {
  cargo:warning=      |                                                                                                                                ^~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1869:142: error: expected primary-expression before ‘second’
  cargo:warning= 1869 |  Result_void cv_detail_GraphCutSeamFinderGpu_findInPair_size_t_size_t_Rect(cv::detail::GraphCutSeamFinderGpu* instance, size_t first, size_t second, cv::Rect* roi) {
  cargo:warning=      |                                                                                                                                              ^~~~~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1869:158: error: expected primary-expression before ‘*’ token
  cargo:warning= 1869 |  Result_void cv_detail_GraphCutSeamFinderGpu_findInPair_size_t_size_t_Rect(cv::detail::GraphCutSeamFinderGpu* instance, size_t first, size_t second, cv::Rect* roi) {
  cargo:warning=      |                                                                                                                                                              ^
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1869:160: error: ‘roi’ was not declared in this scope
  cargo:warning= 1869 |  Result_void cv_detail_GraphCutSeamFinderGpu_findInPair_size_t_size_t_Rect(cv::detail::GraphCutSeamFinderGpu* instance, size_t first, size_t second, cv::Rect* roi) {
  cargo:warning=      |                                                                                                                                                                ^~~
  cargo:warning=/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp:1869:165: error: expected ‘,’ or ‘;’ before ‘{’ token
  cargo:warning= 1869 |  Result_void cv_detail_GraphCutSeamFinderGpu_findInPair_size_t_size_t_Rect(cv::detail::GraphCutSeamFinderGpu* instance, size_t first, size_t second, cv::Rect* roi) {
  cargo:warning=      |                                                                                                                                                                     ^
  cargo:warning=cc1plus: note: unrecognized command-line option ‘-Wno-return-type-c-linkage’ may have been intended to silence earlier diagnostics
  exit code: 1

  --- stderr
  === Crate version: Some("0.47.0")
  === Environment configuration:
  ===   OPENCV_HEADER_DIR = None
  ===   OPENCV_PACKAGE_NAME = None
  ===   OPENCV_PKGCONFIG_NAME = None
  ===   OPENCV_CMAKE_NAME = None
  ===   OPENCV_CMAKE_BIN = None
  ===   OPENCV_VCPKG_NAME = None
  ===   OPENCV_LINK_LIBS = None
  ===   OPENCV_LINK_PATHS = None
  ===   OPENCV_INCLUDE_PATHS = None
  ===   OPENCV_DISABLE_PROBES = None
  ===   OPENCV_CLANG_STDLIB_PATH = None
  ===   OPENCV_MODULE_WHITELIST = None
  ===   OPENCV_MODULE_BLACKLIST = None
  ===   CMAKE_PREFIX_PATH = None
  ===   OpenCV_DIR = None
  ===   PKG_CONFIG_PATH = None
  ===   VCPKG_ROOT = None
  ===   VCPKGRS_DYNAMIC = None
  === Enabled features:
  ===   OPENCV_4
  === 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
  === Can't probe using: environment, continuing with other methods because: Some environment variables are missing
  === Probing OpenCV library using pkg_config
  === OpenCV library configuration: Library {
      include_paths: [
          "/aarch64/opencv/include/opencv4",
      ],
      version: "4.5.1",
      cargo_metadata: [
          "cargo:rustc-link-search=/aarch64/opencv/lib",
          "cargo:rustc-link-search=/aarch64/opencv/lib/opencv4/3rdparty",
          "cargo:rustc-link-search=/tmp/build/lib",
          "cargo:rustc-link-lib=opencv_gapi",
          "cargo:rustc-link-lib=opencv_highgui",
          "cargo:rustc-link-lib=opencv_ml",
          "cargo:rustc-link-lib=opencv_objdetect",
          "cargo:rustc-link-lib=opencv_photo",
          "cargo:rustc-link-lib=opencv_stitching",
          "cargo:rustc-link-lib=opencv_video",
          "cargo:rustc-link-lib=opencv_calib3d",
          "cargo:rustc-link-lib=opencv_features2d",
          "cargo:rustc-link-lib=opencv_dnn",
          "cargo:rustc-link-lib=opencv_flann",
          "cargo:rustc-link-lib=opencv_videoio",
          "cargo:rustc-link-lib=opencv_imgcodecs",
          "cargo:rustc-link-lib=opencv_imgproc",
          "cargo:rustc-link-lib=opencv_core",
          "cargo:rustc-link-lib=protobuf",
          "cargo:rustc-link-lib=zlib",
          "cargo:rustc-link-lib=jpeg-turbo",
          "cargo:rustc-link-lib=png",
          "cargo:rustc-link-lib=openjp2",
          "cargo:rustc-link-lib=tegra_hal",
          "cargo:rustc-link-lib=ade",
          "cargo:rustc-link-lib=dl",
          "cargo:rustc-link-lib=m",
          "cargo:rustc-link-lib=pthread",
          "cargo:rustc-link-lib=rt",
      ],
  }
  === Found OpenCV library version: 4.5.1 in headers located at: /build/dev/opencv-rust/headers/4

  error occurred: Command "aarch64-linux-gnu-g++" "-O1" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-I" "/build/dev/opencv-rust/src_cpp" "-I" "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out" "-I" "." "-I" "/aarch64/opencv/include/opencv4" "-Wall" "-Wextra" "-std=c++11" "-Wno-class-memaccess" "-Wno-deprecated-declarations" "-Wno-deprecated-copy" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.o" "-c" "/target/aarch64-unknown-linux-gnu/debug/build/opencv-e9573fc013811495/out/stitching.cpp" with args "aarch64-linux-gnu-g++" did not execute successfully (status code exit code: 1).
tylerhawkes commented 3 years ago

Here's the output when not cross-compiling. It looks very similar.

cargo build --no-default-features --features opencv-4 --target x86_64-unknown-linux-gnu
   Compiling libc v0.2.82
   Compiling num-traits v0.2.14
   Compiling opencv v0.47.0 (/build/dev/opencv-rust)
The following warnings were emitted during compilation:

warning: In file included from /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:3:
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching_types.hpp:64:36: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
warning:    64 | template struct Result<cv::detail::GraphCutSeamFinderGpu*>;
warning:       |                                    ^~~~~~~~~~~~~~~~~~~~~
warning:       |                                    GraphCutSeamFinder
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching_types.hpp:64:36: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
warning:    64 | template struct Result<cv::detail::GraphCutSeamFinderGpu*>;
warning:       |                                    ^~~~~~~~~~~~~~~~~~~~~
warning:       |                                    GraphCutSeamFinder
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching_types.hpp:64:58: error: template argument 1 is invalid
warning:    64 | template struct Result<cv::detail::GraphCutSeamFinderGpu*>;
warning:       |                                                          ^
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1852:7: error: variable or field ‘cv_Detail_GraphCutSeamFinderGpu_delete’ declared void
warning:  1852 |  void cv_Detail_GraphCutSeamFinderGpu_delete(cv::detail::GraphCutSeamFinderGpu* instance) {
warning:       |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1852:58: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
warning:  1852 |  void cv_Detail_GraphCutSeamFinderGpu_delete(cv::detail::GraphCutSeamFinderGpu* instance) {
warning:       |                                                          ^~~~~~~~~~~~~~~~~~~~~
warning:       |                                                          GraphCutSeamFinder
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1852:81: error: ‘instance’ was not declared in this scope
warning:  1852 |  void cv_Detail_GraphCutSeamFinderGpu_delete(cv::detail::GraphCutSeamFinderGpu* instance) {
warning:       |                                                                                 ^~~~~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1855:21: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
warning:  1855 |  Result<cv::detail::GraphCutSeamFinderGpu*> cv_detail_GraphCutSeamFinderGpu_GraphCutSeamFinderGpu_int_float_float(int cost_type, float terminal_cost, float bad_region_penalty) {
warning:       |                     ^~~~~~~~~~~~~~~~~~~~~
warning:       |                     GraphCutSeamFinder
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1855:21: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
warning:  1855 |  Result<cv::detail::GraphCutSeamFinderGpu*> cv_detail_GraphCutSeamFinderGpu_GraphCutSeamFinderGpu_int_float_float(int cost_type, float terminal_cost, float bad_region_penalty) {
warning:       |                     ^~~~~~~~~~~~~~~~~~~~~
warning:       |                     GraphCutSeamFinder
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1855:43: error: template argument 1 is invalid
warning:  1855 |  Result<cv::detail::GraphCutSeamFinderGpu*> cv_detail_GraphCutSeamFinderGpu_GraphCutSeamFinderGpu_int_float_float(int cost_type, float terminal_cost, float bad_region_penalty) {
warning:       |                                           ^
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp: In function ‘int cv_detail_GraphCutSeamFinderGpu_GraphCutSeamFinderGpu_int_float_float(int, float, float)’:
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1857:16: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
warning:  1857 |    cv::detail::GraphCutSeamFinderGpu* ret = new cv::detail::GraphCutSeamFinderGpu(cost_type, terminal_cost, bad_region_penalty);
warning:       |                ^~~~~~~~~~~~~~~~~~~~~
warning:       |                GraphCutSeamFinder
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1857:39: error: ‘ret’ was not declared in this scope
warning:  1857 |    cv::detail::GraphCutSeamFinderGpu* ret = new cv::detail::GraphCutSeamFinderGpu(cost_type, terminal_cost, bad_region_penalty);
warning:       |                                       ^~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1857:49: error: expected type-specifier
warning:  1857 |    cv::detail::GraphCutSeamFinderGpu* ret = new cv::detail::GraphCutSeamFinderGpu(cost_type, terminal_cost, bad_region_penalty);
warning:       |                                                 ^~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1858:26: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
warning:  1858 |    return Ok<cv::detail::GraphCutSeamFinderGpu*>(ret);
warning:       |                          ^~~~~~~~~~~~~~~~~~~~~
warning:       |                          GraphCutSeamFinder
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1858:26: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
warning:  1858 |    return Ok<cv::detail::GraphCutSeamFinderGpu*>(ret);
warning:       |                          ^~~~~~~~~~~~~~~~~~~~~
warning:       |                          GraphCutSeamFinder
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1858:11: error: parse error in template argument list
warning:  1858 |    return Ok<cv::detail::GraphCutSeamFinderGpu*>(ret);
warning:       |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: In file included from /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1:
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:47: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |                                               ^~~~~~~~~~~~~~~~~~~~~
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:13: note: in definition of macro ‘CODE_CATCH’
warning:    23 |  return Err<return_type>(code, msg); \
warning:       |             ^~~~~~~~~~~
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:27:12: note: in expansion of macro ‘OCVRS_TYPE’
warning:    27 | CODE_CATCH(OCVRS_TYPE(return_type), cv::Exception& e, e.code, e.what()) \
warning:       |            ^~~~~~~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |     ^~~~~~~~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:17: note: in expansion of macro ‘OCVRS_TYPE’
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |                 ^~~~~~~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:47: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |                                               ^~~~~~~~~~~~~~~~~~~~~
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:13: note: in definition of macro ‘CODE_CATCH’
warning:    23 |  return Err<return_type>(code, msg); \
warning:       |             ^~~~~~~~~~~
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:27:12: note: in expansion of macro ‘OCVRS_TYPE’
warning:    27 | CODE_CATCH(OCVRS_TYPE(return_type), cv::Exception& e, e.code, e.what()) \
warning:       |            ^~~~~~~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |     ^~~~~~~~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:17: note: in expansion of macro ‘OCVRS_TYPE’
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |                 ^~~~~~~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:69: error: template argument 1 is invalid
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |                                                                     ^
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:13: note: in definition of macro ‘CODE_CATCH’
warning:    23 |  return Err<return_type>(code, msg); \
warning:       |             ^~~~~~~~~~~
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:27:12: note: in expansion of macro ‘OCVRS_TYPE’
warning:    27 | CODE_CATCH(OCVRS_TYPE(return_type), cv::Exception& e, e.code, e.what()) \
warning:       |            ^~~~~~~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |     ^~~~~~~~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:17: note: in expansion of macro ‘OCVRS_TYPE’
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |                 ^~~~~~~~~~
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:35: error: no matching function for call to ‘Err<<expression error> >(int&, const char*)’
warning:    23 |  return Err<return_type>(code, msg); \
warning:       |                                   ^
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:27:1: note: in expansion of macro ‘CODE_CATCH’
warning:    27 | CODE_CATCH(OCVRS_TYPE(return_type), cv::Exception& e, e.code, e.what()) \
warning:       | ^~~~~~~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |     ^~~~~~~~~~~
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:55:31: note: candidate: ‘template<class T> T Err(int, const char*)’
warning:    55 | template<typename T> inline T Err(int code, const char* msg) {
warning:       |                               ^~~
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:55:31: note:   template argument deduction/substitution failed:
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:35: error: template argument 1 is invalid
warning:    23 |  return Err<return_type>(code, msg); \
warning:       |                                   ^
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:27:1: note: in expansion of macro ‘CODE_CATCH’
warning:    27 | CODE_CATCH(OCVRS_TYPE(return_type), cv::Exception& e, e.code, e.what()) \
warning:       | ^~~~~~~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |     ^~~~~~~~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:47: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |                                               ^~~~~~~~~~~~~~~~~~~~~
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:13: note: in definition of macro ‘CODE_CATCH’
warning:    23 |  return Err<return_type>(code, msg); \
warning:       |             ^~~~~~~~~~~
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:28:12: note: in expansion of macro ‘OCVRS_TYPE’
warning:    28 | CODE_CATCH(OCVRS_TYPE(return_type), ..., -99999, "unspecified error in OpenCV guts")
warning:       |            ^~~~~~~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |     ^~~~~~~~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:17: note: in expansion of macro ‘OCVRS_TYPE’
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |                 ^~~~~~~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:47: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |                                               ^~~~~~~~~~~~~~~~~~~~~
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:13: note: in definition of macro ‘CODE_CATCH’
warning:    23 |  return Err<return_type>(code, msg); \
warning:       |             ^~~~~~~~~~~
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:28:12: note: in expansion of macro ‘OCVRS_TYPE’
warning:    28 | CODE_CATCH(OCVRS_TYPE(return_type), ..., -99999, "unspecified error in OpenCV guts")
warning:       |            ^~~~~~~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |     ^~~~~~~~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:17: note: in expansion of macro ‘OCVRS_TYPE’
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |                 ^~~~~~~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:69: error: template argument 1 is invalid
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |                                                                     ^
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:13: note: in definition of macro ‘CODE_CATCH’
warning:    23 |  return Err<return_type>(code, msg); \
warning:       |             ^~~~~~~~~~~
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:28:12: note: in expansion of macro ‘OCVRS_TYPE’
warning:    28 | CODE_CATCH(OCVRS_TYPE(return_type), ..., -99999, "unspecified error in OpenCV guts")
warning:       |            ^~~~~~~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |     ^~~~~~~~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:17: note: in expansion of macro ‘OCVRS_TYPE’
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |                 ^~~~~~~~~~
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:35: error: no matching function for call to ‘Err<<expression error> >(int, const char [33])’
warning:    23 |  return Err<return_type>(code, msg); \
warning:       |                                   ^
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:28:1: note: in expansion of macro ‘CODE_CATCH’
warning:    28 | CODE_CATCH(OCVRS_TYPE(return_type), ..., -99999, "unspecified error in OpenCV guts")
warning:       | ^~~~~~~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |     ^~~~~~~~~~~
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:55:31: note: candidate: ‘template<class T> T Err(int, const char*)’
warning:    55 | template<typename T> inline T Err(int code, const char* msg) {
warning:       |                               ^~~
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:55:31: note:   template argument deduction/substitution failed:
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:35: error: template argument 1 is invalid
warning:    23 |  return Err<return_type>(code, msg); \
warning:       |                                   ^
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:28:1: note: in expansion of macro ‘CODE_CATCH’
warning:    28 | CODE_CATCH(OCVRS_TYPE(return_type), ..., -99999, "unspecified error in OpenCV guts")
warning:       | ^~~~~~~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |     ^~~~~~~~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1855:119: warning: unused parameter ‘cost_type’ [-Wunused-parameter]
warning:  1855 |  Result<cv::detail::GraphCutSeamFinderGpu*> cv_detail_GraphCutSeamFinderGpu_GraphCutSeamFinderGpu_int_float_float(int cost_type, float terminal_cost, float bad_region_penalty) {
warning:       |                                                                                                                   ~~~~^~~~~~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1855:136: warning: unused parameter ‘terminal_cost’ [-Wunused-parameter]
warning:  1855 |  Result<cv::detail::GraphCutSeamFinderGpu*> cv_detail_GraphCutSeamFinderGpu_GraphCutSeamFinderGpu_int_float_float(int cost_type, float terminal_cost, float bad_region_penalty) {
warning:       |                                                                                                                                  ~~~~~~^~~~~~~~~~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1855:157: warning: unused parameter ‘bad_region_penalty’ [-Wunused-parameter]
warning:  1855 |  Result<cv::detail::GraphCutSeamFinderGpu*> cv_detail_GraphCutSeamFinderGpu_GraphCutSeamFinderGpu_int_float_float(int cost_type, float terminal_cost, float bad_region_penalty) {
warning:       |                                                                                                                                                       ~~~~~~^~~~~~~~~~~~~~~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp: At global scope:
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1862:118: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
warning:  1862 |  Result_void cv_detail_GraphCutSeamFinderGpu_find_const_vector_UMat_R_const_vector_Point_R_vector_UMat_R(cv::detail::GraphCutSeamFinderGpu* instance, const std::vector<cv::UMat>* src, const std::vector<cv::Point>* corners, std::vector<cv::UMat>* masks) {
warning:       |                                                                                                                      ^~~~~~~~~~~~~~~~~~~~~
warning:       |                                                                                                                      GraphCutSeamFinder
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1862:141: error: ‘instance’ was not declared in this scope
warning:  1862 |  Result_void cv_detail_GraphCutSeamFinderGpu_find_const_vector_UMat_R_const_vector_Point_R_vector_UMat_R(cv::detail::GraphCutSeamFinderGpu* instance, const std::vector<cv::UMat>* src, const std::vector<cv::Point>* corners, std::vector<cv::UMat>* masks) {
warning:       |                                                                                                                                             ^~~~~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1862:151: error: expected primary-expression before ‘const’
warning:  1862 |  Result_void cv_detail_GraphCutSeamFinderGpu_find_const_vector_UMat_R_const_vector_Point_R_vector_UMat_R(cv::detail::GraphCutSeamFinderGpu* instance, const std::vector<cv::UMat>* src, const std::vector<cv::Point>* corners, std::vector<cv::UMat>* masks) {
warning:       |                                                                                                                                                       ^~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1862:185: error: expected primary-expression before ‘const’
warning:  1862 |  Result_void cv_detail_GraphCutSeamFinderGpu_find_const_vector_UMat_R_const_vector_Point_R_vector_UMat_R(cv::detail::GraphCutSeamFinderGpu* instance, const std::vector<cv::UMat>* src, const std::vector<cv::Point>* corners, std::vector<cv::UMat>* masks) {
warning:       |                                                                                                                                                                                         ^~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1862:245: error: expected primary-expression before ‘*’ token
warning:  1862 |  Result_void cv_detail_GraphCutSeamFinderGpu_find_const_vector_UMat_R_const_vector_Point_R_vector_UMat_R(cv::detail::GraphCutSeamFinderGpu* instance, const std::vector<cv::UMat>* src, const std::vector<cv::Point>* corners, std::vector<cv::UMat>* masks) {
warning:       |                                                                                                                                                                                                                                                     ^
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1862:247: error: ‘masks’ was not declared in this scope
warning:  1862 |  Result_void cv_detail_GraphCutSeamFinderGpu_find_const_vector_UMat_R_const_vector_Point_R_vector_UMat_R(cv::detail::GraphCutSeamFinderGpu* instance, const std::vector<cv::UMat>* src, const std::vector<cv::Point>* corners, std::vector<cv::UMat>* masks) {
warning:       |                                                                                                                                                                                                                                                       ^~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1862:254: error: expected ‘,’ or ‘;’ before ‘{’ token
warning:  1862 |  Result_void cv_detail_GraphCutSeamFinderGpu_find_const_vector_UMat_R_const_vector_Point_R_vector_UMat_R(cv::detail::GraphCutSeamFinderGpu* instance, const std::vector<cv::UMat>* src, const std::vector<cv::Point>* corners, std::vector<cv::UMat>* masks) {
warning:       |                                                                                                                                                                                                                                                              ^
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1869:88: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
warning:  1869 |  Result_void cv_detail_GraphCutSeamFinderGpu_findInPair_size_t_size_t_Rect(cv::detail::GraphCutSeamFinderGpu* instance, size_t first, size_t second, cv::Rect* roi) {
warning:       |                                                                                        ^~~~~~~~~~~~~~~~~~~~~
warning:       |                                                                                        GraphCutSeamFinder
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1869:111: error: ‘instance’ was not declared in this scope
warning:  1869 |  Result_void cv_detail_GraphCutSeamFinderGpu_findInPair_size_t_size_t_Rect(cv::detail::GraphCutSeamFinderGpu* instance, size_t first, size_t second, cv::Rect* roi) {
warning:       |                                                                                                               ^~~~~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1869:128: error: expected primary-expression before ‘first’
warning:  1869 |  Result_void cv_detail_GraphCutSeamFinderGpu_findInPair_size_t_size_t_Rect(cv::detail::GraphCutSeamFinderGpu* instance, size_t first, size_t second, cv::Rect* roi) {
warning:       |                                                                                                                                ^~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1869:142: error: expected primary-expression before ‘second’
warning:  1869 |  Result_void cv_detail_GraphCutSeamFinderGpu_findInPair_size_t_size_t_Rect(cv::detail::GraphCutSeamFinderGpu* instance, size_t first, size_t second, cv::Rect* roi) {
warning:       |                                                                                                                                              ^~~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1869:158: error: expected primary-expression before ‘*’ token
warning:  1869 |  Result_void cv_detail_GraphCutSeamFinderGpu_findInPair_size_t_size_t_Rect(cv::detail::GraphCutSeamFinderGpu* instance, size_t first, size_t second, cv::Rect* roi) {
warning:       |                                                                                                                                                              ^
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1869:160: error: ‘roi’ was not declared in this scope
warning:  1869 |  Result_void cv_detail_GraphCutSeamFinderGpu_findInPair_size_t_size_t_Rect(cv::detail::GraphCutSeamFinderGpu* instance, size_t first, size_t second, cv::Rect* roi) {
warning:       |                                                                                                                                                                ^~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1869:165: error: expected ‘,’ or ‘;’ before ‘{’ token
warning:  1869 |  Result_void cv_detail_GraphCutSeamFinderGpu_findInPair_size_t_size_t_Rect(cv::detail::GraphCutSeamFinderGpu* instance, size_t first, size_t second, cv::Rect* roi) {
warning:       |                                                                                                                                                                     ^
warning: cc1plus: note: unrecognized command-line option ‘-Wno-return-type-c-linkage’ may have been intended to silence earlier diagnostics
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/viz.cpp:2:10: fatal error: opencv2/viz.hpp: No such file or directory
warning:     2 | #include <opencv2/viz.hpp>
warning:       |          ^~~~~~~~~~~~~~~~~
warning: compilation terminated.
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/viz.cpp:2:10: fatal error: opencv2/viz.hpp: No such file or directory
warning:     2 | #include <opencv2/viz.hpp>
warning:       |          ^~~~~~~~~~~~~~~~~
warning: compilation terminated.
warning: In file included from /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:3:
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching_types.hpp:64:36: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
warning:    64 | template struct Result<cv::detail::GraphCutSeamFinderGpu*>;
warning:       |                                    ^~~~~~~~~~~~~~~~~~~~~
warning:       |                                    GraphCutSeamFinder
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching_types.hpp:64:36: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
warning:    64 | template struct Result<cv::detail::GraphCutSeamFinderGpu*>;
warning:       |                                    ^~~~~~~~~~~~~~~~~~~~~
warning:       |                                    GraphCutSeamFinder
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching_types.hpp:64:58: error: template argument 1 is invalid
warning:    64 | template struct Result<cv::detail::GraphCutSeamFinderGpu*>;
warning:       |                                                          ^
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1852:7: error: variable or field ‘cv_Detail_GraphCutSeamFinderGpu_delete’ declared void
warning:  1852 |  void cv_Detail_GraphCutSeamFinderGpu_delete(cv::detail::GraphCutSeamFinderGpu* instance) {
warning:       |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1852:58: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
warning:  1852 |  void cv_Detail_GraphCutSeamFinderGpu_delete(cv::detail::GraphCutSeamFinderGpu* instance) {
warning:       |                                                          ^~~~~~~~~~~~~~~~~~~~~
warning:       |                                                          GraphCutSeamFinder
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1852:81: error: ‘instance’ was not declared in this scope
warning:  1852 |  void cv_Detail_GraphCutSeamFinderGpu_delete(cv::detail::GraphCutSeamFinderGpu* instance) {
warning:       |                                                                                 ^~~~~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1855:21: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
warning:  1855 |  Result<cv::detail::GraphCutSeamFinderGpu*> cv_detail_GraphCutSeamFinderGpu_GraphCutSeamFinderGpu_int_float_float(int cost_type, float terminal_cost, float bad_region_penalty) {
warning:       |                     ^~~~~~~~~~~~~~~~~~~~~
warning:       |                     GraphCutSeamFinder
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1855:21: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
warning:  1855 |  Result<cv::detail::GraphCutSeamFinderGpu*> cv_detail_GraphCutSeamFinderGpu_GraphCutSeamFinderGpu_int_float_float(int cost_type, float terminal_cost, float bad_region_penalty) {
warning:       |                     ^~~~~~~~~~~~~~~~~~~~~
warning:       |                     GraphCutSeamFinder
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1855:43: error: template argument 1 is invalid
warning:  1855 |  Result<cv::detail::GraphCutSeamFinderGpu*> cv_detail_GraphCutSeamFinderGpu_GraphCutSeamFinderGpu_int_float_float(int cost_type, float terminal_cost, float bad_region_penalty) {
warning:       |                                           ^
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp: In function ‘int cv_detail_GraphCutSeamFinderGpu_GraphCutSeamFinderGpu_int_float_float(int, float, float)’:
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1857:16: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
warning:  1857 |    cv::detail::GraphCutSeamFinderGpu* ret = new cv::detail::GraphCutSeamFinderGpu(cost_type, terminal_cost, bad_region_penalty);
warning:       |                ^~~~~~~~~~~~~~~~~~~~~
warning:       |                GraphCutSeamFinder
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1857:39: error: ‘ret’ was not declared in this scope
warning:  1857 |    cv::detail::GraphCutSeamFinderGpu* ret = new cv::detail::GraphCutSeamFinderGpu(cost_type, terminal_cost, bad_region_penalty);
warning:       |                                       ^~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1857:49: error: expected type-specifier
warning:  1857 |    cv::detail::GraphCutSeamFinderGpu* ret = new cv::detail::GraphCutSeamFinderGpu(cost_type, terminal_cost, bad_region_penalty);
warning:       |                                                 ^~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1858:26: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
warning:  1858 |    return Ok<cv::detail::GraphCutSeamFinderGpu*>(ret);
warning:       |                          ^~~~~~~~~~~~~~~~~~~~~
warning:       |                          GraphCutSeamFinder
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1858:26: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
warning:  1858 |    return Ok<cv::detail::GraphCutSeamFinderGpu*>(ret);
warning:       |                          ^~~~~~~~~~~~~~~~~~~~~
warning:       |                          GraphCutSeamFinder
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1858:11: error: parse error in template argument list
warning:  1858 |    return Ok<cv::detail::GraphCutSeamFinderGpu*>(ret);
warning:       |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: In file included from /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1:
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:47: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |                                               ^~~~~~~~~~~~~~~~~~~~~
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:13: note: in definition of macro ‘CODE_CATCH’
warning:    23 |  return Err<return_type>(code, msg); \
warning:       |             ^~~~~~~~~~~
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:27:12: note: in expansion of macro ‘OCVRS_TYPE’
warning:    27 | CODE_CATCH(OCVRS_TYPE(return_type), cv::Exception& e, e.code, e.what()) \
warning:       |            ^~~~~~~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |     ^~~~~~~~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:17: note: in expansion of macro ‘OCVRS_TYPE’
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |                 ^~~~~~~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:47: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |                                               ^~~~~~~~~~~~~~~~~~~~~
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:13: note: in definition of macro ‘CODE_CATCH’
warning:    23 |  return Err<return_type>(code, msg); \
warning:       |             ^~~~~~~~~~~
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:27:12: note: in expansion of macro ‘OCVRS_TYPE’
warning:    27 | CODE_CATCH(OCVRS_TYPE(return_type), cv::Exception& e, e.code, e.what()) \
warning:       |            ^~~~~~~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |     ^~~~~~~~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:17: note: in expansion of macro ‘OCVRS_TYPE’
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |                 ^~~~~~~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:69: error: template argument 1 is invalid
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |                                                                     ^
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:13: note: in definition of macro ‘CODE_CATCH’
warning:    23 |  return Err<return_type>(code, msg); \
warning:       |             ^~~~~~~~~~~
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:27:12: note: in expansion of macro ‘OCVRS_TYPE’
warning:    27 | CODE_CATCH(OCVRS_TYPE(return_type), cv::Exception& e, e.code, e.what()) \
warning:       |            ^~~~~~~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |     ^~~~~~~~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:17: note: in expansion of macro ‘OCVRS_TYPE’
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |                 ^~~~~~~~~~
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:35: error: no matching function for call to ‘Err<<expression error> >(int&, const char*)’
warning:    23 |  return Err<return_type>(code, msg); \
warning:       |                                   ^
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:27:1: note: in expansion of macro ‘CODE_CATCH’
warning:    27 | CODE_CATCH(OCVRS_TYPE(return_type), cv::Exception& e, e.code, e.what()) \
warning:       | ^~~~~~~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |     ^~~~~~~~~~~
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:55:31: note: candidate: ‘template<class T> T Err(int, const char*)’
warning:    55 | template<typename T> inline T Err(int code, const char* msg) {
warning:       |                               ^~~
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:55:31: note:   template argument deduction/substitution failed:
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:35: error: template argument 1 is invalid
warning:    23 |  return Err<return_type>(code, msg); \
warning:       |                                   ^
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:27:1: note: in expansion of macro ‘CODE_CATCH’
warning:    27 | CODE_CATCH(OCVRS_TYPE(return_type), cv::Exception& e, e.code, e.what()) \
warning:       | ^~~~~~~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |     ^~~~~~~~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:47: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |                                               ^~~~~~~~~~~~~~~~~~~~~
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:13: note: in definition of macro ‘CODE_CATCH’
warning:    23 |  return Err<return_type>(code, msg); \
warning:       |             ^~~~~~~~~~~
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:28:12: note: in expansion of macro ‘OCVRS_TYPE’
warning:    28 | CODE_CATCH(OCVRS_TYPE(return_type), ..., -99999, "unspecified error in OpenCV guts")
warning:       |            ^~~~~~~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |     ^~~~~~~~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:17: note: in expansion of macro ‘OCVRS_TYPE’
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |                 ^~~~~~~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:47: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |                                               ^~~~~~~~~~~~~~~~~~~~~
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:13: note: in definition of macro ‘CODE_CATCH’
warning:    23 |  return Err<return_type>(code, msg); \
warning:       |             ^~~~~~~~~~~
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:28:12: note: in expansion of macro ‘OCVRS_TYPE’
warning:    28 | CODE_CATCH(OCVRS_TYPE(return_type), ..., -99999, "unspecified error in OpenCV guts")
warning:       |            ^~~~~~~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |     ^~~~~~~~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:17: note: in expansion of macro ‘OCVRS_TYPE’
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |                 ^~~~~~~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:69: error: template argument 1 is invalid
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |                                                                     ^
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:13: note: in definition of macro ‘CODE_CATCH’
warning:    23 |  return Err<return_type>(code, msg); \
warning:       |             ^~~~~~~~~~~
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:28:12: note: in expansion of macro ‘OCVRS_TYPE’
warning:    28 | CODE_CATCH(OCVRS_TYPE(return_type), ..., -99999, "unspecified error in OpenCV guts")
warning:       |            ^~~~~~~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |     ^~~~~~~~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:17: note: in expansion of macro ‘OCVRS_TYPE’
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |                 ^~~~~~~~~~
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:35: error: no matching function for call to ‘Err<<expression error> >(int, const char [33])’
warning:    23 |  return Err<return_type>(code, msg); \
warning:       |                                   ^
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:28:1: note: in expansion of macro ‘CODE_CATCH’
warning:    28 | CODE_CATCH(OCVRS_TYPE(return_type), ..., -99999, "unspecified error in OpenCV guts")
warning:       | ^~~~~~~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |     ^~~~~~~~~~~
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:55:31: note: candidate: ‘template<class T> T Err(int, const char*)’
warning:    55 | template<typename T> inline T Err(int code, const char* msg) {
warning:       |                               ^~~
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:55:31: note:   template argument deduction/substitution failed:
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:35: error: template argument 1 is invalid
warning:    23 |  return Err<return_type>(code, msg); \
warning:       |                                   ^
warning: /build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:28:1: note: in expansion of macro ‘CODE_CATCH’
warning:    28 | CODE_CATCH(OCVRS_TYPE(return_type), ..., -99999, "unspecified error in OpenCV guts")
warning:       | ^~~~~~~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
warning:  1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
warning:       |     ^~~~~~~~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1855:119: warning: unused parameter ‘cost_type’ [-Wunused-parameter]
warning:  1855 |  Result<cv::detail::GraphCutSeamFinderGpu*> cv_detail_GraphCutSeamFinderGpu_GraphCutSeamFinderGpu_int_float_float(int cost_type, float terminal_cost, float bad_region_penalty) {
warning:       |                                                                                                                   ~~~~^~~~~~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1855:136: warning: unused parameter ‘terminal_cost’ [-Wunused-parameter]
warning:  1855 |  Result<cv::detail::GraphCutSeamFinderGpu*> cv_detail_GraphCutSeamFinderGpu_GraphCutSeamFinderGpu_int_float_float(int cost_type, float terminal_cost, float bad_region_penalty) {
warning:       |                                                                                                                                  ~~~~~~^~~~~~~~~~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1855:157: warning: unused parameter ‘bad_region_penalty’ [-Wunused-parameter]
warning:  1855 |  Result<cv::detail::GraphCutSeamFinderGpu*> cv_detail_GraphCutSeamFinderGpu_GraphCutSeamFinderGpu_int_float_float(int cost_type, float terminal_cost, float bad_region_penalty) {
warning:       |                                                                                                                                                       ~~~~~~^~~~~~~~~~~~~~~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp: At global scope:
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1862:118: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
warning:  1862 |  Result_void cv_detail_GraphCutSeamFinderGpu_find_const_vector_UMat_R_const_vector_Point_R_vector_UMat_R(cv::detail::GraphCutSeamFinderGpu* instance, const std::vector<cv::UMat>* src, const std::vector<cv::Point>* corners, std::vector<cv::UMat>* masks) {
warning:       |                                                                                                                      ^~~~~~~~~~~~~~~~~~~~~
warning:       |                                                                                                                      GraphCutSeamFinder
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1862:141: error: ‘instance’ was not declared in this scope
warning:  1862 |  Result_void cv_detail_GraphCutSeamFinderGpu_find_const_vector_UMat_R_const_vector_Point_R_vector_UMat_R(cv::detail::GraphCutSeamFinderGpu* instance, const std::vector<cv::UMat>* src, const std::vector<cv::Point>* corners, std::vector<cv::UMat>* masks) {
warning:       |                                                                                                                                             ^~~~~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1862:151: error: expected primary-expression before ‘const’
warning:  1862 |  Result_void cv_detail_GraphCutSeamFinderGpu_find_const_vector_UMat_R_const_vector_Point_R_vector_UMat_R(cv::detail::GraphCutSeamFinderGpu* instance, const std::vector<cv::UMat>* src, const std::vector<cv::Point>* corners, std::vector<cv::UMat>* masks) {
warning:       |                                                                                                                                                       ^~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1862:185: error: expected primary-expression before ‘const’
warning:  1862 |  Result_void cv_detail_GraphCutSeamFinderGpu_find_const_vector_UMat_R_const_vector_Point_R_vector_UMat_R(cv::detail::GraphCutSeamFinderGpu* instance, const std::vector<cv::UMat>* src, const std::vector<cv::Point>* corners, std::vector<cv::UMat>* masks) {
warning:       |                                                                                                                                                                                         ^~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1862:245: error: expected primary-expression before ‘*’ token
warning:  1862 |  Result_void cv_detail_GraphCutSeamFinderGpu_find_const_vector_UMat_R_const_vector_Point_R_vector_UMat_R(cv::detail::GraphCutSeamFinderGpu* instance, const std::vector<cv::UMat>* src, const std::vector<cv::Point>* corners, std::vector<cv::UMat>* masks) {
warning:       |                                                                                                                                                                                                                                                     ^
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1862:247: error: ‘masks’ was not declared in this scope
warning:  1862 |  Result_void cv_detail_GraphCutSeamFinderGpu_find_const_vector_UMat_R_const_vector_Point_R_vector_UMat_R(cv::detail::GraphCutSeamFinderGpu* instance, const std::vector<cv::UMat>* src, const std::vector<cv::Point>* corners, std::vector<cv::UMat>* masks) {
warning:       |                                                                                                                                                                                                                                                       ^~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1862:254: error: expected ‘,’ or ‘;’ before ‘{’ token
warning:  1862 |  Result_void cv_detail_GraphCutSeamFinderGpu_find_const_vector_UMat_R_const_vector_Point_R_vector_UMat_R(cv::detail::GraphCutSeamFinderGpu* instance, const std::vector<cv::UMat>* src, const std::vector<cv::Point>* corners, std::vector<cv::UMat>* masks) {
warning:       |                                                                                                                                                                                                                                                              ^
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1869:88: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
warning:  1869 |  Result_void cv_detail_GraphCutSeamFinderGpu_findInPair_size_t_size_t_Rect(cv::detail::GraphCutSeamFinderGpu* instance, size_t first, size_t second, cv::Rect* roi) {
warning:       |                                                                                        ^~~~~~~~~~~~~~~~~~~~~
warning:       |                                                                                        GraphCutSeamFinder
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1869:111: error: ‘instance’ was not declared in this scope
warning:  1869 |  Result_void cv_detail_GraphCutSeamFinderGpu_findInPair_size_t_size_t_Rect(cv::detail::GraphCutSeamFinderGpu* instance, size_t first, size_t second, cv::Rect* roi) {
warning:       |                                                                                                               ^~~~~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1869:128: error: expected primary-expression before ‘first’
warning:  1869 |  Result_void cv_detail_GraphCutSeamFinderGpu_findInPair_size_t_size_t_Rect(cv::detail::GraphCutSeamFinderGpu* instance, size_t first, size_t second, cv::Rect* roi) {
warning:       |                                                                                                                                ^~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1869:142: error: expected primary-expression before ‘second’
warning:  1869 |  Result_void cv_detail_GraphCutSeamFinderGpu_findInPair_size_t_size_t_Rect(cv::detail::GraphCutSeamFinderGpu* instance, size_t first, size_t second, cv::Rect* roi) {
warning:       |                                                                                                                                              ^~~~~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1869:158: error: expected primary-expression before ‘*’ token
warning:  1869 |  Result_void cv_detail_GraphCutSeamFinderGpu_findInPair_size_t_size_t_Rect(cv::detail::GraphCutSeamFinderGpu* instance, size_t first, size_t second, cv::Rect* roi) {
warning:       |                                                                                                                                                              ^
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1869:160: error: ‘roi’ was not declared in this scope
warning:  1869 |  Result_void cv_detail_GraphCutSeamFinderGpu_findInPair_size_t_size_t_Rect(cv::detail::GraphCutSeamFinderGpu* instance, size_t first, size_t second, cv::Rect* roi) {
warning:       |                                                                                                                                                                ^~~
warning: /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1869:165: error: expected ‘,’ or ‘;’ before ‘{’ token
warning:  1869 |  Result_void cv_detail_GraphCutSeamFinderGpu_findInPair_size_t_size_t_Rect(cv::detail::GraphCutSeamFinderGpu* instance, size_t first, size_t second, cv::Rect* roi) {
warning:       |                                                                                                                                                                     ^
warning: cc1plus: note: unrecognized command-line option ‘-Wno-return-type-c-linkage’ may have been intended to silence earlier diagnostics

error: failed to run custom build command for `opencv v0.47.0 (/build/dev/opencv-rust)`

Caused by:
  process didn't exit successfully: `/target/debug/build/opencv-c7ef7ff91969b993/build-script-build` (exit code: 1)
  --- stdout
  cargo:rerun-if-env-changed=OPENCV4_NO_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG
  cargo:rerun-if-env-changed=OPENCV4_STATIC
  cargo:rerun-if-env-changed=OPENCV4_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=SYSROOT
  cargo:rerun-if-env-changed=OPENCV4_STATIC
  cargo:rerun-if-env-changed=OPENCV4_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG
  cargo:rerun-if-env-changed=OPENCV4_STATIC
  cargo:rerun-if-env-changed=OPENCV4_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
  Modules: OnceCell(["alphamat", "aruco", "bgsegm", "bioinspired", "calib3d", "ccalib", "core", "cudaarithm", "cudabgsegm", "cudacodec", "cudafeatures2d", "cudafilters", "cudaimgproc", "cudaobjdetect", "cudaoptflow", "cudastereo", "cudawarping", "cvv", "dnn", "dnn_superres", "dpm", "face", "features2d", "flann", "freetype", "fuzzy", "hdf", "hfs", "highgui", "img_hash", "imgcodecs", "imgproc", "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", "xfeatures2d", "ximgproc", "xobjdetect", "xphoto"])
  cargo:rerun-if-env-changed=OPENCV_HEADER_DIR
  cargo:rerun-if-env-changed=OPENCV_PACKAGE_NAME
  cargo:rerun-if-env-changed=OPENCV_PKGCONFIG_NAME
  cargo:rerun-if-env-changed=OPENCV_CMAKE_NAME
  cargo:rerun-if-env-changed=OPENCV_CMAKE_BIN
  cargo:rerun-if-env-changed=OPENCV_VCPKG_NAME
  cargo:rerun-if-env-changed=OPENCV_LINK_LIBS
  cargo:rerun-if-env-changed=OPENCV_LINK_PATHS
  cargo:rerun-if-env-changed=OPENCV_INCLUDE_PATHS
  cargo:rerun-if-env-changed=OPENCV_DISABLE_PROBES
  cargo:rerun-if-env-changed=OPENCV_CLANG_STDLIB_PATH
  cargo:rerun-if-env-changed=OPENCV_MODULE_WHITELIST
  cargo:rerun-if-env-changed=OPENCV_MODULE_BLACKLIST
  cargo:rerun-if-env-changed=CMAKE_PREFIX_PATH
  cargo:rerun-if-env-changed=OpenCV_DIR
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=VCPKG_ROOT
  cargo:rerun-if-env-changed=VCPKGRS_DYNAMIC
  cargo:rerun-if-changed=/build/dev/opencv-rust/src_cpp/imgproc.hpp
  cargo:rerun-if-changed=/build/dev/opencv-rust/src_cpp/bioinspired.hpp
  cargo:rerun-if-changed=/build/dev/opencv-rust/src_cpp/ocvrs_resolve_types.hpp
  cargo:rerun-if-changed=/build/dev/opencv-rust/src_cpp/manual-features2d.cpp
  cargo:rerun-if-changed=/build/dev/opencv-rust/src_cpp/calib3d.hpp
  cargo:rerun-if-changed=/build/dev/opencv-rust/src_cpp/gapi.hpp
  cargo:rerun-if-changed=/build/dev/opencv-rust/src_cpp/face.hpp
  cargo:rerun-if-changed=/build/dev/opencv-rust/src_cpp/manual-dnn.cpp
  cargo:rerun-if-changed=/build/dev/opencv-rust/src_cpp/sfm.hpp
  cargo:rerun-if-changed=/build/dev/opencv-rust/src_cpp/xfeatures2d.hpp
  cargo:rerun-if-changed=/build/dev/opencv-rust/src_cpp/photo.hpp
  cargo:rerun-if-changed=/build/dev/opencv-rust/src_cpp/ccalib.hpp
  cargo:rerun-if-changed=/build/dev/opencv-rust/src_cpp/dnn.hpp
  cargo:rerun-if-changed=/build/dev/opencv-rust/src_cpp/videoio.hpp
  cargo:rerun-if-changed=/build/dev/opencv-rust/src_cpp/manual-core.cpp
  cargo:rerun-if-changed=/build/dev/opencv-rust/src_cpp/core.hpp
  cargo:rerun-if-changed=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp
  cargo:rerun-if-changed=/build/dev/opencv-rust/src_cpp/aruco.hpp
  cc = Build { include_directories: ["/build/dev/opencv-rust/src_cpp", "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out", ".", "/opt/opencv/include/opencv4"], definitions: [], objects: [], flags: ["-std=c++11"], flags_supported: ["-Wno-class-memaccess", "-Wno-deprecated-declarations", "-Wno-deprecated-copy", "-Wno-unused-variable", "-Wno-return-type-c-linkage", "-Wa,-mbig-obj"], known_flag_support_status: Mutex { data: {} }, ar_flags: [], no_default_flags: false, files: ["/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/calib3d.cpp", "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/core.cpp", "/build/dev/opencv-rust/src_cpp/manual-core.cpp", "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/dnn.cpp", "/build/dev/opencv-rust/src_cpp/manual-dnn.cpp", "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/features2d.cpp", "/build/dev/opencv-rust/src_cpp/manual-features2d.cpp", "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/flann.cpp", "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/highgui.cpp", "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/imgcodecs.cpp", "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/imgproc.cpp", "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/ml.cpp", "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/objdetect.cpp", "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/photo.cpp", "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp", "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/video.cpp", "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/videoio.cpp", "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/viz.cpp"], cpp: true, cpp_link_stdlib: None, cpp_set_stdlib: None, cuda: false, target: None, host: None, out_dir: None, opt_level: None, debug: None, force_frame_pointer: None, env: [], compiler: None, archiver: None, cargo_metadata: true, pic: None, use_plt: None, static_crt: None, shared_flag: None, static_flag: None, warnings_into_errors: false, warnings: None, extra_warnings: None, env_cache: Mutex { data: {} }, apple_sdk_root_cache: Mutex { data: {} } }
  TARGET = Some("x86_64-unknown-linux-gnu")
  OPT_LEVEL = Some("1")
  HOST = Some("x86_64-unknown-linux-gnu")
  CXX_x86_64-unknown-linux-gnu = None
  CXX_x86_64_unknown_linux_gnu = None
  HOST_CXX = None
  CXX = None
  CXXFLAGS_x86_64-unknown-linux-gnu = None
  CXXFLAGS_x86_64_unknown_linux_gnu = None
  HOST_CXXFLAGS = None
  CXXFLAGS = None
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some("true")
  CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
  CXX_x86_64-unknown-linux-gnu = None
  CXX_x86_64_unknown_linux_gnu = None
  HOST_CXX = None
  CXX = None
  CXXFLAGS_x86_64-unknown-linux-gnu = None
  CXXFLAGS_x86_64_unknown_linux_gnu = None
  HOST_CXXFLAGS = None
  CXXFLAGS = None
  CRATE_CC_NO_DEFAULTS = None
  CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
  CXX_x86_64-unknown-linux-gnu = None
  CXX_x86_64_unknown_linux_gnu = None
  HOST_CXX = None
  CXX = None
  CXXFLAGS_x86_64-unknown-linux-gnu = None
  CXXFLAGS_x86_64_unknown_linux_gnu = None
  HOST_CXXFLAGS = None
  CXXFLAGS = None
  CRATE_CC_NO_DEFAULTS = None
  CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
  CXX_x86_64-unknown-linux-gnu = None
  CXX_x86_64_unknown_linux_gnu = None
  HOST_CXX = None
  CXX = None
  CXXFLAGS_x86_64-unknown-linux-gnu = None
  CXXFLAGS_x86_64_unknown_linux_gnu = None
  HOST_CXXFLAGS = None
  CXXFLAGS = None
  CRATE_CC_NO_DEFAULTS = None
  CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
  CXX_x86_64-unknown-linux-gnu = None
  CXX_x86_64_unknown_linux_gnu = None
  HOST_CXX = None
  CXX = None
  CXXFLAGS_x86_64-unknown-linux-gnu = None
  CXXFLAGS_x86_64_unknown_linux_gnu = None
  HOST_CXXFLAGS = None
  CXXFLAGS = None
  CRATE_CC_NO_DEFAULTS = None
  CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
  CXX_x86_64-unknown-linux-gnu = None
  CXX_x86_64_unknown_linux_gnu = None
  HOST_CXX = None
  CXX = None
  CXXFLAGS_x86_64-unknown-linux-gnu = None
  CXXFLAGS_x86_64_unknown_linux_gnu = None
  HOST_CXXFLAGS = None
  CXXFLAGS = None
  CRATE_CC_NO_DEFAULTS = None
  CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
  CXX_x86_64-unknown-linux-gnu = None
  CXX_x86_64_unknown_linux_gnu = None
  HOST_CXX = None
  CXX = None
  CXXFLAGS_x86_64-unknown-linux-gnu = None
  CXXFLAGS_x86_64_unknown_linux_gnu = None
  HOST_CXXFLAGS = None
  CXXFLAGS = None
  CRATE_CC_NO_DEFAULTS = None
  CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
  running: "c++" "-O1" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "/build/dev/opencv-rust/src_cpp" "-I" "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out" "-I" "." "-I" "/opt/opencv/include/opencv4" "-Wall" "-Wextra" "-std=c++11" "-Wno-class-memaccess" "-Wno-deprecated-declarations" "-Wno-deprecated-copy" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/calib3d.o" "-c" "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/calib3d.cpp"
  running: "c++" "-O1" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "/build/dev/opencv-rust/src_cpp" "-I" "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out" "-I" "." "-I" "/opt/opencv/include/opencv4" "-Wall" "-Wextra" "-std=c++11" "-Wno-class-memaccess" "-Wno-deprecated-declarations" "-Wno-deprecated-copy" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/core.o" "-c" "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/core.cpp"
  running: "c++" "-O1" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "/build/dev/opencv-rust/src_cpp" "-I" "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out" "-I" "." "-I" "/opt/opencv/include/opencv4" "-Wall" "-Wextra" "-std=c++11" "-Wno-class-memaccess" "-Wno-deprecated-declarations" "-Wno-deprecated-copy" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/manual-core.o" "-c" "/build/dev/opencv-rust/src_cpp/manual-core.cpp"
  running: "c++" "-O1" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "/build/dev/opencv-rust/src_cpp" "-I" "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out" "-I" "." "-I" "/opt/opencv/include/opencv4" "-Wall" "-Wextra" "-std=c++11" "-Wno-class-memaccess" "-Wno-deprecated-declarations" "-Wno-deprecated-copy" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/dnn.o" "-c" "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/dnn.cpp"
  running: "c++" "-O1" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "/build/dev/opencv-rust/src_cpp" "-I" "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out" "-I" "." "-I" "/opt/opencv/include/opencv4" "-Wall" "-Wextra" "-std=c++11" "-Wno-class-memaccess" "-Wno-deprecated-declarations" "-Wno-deprecated-copy" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/manual-dnn.o" "-c" "/build/dev/opencv-rust/src_cpp/manual-dnn.cpp"
  running: "c++" "-O1" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "/build/dev/opencv-rust/src_cpp" "-I" "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out" "-I" "." "-I" "/opt/opencv/include/opencv4" "-Wall" "-Wextra" "-std=c++11" "-Wno-class-memaccess" "-Wno-deprecated-declarations" "-Wno-deprecated-copy" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/features2d.o" "-c" "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/features2d.cpp"
  running: "c++" "-O1" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "/build/dev/opencv-rust/src_cpp" "-I" "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out" "-I" "." "-I" "/opt/opencv/include/opencv4" "-Wall" "-Wextra" "-std=c++11" "-Wno-class-memaccess" "-Wno-deprecated-declarations" "-Wno-deprecated-copy" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/manual-features2d.o" "-c" "/build/dev/opencv-rust/src_cpp/manual-features2d.cpp"
  exit code: 0
  running: "c++" "-O1" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "/build/dev/opencv-rust/src_cpp" "-I" "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out" "-I" "." "-I" "/opt/opencv/include/opencv4" "-Wall" "-Wextra" "-std=c++11" "-Wno-class-memaccess" "-Wno-deprecated-declarations" "-Wno-deprecated-copy" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/flann.o" "-c" "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/flann.cpp"
  exit code: 0
  running: "c++" "-O1" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "/build/dev/opencv-rust/src_cpp" "-I" "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out" "-I" "." "-I" "/opt/opencv/include/opencv4" "-Wall" "-Wextra" "-std=c++11" "-Wno-class-memaccess" "-Wno-deprecated-declarations" "-Wno-deprecated-copy" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/highgui.o" "-c" "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/highgui.cpp"
  exit code: 0
  running: "c++" "-O1" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "/build/dev/opencv-rust/src_cpp" "-I" "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out" "-I" "." "-I" "/opt/opencv/include/opencv4" "-Wall" "-Wextra" "-std=c++11" "-Wno-class-memaccess" "-Wno-deprecated-declarations" "-Wno-deprecated-copy" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/imgcodecs.o" "-c" "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/imgcodecs.cpp"
  exit code: 0
  running: "c++" "-O1" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "/build/dev/opencv-rust/src_cpp" "-I" "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out" "-I" "." "-I" "/opt/opencv/include/opencv4" "-Wall" "-Wextra" "-std=c++11" "-Wno-class-memaccess" "-Wno-deprecated-declarations" "-Wno-deprecated-copy" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/imgproc.o" "-c" "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/imgproc.cpp"
  exit code: 0
  running: "c++" "-O1" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "/build/dev/opencv-rust/src_cpp" "-I" "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out" "-I" "." "-I" "/opt/opencv/include/opencv4" "-Wall" "-Wextra" "-std=c++11" "-Wno-class-memaccess" "-Wno-deprecated-declarations" "-Wno-deprecated-copy" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/ml.o" "-c" "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/ml.cpp"
  exit code: 0
  running: "c++" "-O1" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "/build/dev/opencv-rust/src_cpp" "-I" "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out" "-I" "." "-I" "/opt/opencv/include/opencv4" "-Wall" "-Wextra" "-std=c++11" "-Wno-class-memaccess" "-Wno-deprecated-declarations" "-Wno-deprecated-copy" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/objdetect.o" "-c" "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/objdetect.cpp"
  exit code: 0
  running: "c++" "-O1" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "/build/dev/opencv-rust/src_cpp" "-I" "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out" "-I" "." "-I" "/opt/opencv/include/opencv4" "-Wall" "-Wextra" "-std=c++11" "-Wno-class-memaccess" "-Wno-deprecated-declarations" "-Wno-deprecated-copy" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/photo.o" "-c" "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/photo.cpp"
  exit code: 0
  running: "c++" "-O1" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "/build/dev/opencv-rust/src_cpp" "-I" "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out" "-I" "." "-I" "/opt/opencv/include/opencv4" "-Wall" "-Wextra" "-std=c++11" "-Wno-class-memaccess" "-Wno-deprecated-declarations" "-Wno-deprecated-copy" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.o" "-c" "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp"
  exit code: 0
  running: "c++" "-O1" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "/build/dev/opencv-rust/src_cpp" "-I" "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out" "-I" "." "-I" "/opt/opencv/include/opencv4" "-Wall" "-Wextra" "-std=c++11" "-Wno-class-memaccess" "-Wno-deprecated-declarations" "-Wno-deprecated-copy" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/video.o" "-c" "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/video.cpp"
  exit code: 0
  running: "c++" "-O1" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "/build/dev/opencv-rust/src_cpp" "-I" "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out" "-I" "." "-I" "/opt/opencv/include/opencv4" "-Wall" "-Wextra" "-std=c++11" "-Wno-class-memaccess" "-Wno-deprecated-declarations" "-Wno-deprecated-copy" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/videoio.o" "-c" "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/videoio.cpp"
  cargo:warning=In file included from /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:3:
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching_types.hpp:64:36: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
  cargo:warning=   64 | template struct Result<cv::detail::GraphCutSeamFinderGpu*>;
  cargo:warning=      |                                    ^~~~~~~~~~~~~~~~~~~~~
  cargo:warning=      |                                    GraphCutSeamFinder
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching_types.hpp:64:36: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
  cargo:warning=   64 | template struct Result<cv::detail::GraphCutSeamFinderGpu*>;
  cargo:warning=      |                                    ^~~~~~~~~~~~~~~~~~~~~
  cargo:warning=      |                                    GraphCutSeamFinder
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching_types.hpp:64:58: error: template argument 1 is invalid
  cargo:warning=   64 | template struct Result<cv::detail::GraphCutSeamFinderGpu*>;
  cargo:warning=      |                                                          ^
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1852:7: error: variable or field ‘cv_Detail_GraphCutSeamFinderGpu_delete’ declared void
  cargo:warning= 1852 |  void cv_Detail_GraphCutSeamFinderGpu_delete(cv::detail::GraphCutSeamFinderGpu* instance) {
  cargo:warning=      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1852:58: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
  cargo:warning= 1852 |  void cv_Detail_GraphCutSeamFinderGpu_delete(cv::detail::GraphCutSeamFinderGpu* instance) {
  cargo:warning=      |                                                          ^~~~~~~~~~~~~~~~~~~~~
  cargo:warning=      |                                                          GraphCutSeamFinder
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1852:81: error: ‘instance’ was not declared in this scope
  cargo:warning= 1852 |  void cv_Detail_GraphCutSeamFinderGpu_delete(cv::detail::GraphCutSeamFinderGpu* instance) {
  cargo:warning=      |                                                                                 ^~~~~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1855:21: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
  cargo:warning= 1855 |  Result<cv::detail::GraphCutSeamFinderGpu*> cv_detail_GraphCutSeamFinderGpu_GraphCutSeamFinderGpu_int_float_float(int cost_type, float terminal_cost, float bad_region_penalty) {
  cargo:warning=      |                     ^~~~~~~~~~~~~~~~~~~~~
  cargo:warning=      |                     GraphCutSeamFinder
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1855:21: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
  cargo:warning= 1855 |  Result<cv::detail::GraphCutSeamFinderGpu*> cv_detail_GraphCutSeamFinderGpu_GraphCutSeamFinderGpu_int_float_float(int cost_type, float terminal_cost, float bad_region_penalty) {
  cargo:warning=      |                     ^~~~~~~~~~~~~~~~~~~~~
  cargo:warning=      |                     GraphCutSeamFinder
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1855:43: error: template argument 1 is invalid
  cargo:warning= 1855 |  Result<cv::detail::GraphCutSeamFinderGpu*> cv_detail_GraphCutSeamFinderGpu_GraphCutSeamFinderGpu_int_float_float(int cost_type, float terminal_cost, float bad_region_penalty) {
  cargo:warning=      |                                           ^
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp: In function ‘int cv_detail_GraphCutSeamFinderGpu_GraphCutSeamFinderGpu_int_float_float(int, float, float)’:
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1857:16: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
  cargo:warning= 1857 |    cv::detail::GraphCutSeamFinderGpu* ret = new cv::detail::GraphCutSeamFinderGpu(cost_type, terminal_cost, bad_region_penalty);
  cargo:warning=      |                ^~~~~~~~~~~~~~~~~~~~~
  cargo:warning=      |                GraphCutSeamFinder
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1857:39: error: ‘ret’ was not declared in this scope
  cargo:warning= 1857 |    cv::detail::GraphCutSeamFinderGpu* ret = new cv::detail::GraphCutSeamFinderGpu(cost_type, terminal_cost, bad_region_penalty);
  cargo:warning=      |                                       ^~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1857:49: error: expected type-specifier
  cargo:warning= 1857 |    cv::detail::GraphCutSeamFinderGpu* ret = new cv::detail::GraphCutSeamFinderGpu(cost_type, terminal_cost, bad_region_penalty);
  cargo:warning=      |                                                 ^~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1858:26: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
  cargo:warning= 1858 |    return Ok<cv::detail::GraphCutSeamFinderGpu*>(ret);
  cargo:warning=      |                          ^~~~~~~~~~~~~~~~~~~~~
  cargo:warning=      |                          GraphCutSeamFinder
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1858:26: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
  cargo:warning= 1858 |    return Ok<cv::detail::GraphCutSeamFinderGpu*>(ret);
  cargo:warning=      |                          ^~~~~~~~~~~~~~~~~~~~~
  cargo:warning=      |                          GraphCutSeamFinder
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1858:11: error: parse error in template argument list
  cargo:warning= 1858 |    return Ok<cv::detail::GraphCutSeamFinderGpu*>(ret);
  cargo:warning=      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  cargo:warning=In file included from /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1:
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:47: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |                                               ^~~~~~~~~~~~~~~~~~~~~
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:13: note: in definition of macro ‘CODE_CATCH’
  cargo:warning=   23 |  return Err<return_type>(code, msg); \
  cargo:warning=      |             ^~~~~~~~~~~
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:27:12: note: in expansion of macro ‘OCVRS_TYPE’
  cargo:warning=   27 | CODE_CATCH(OCVRS_TYPE(return_type), cv::Exception& e, e.code, e.what()) \
  cargo:warning=      |            ^~~~~~~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |     ^~~~~~~~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:17: note: in expansion of macro ‘OCVRS_TYPE’
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |                 ^~~~~~~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:47: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |                                               ^~~~~~~~~~~~~~~~~~~~~
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:13: note: in definition of macro ‘CODE_CATCH’
  cargo:warning=   23 |  return Err<return_type>(code, msg); \
  cargo:warning=      |             ^~~~~~~~~~~
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:27:12: note: in expansion of macro ‘OCVRS_TYPE’
  cargo:warning=   27 | CODE_CATCH(OCVRS_TYPE(return_type), cv::Exception& e, e.code, e.what()) \
  cargo:warning=      |            ^~~~~~~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |     ^~~~~~~~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:17: note: in expansion of macro ‘OCVRS_TYPE’
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |                 ^~~~~~~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:69: error: template argument 1 is invalid
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |                                                                     ^
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:13: note: in definition of macro ‘CODE_CATCH’
  cargo:warning=   23 |  return Err<return_type>(code, msg); \
  cargo:warning=      |             ^~~~~~~~~~~
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:27:12: note: in expansion of macro ‘OCVRS_TYPE’
  cargo:warning=   27 | CODE_CATCH(OCVRS_TYPE(return_type), cv::Exception& e, e.code, e.what()) \
  cargo:warning=      |            ^~~~~~~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |     ^~~~~~~~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:17: note: in expansion of macro ‘OCVRS_TYPE’
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |                 ^~~~~~~~~~
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:35: error: no matching function for call to ‘Err<<expression error> >(int&, const char*)’
  cargo:warning=   23 |  return Err<return_type>(code, msg); \
  cargo:warning=      |                                   ^
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:27:1: note: in expansion of macro ‘CODE_CATCH’
  cargo:warning=   27 | CODE_CATCH(OCVRS_TYPE(return_type), cv::Exception& e, e.code, e.what()) \
  cargo:warning=      | ^~~~~~~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |     ^~~~~~~~~~~
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:55:31: note: candidate: ‘template<class T> T Err(int, const char*)’
  cargo:warning=   55 | template<typename T> inline T Err(int code, const char* msg) {
  cargo:warning=      |                               ^~~
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:55:31: note:   template argument deduction/substitution failed:
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:35: error: template argument 1 is invalid
  cargo:warning=   23 |  return Err<return_type>(code, msg); \
  cargo:warning=      |                                   ^
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:27:1: note: in expansion of macro ‘CODE_CATCH’
  cargo:warning=   27 | CODE_CATCH(OCVRS_TYPE(return_type), cv::Exception& e, e.code, e.what()) \
  cargo:warning=      | ^~~~~~~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |     ^~~~~~~~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:47: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |                                               ^~~~~~~~~~~~~~~~~~~~~
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:13: note: in definition of macro ‘CODE_CATCH’
  cargo:warning=   23 |  return Err<return_type>(code, msg); \
  cargo:warning=      |             ^~~~~~~~~~~
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:28:12: note: in expansion of macro ‘OCVRS_TYPE’
  cargo:warning=   28 | CODE_CATCH(OCVRS_TYPE(return_type), ..., -99999, "unspecified error in OpenCV guts")
  cargo:warning=      |            ^~~~~~~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |     ^~~~~~~~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:17: note: in expansion of macro ‘OCVRS_TYPE’
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |                 ^~~~~~~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:47: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |                                               ^~~~~~~~~~~~~~~~~~~~~
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:13: note: in definition of macro ‘CODE_CATCH’
  cargo:warning=   23 |  return Err<return_type>(code, msg); \
  cargo:warning=      |             ^~~~~~~~~~~
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:28:12: note: in expansion of macro ‘OCVRS_TYPE’
  cargo:warning=   28 | CODE_CATCH(OCVRS_TYPE(return_type), ..., -99999, "unspecified error in OpenCV guts")
  cargo:warning=      |            ^~~~~~~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |     ^~~~~~~~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:17: note: in expansion of macro ‘OCVRS_TYPE’
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |                 ^~~~~~~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:69: error: template argument 1 is invalid
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |                                                                     ^
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:13: note: in definition of macro ‘CODE_CATCH’
  cargo:warning=   23 |  return Err<return_type>(code, msg); \
  cargo:warning=      |             ^~~~~~~~~~~
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:28:12: note: in expansion of macro ‘OCVRS_TYPE’
  cargo:warning=   28 | CODE_CATCH(OCVRS_TYPE(return_type), ..., -99999, "unspecified error in OpenCV guts")
  cargo:warning=      |            ^~~~~~~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |     ^~~~~~~~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:17: note: in expansion of macro ‘OCVRS_TYPE’
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |                 ^~~~~~~~~~
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:35: error: no matching function for call to ‘Err<<expression error> >(int, const char [33])’
  cargo:warning=   23 |  return Err<return_type>(code, msg); \
  cargo:warning=      |                                   ^
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:28:1: note: in expansion of macro ‘CODE_CATCH’
  cargo:warning=   28 | CODE_CATCH(OCVRS_TYPE(return_type), ..., -99999, "unspecified error in OpenCV guts")
  cargo:warning=      | ^~~~~~~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |     ^~~~~~~~~~~
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:55:31: note: candidate: ‘template<class T> T Err(int, const char*)’
  cargo:warning=   55 | template<typename T> inline T Err(int code, const char* msg) {
  cargo:warning=      |                               ^~~
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:55:31: note:   template argument deduction/substitution failed:
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:35: error: template argument 1 is invalid
  cargo:warning=   23 |  return Err<return_type>(code, msg); \
  cargo:warning=      |                                   ^
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:28:1: note: in expansion of macro ‘CODE_CATCH’
  cargo:warning=   28 | CODE_CATCH(OCVRS_TYPE(return_type), ..., -99999, "unspecified error in OpenCV guts")
  cargo:warning=      | ^~~~~~~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |     ^~~~~~~~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1855:119: warning: unused parameter ‘cost_type’ [-Wunused-parameter]
  cargo:warning= 1855 |  Result<cv::detail::GraphCutSeamFinderGpu*> cv_detail_GraphCutSeamFinderGpu_GraphCutSeamFinderGpu_int_float_float(int cost_type, float terminal_cost, float bad_region_penalty) {
  cargo:warning=      |                                                                                                                   ~~~~^~~~~~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1855:136: warning: unused parameter ‘terminal_cost’ [-Wunused-parameter]
  cargo:warning= 1855 |  Result<cv::detail::GraphCutSeamFinderGpu*> cv_detail_GraphCutSeamFinderGpu_GraphCutSeamFinderGpu_int_float_float(int cost_type, float terminal_cost, float bad_region_penalty) {
  cargo:warning=      |                                                                                                                                  ~~~~~~^~~~~~~~~~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1855:157: warning: unused parameter ‘bad_region_penalty’ [-Wunused-parameter]
  cargo:warning= 1855 |  Result<cv::detail::GraphCutSeamFinderGpu*> cv_detail_GraphCutSeamFinderGpu_GraphCutSeamFinderGpu_int_float_float(int cost_type, float terminal_cost, float bad_region_penalty) {
  cargo:warning=      |                                                                                                                                                       ~~~~~~^~~~~~~~~~~~~~~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp: At global scope:
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1862:118: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
  cargo:warning= 1862 |  Result_void cv_detail_GraphCutSeamFinderGpu_find_const_vector_UMat_R_const_vector_Point_R_vector_UMat_R(cv::detail::GraphCutSeamFinderGpu* instance, const std::vector<cv::UMat>* src, const std::vector<cv::Point>* corners, std::vector<cv::UMat>* masks) {
  cargo:warning=      |                                                                                                                      ^~~~~~~~~~~~~~~~~~~~~
  cargo:warning=      |                                                                                                                      GraphCutSeamFinder
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1862:141: error: ‘instance’ was not declared in this scope
  cargo:warning= 1862 |  Result_void cv_detail_GraphCutSeamFinderGpu_find_const_vector_UMat_R_const_vector_Point_R_vector_UMat_R(cv::detail::GraphCutSeamFinderGpu* instance, const std::vector<cv::UMat>* src, const std::vector<cv::Point>* corners, std::vector<cv::UMat>* masks) {
  cargo:warning=      |                                                                                                                                             ^~~~~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1862:151: error: expected primary-expression before ‘const’
  cargo:warning= 1862 |  Result_void cv_detail_GraphCutSeamFinderGpu_find_const_vector_UMat_R_const_vector_Point_R_vector_UMat_R(cv::detail::GraphCutSeamFinderGpu* instance, const std::vector<cv::UMat>* src, const std::vector<cv::Point>* corners, std::vector<cv::UMat>* masks) {
  cargo:warning=      |                                                                                                                                                       ^~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1862:185: error: expected primary-expression before ‘const’
  cargo:warning= 1862 |  Result_void cv_detail_GraphCutSeamFinderGpu_find_const_vector_UMat_R_const_vector_Point_R_vector_UMat_R(cv::detail::GraphCutSeamFinderGpu* instance, const std::vector<cv::UMat>* src, const std::vector<cv::Point>* corners, std::vector<cv::UMat>* masks) {
  cargo:warning=      |                                                                                                                                                                                         ^~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1862:245: error: expected primary-expression before ‘*’ token
  cargo:warning= 1862 |  Result_void cv_detail_GraphCutSeamFinderGpu_find_const_vector_UMat_R_const_vector_Point_R_vector_UMat_R(cv::detail::GraphCutSeamFinderGpu* instance, const std::vector<cv::UMat>* src, const std::vector<cv::Point>* corners, std::vector<cv::UMat>* masks) {
  cargo:warning=      |                                                                                                                                                                                                                                                     ^
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1862:247: error: ‘masks’ was not declared in this scope
  cargo:warning= 1862 |  Result_void cv_detail_GraphCutSeamFinderGpu_find_const_vector_UMat_R_const_vector_Point_R_vector_UMat_R(cv::detail::GraphCutSeamFinderGpu* instance, const std::vector<cv::UMat>* src, const std::vector<cv::Point>* corners, std::vector<cv::UMat>* masks) {
  cargo:warning=      |                                                                                                                                                                                                                                                       ^~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1862:254: error: expected ‘,’ or ‘;’ before ‘{’ token
  cargo:warning= 1862 |  Result_void cv_detail_GraphCutSeamFinderGpu_find_const_vector_UMat_R_const_vector_Point_R_vector_UMat_R(cv::detail::GraphCutSeamFinderGpu* instance, const std::vector<cv::UMat>* src, const std::vector<cv::Point>* corners, std::vector<cv::UMat>* masks) {
  cargo:warning=      |                                                                                                                                                                                                                                                              ^
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1869:88: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
  cargo:warning= 1869 |  Result_void cv_detail_GraphCutSeamFinderGpu_findInPair_size_t_size_t_Rect(cv::detail::GraphCutSeamFinderGpu* instance, size_t first, size_t second, cv::Rect* roi) {
  cargo:warning=      |                                                                                        ^~~~~~~~~~~~~~~~~~~~~
  cargo:warning=      |                                                                                        GraphCutSeamFinder
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1869:111: error: ‘instance’ was not declared in this scope
  cargo:warning= 1869 |  Result_void cv_detail_GraphCutSeamFinderGpu_findInPair_size_t_size_t_Rect(cv::detail::GraphCutSeamFinderGpu* instance, size_t first, size_t second, cv::Rect* roi) {
  cargo:warning=      |                                                                                                               ^~~~~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1869:128: error: expected primary-expression before ‘first’
  cargo:warning= 1869 |  Result_void cv_detail_GraphCutSeamFinderGpu_findInPair_size_t_size_t_Rect(cv::detail::GraphCutSeamFinderGpu* instance, size_t first, size_t second, cv::Rect* roi) {
  cargo:warning=      |                                                                                                                                ^~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1869:142: error: expected primary-expression before ‘second’
  cargo:warning= 1869 |  Result_void cv_detail_GraphCutSeamFinderGpu_findInPair_size_t_size_t_Rect(cv::detail::GraphCutSeamFinderGpu* instance, size_t first, size_t second, cv::Rect* roi) {
  cargo:warning=      |                                                                                                                                              ^~~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1869:158: error: expected primary-expression before ‘*’ token
  cargo:warning= 1869 |  Result_void cv_detail_GraphCutSeamFinderGpu_findInPair_size_t_size_t_Rect(cv::detail::GraphCutSeamFinderGpu* instance, size_t first, size_t second, cv::Rect* roi) {
  cargo:warning=      |                                                                                                                                                              ^
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1869:160: error: ‘roi’ was not declared in this scope
  cargo:warning= 1869 |  Result_void cv_detail_GraphCutSeamFinderGpu_findInPair_size_t_size_t_Rect(cv::detail::GraphCutSeamFinderGpu* instance, size_t first, size_t second, cv::Rect* roi) {
  cargo:warning=      |                                                                                                                                                                ^~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1869:165: error: expected ‘,’ or ‘;’ before ‘{’ token
  cargo:warning= 1869 |  Result_void cv_detail_GraphCutSeamFinderGpu_findInPair_size_t_size_t_Rect(cv::detail::GraphCutSeamFinderGpu* instance, size_t first, size_t second, cv::Rect* roi) {
  cargo:warning=      |                                                                                                                                                                     ^
  cargo:warning=cc1plus: note: unrecognized command-line option ‘-Wno-return-type-c-linkage’ may have been intended to silence earlier diagnostics
  exit code: 0
  running: "c++" "-O1" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "/build/dev/opencv-rust/src_cpp" "-I" "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out" "-I" "." "-I" "/opt/opencv/include/opencv4" "-Wall" "-Wextra" "-std=c++11" "-Wno-class-memaccess" "-Wno-deprecated-declarations" "-Wno-deprecated-copy" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/viz.o" "-c" "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/viz.cpp"
  exit code: 0
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/viz.cpp:2:10: fatal error: opencv2/viz.hpp: No such file or directory
  cargo:warning=    2 | #include <opencv2/viz.hpp>
  cargo:warning=      |          ^~~~~~~~~~~~~~~~~
  cargo:warning=compilation terminated.
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/viz.cpp:2:10: fatal error: opencv2/viz.hpp: No such file or directory
  cargo:warning=    2 | #include <opencv2/viz.hpp>
  cargo:warning=      |          ^~~~~~~~~~~~~~~~~
  cargo:warning=compilation terminated.
  exit code: 1
  exit code: 0
  cargo:warning=In file included from /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:3:
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching_types.hpp:64:36: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
  cargo:warning=   64 | template struct Result<cv::detail::GraphCutSeamFinderGpu*>;
  cargo:warning=      |                                    ^~~~~~~~~~~~~~~~~~~~~
  cargo:warning=      |                                    GraphCutSeamFinder
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching_types.hpp:64:36: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
  cargo:warning=   64 | template struct Result<cv::detail::GraphCutSeamFinderGpu*>;
  cargo:warning=      |                                    ^~~~~~~~~~~~~~~~~~~~~
  cargo:warning=      |                                    GraphCutSeamFinder
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching_types.hpp:64:58: error: template argument 1 is invalid
  cargo:warning=   64 | template struct Result<cv::detail::GraphCutSeamFinderGpu*>;
  cargo:warning=      |                                                          ^
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1852:7: error: variable or field ‘cv_Detail_GraphCutSeamFinderGpu_delete’ declared void
  cargo:warning= 1852 |  void cv_Detail_GraphCutSeamFinderGpu_delete(cv::detail::GraphCutSeamFinderGpu* instance) {
  cargo:warning=      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1852:58: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
  cargo:warning= 1852 |  void cv_Detail_GraphCutSeamFinderGpu_delete(cv::detail::GraphCutSeamFinderGpu* instance) {
  cargo:warning=      |                                                          ^~~~~~~~~~~~~~~~~~~~~
  cargo:warning=      |                                                          GraphCutSeamFinder
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1852:81: error: ‘instance’ was not declared in this scope
  cargo:warning= 1852 |  void cv_Detail_GraphCutSeamFinderGpu_delete(cv::detail::GraphCutSeamFinderGpu* instance) {
  cargo:warning=      |                                                                                 ^~~~~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1855:21: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
  cargo:warning= 1855 |  Result<cv::detail::GraphCutSeamFinderGpu*> cv_detail_GraphCutSeamFinderGpu_GraphCutSeamFinderGpu_int_float_float(int cost_type, float terminal_cost, float bad_region_penalty) {
  cargo:warning=      |                     ^~~~~~~~~~~~~~~~~~~~~
  cargo:warning=      |                     GraphCutSeamFinder
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1855:21: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
  cargo:warning= 1855 |  Result<cv::detail::GraphCutSeamFinderGpu*> cv_detail_GraphCutSeamFinderGpu_GraphCutSeamFinderGpu_int_float_float(int cost_type, float terminal_cost, float bad_region_penalty) {
  cargo:warning=      |                     ^~~~~~~~~~~~~~~~~~~~~
  cargo:warning=      |                     GraphCutSeamFinder
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1855:43: error: template argument 1 is invalid
  cargo:warning= 1855 |  Result<cv::detail::GraphCutSeamFinderGpu*> cv_detail_GraphCutSeamFinderGpu_GraphCutSeamFinderGpu_int_float_float(int cost_type, float terminal_cost, float bad_region_penalty) {
  cargo:warning=      |                                           ^
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp: In function ‘int cv_detail_GraphCutSeamFinderGpu_GraphCutSeamFinderGpu_int_float_float(int, float, float)’:
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1857:16: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
  cargo:warning= 1857 |    cv::detail::GraphCutSeamFinderGpu* ret = new cv::detail::GraphCutSeamFinderGpu(cost_type, terminal_cost, bad_region_penalty);
  cargo:warning=      |                ^~~~~~~~~~~~~~~~~~~~~
  cargo:warning=      |                GraphCutSeamFinder
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1857:39: error: ‘ret’ was not declared in this scope
  cargo:warning= 1857 |    cv::detail::GraphCutSeamFinderGpu* ret = new cv::detail::GraphCutSeamFinderGpu(cost_type, terminal_cost, bad_region_penalty);
  cargo:warning=      |                                       ^~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1857:49: error: expected type-specifier
  cargo:warning= 1857 |    cv::detail::GraphCutSeamFinderGpu* ret = new cv::detail::GraphCutSeamFinderGpu(cost_type, terminal_cost, bad_region_penalty);
  cargo:warning=      |                                                 ^~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1858:26: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
  cargo:warning= 1858 |    return Ok<cv::detail::GraphCutSeamFinderGpu*>(ret);
  cargo:warning=      |                          ^~~~~~~~~~~~~~~~~~~~~
  cargo:warning=      |                          GraphCutSeamFinder
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1858:26: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
  cargo:warning= 1858 |    return Ok<cv::detail::GraphCutSeamFinderGpu*>(ret);
  cargo:warning=      |                          ^~~~~~~~~~~~~~~~~~~~~
  cargo:warning=      |                          GraphCutSeamFinder
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1858:11: error: parse error in template argument list
  cargo:warning= 1858 |    return Ok<cv::detail::GraphCutSeamFinderGpu*>(ret);
  cargo:warning=      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  cargo:warning=In file included from /target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1:
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:47: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |                                               ^~~~~~~~~~~~~~~~~~~~~
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:13: note: in definition of macro ‘CODE_CATCH’
  cargo:warning=   23 |  return Err<return_type>(code, msg); \
  cargo:warning=      |             ^~~~~~~~~~~
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:27:12: note: in expansion of macro ‘OCVRS_TYPE’
  cargo:warning=   27 | CODE_CATCH(OCVRS_TYPE(return_type), cv::Exception& e, e.code, e.what()) \
  cargo:warning=      |            ^~~~~~~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |     ^~~~~~~~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:17: note: in expansion of macro ‘OCVRS_TYPE’
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |                 ^~~~~~~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:47: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |                                               ^~~~~~~~~~~~~~~~~~~~~
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:13: note: in definition of macro ‘CODE_CATCH’
  cargo:warning=   23 |  return Err<return_type>(code, msg); \
  cargo:warning=      |             ^~~~~~~~~~~
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:27:12: note: in expansion of macro ‘OCVRS_TYPE’
  cargo:warning=   27 | CODE_CATCH(OCVRS_TYPE(return_type), cv::Exception& e, e.code, e.what()) \
  cargo:warning=      |            ^~~~~~~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |     ^~~~~~~~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:17: note: in expansion of macro ‘OCVRS_TYPE’
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |                 ^~~~~~~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:69: error: template argument 1 is invalid
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |                                                                     ^
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:13: note: in definition of macro ‘CODE_CATCH’
  cargo:warning=   23 |  return Err<return_type>(code, msg); \
  cargo:warning=      |             ^~~~~~~~~~~
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:27:12: note: in expansion of macro ‘OCVRS_TYPE’
  cargo:warning=   27 | CODE_CATCH(OCVRS_TYPE(return_type), cv::Exception& e, e.code, e.what()) \
  cargo:warning=      |            ^~~~~~~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |     ^~~~~~~~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:17: note: in expansion of macro ‘OCVRS_TYPE’
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |                 ^~~~~~~~~~
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:35: error: no matching function for call to ‘Err<<expression error> >(int&, const char*)’
  cargo:warning=   23 |  return Err<return_type>(code, msg); \
  cargo:warning=      |                                   ^
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:27:1: note: in expansion of macro ‘CODE_CATCH’
  cargo:warning=   27 | CODE_CATCH(OCVRS_TYPE(return_type), cv::Exception& e, e.code, e.what()) \
  cargo:warning=      | ^~~~~~~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |     ^~~~~~~~~~~
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:55:31: note: candidate: ‘template<class T> T Err(int, const char*)’
  cargo:warning=   55 | template<typename T> inline T Err(int code, const char* msg) {
  cargo:warning=      |                               ^~~
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:55:31: note:   template argument deduction/substitution failed:
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:35: error: template argument 1 is invalid
  cargo:warning=   23 |  return Err<return_type>(code, msg); \
  cargo:warning=      |                                   ^
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:27:1: note: in expansion of macro ‘CODE_CATCH’
  cargo:warning=   27 | CODE_CATCH(OCVRS_TYPE(return_type), cv::Exception& e, e.code, e.what()) \
  cargo:warning=      | ^~~~~~~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |     ^~~~~~~~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:47: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |                                               ^~~~~~~~~~~~~~~~~~~~~
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:13: note: in definition of macro ‘CODE_CATCH’
  cargo:warning=   23 |  return Err<return_type>(code, msg); \
  cargo:warning=      |             ^~~~~~~~~~~
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:28:12: note: in expansion of macro ‘OCVRS_TYPE’
  cargo:warning=   28 | CODE_CATCH(OCVRS_TYPE(return_type), ..., -99999, "unspecified error in OpenCV guts")
  cargo:warning=      |            ^~~~~~~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |     ^~~~~~~~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:17: note: in expansion of macro ‘OCVRS_TYPE’
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |                 ^~~~~~~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:47: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |                                               ^~~~~~~~~~~~~~~~~~~~~
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:13: note: in definition of macro ‘CODE_CATCH’
  cargo:warning=   23 |  return Err<return_type>(code, msg); \
  cargo:warning=      |             ^~~~~~~~~~~
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:28:12: note: in expansion of macro ‘OCVRS_TYPE’
  cargo:warning=   28 | CODE_CATCH(OCVRS_TYPE(return_type), ..., -99999, "unspecified error in OpenCV guts")
  cargo:warning=      |            ^~~~~~~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |     ^~~~~~~~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:17: note: in expansion of macro ‘OCVRS_TYPE’
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |                 ^~~~~~~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:69: error: template argument 1 is invalid
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |                                                                     ^
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:13: note: in definition of macro ‘CODE_CATCH’
  cargo:warning=   23 |  return Err<return_type>(code, msg); \
  cargo:warning=      |             ^~~~~~~~~~~
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:28:12: note: in expansion of macro ‘OCVRS_TYPE’
  cargo:warning=   28 | CODE_CATCH(OCVRS_TYPE(return_type), ..., -99999, "unspecified error in OpenCV guts")
  cargo:warning=      |            ^~~~~~~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |     ^~~~~~~~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:17: note: in expansion of macro ‘OCVRS_TYPE’
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |                 ^~~~~~~~~~
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:35: error: no matching function for call to ‘Err<<expression error> >(int, const char [33])’
  cargo:warning=   23 |  return Err<return_type>(code, msg); \
  cargo:warning=      |                                   ^
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:28:1: note: in expansion of macro ‘CODE_CATCH’
  cargo:warning=   28 | CODE_CATCH(OCVRS_TYPE(return_type), ..., -99999, "unspecified error in OpenCV guts")
  cargo:warning=      | ^~~~~~~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |     ^~~~~~~~~~~
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:55:31: note: candidate: ‘template<class T> T Err(int, const char*)’
  cargo:warning=   55 | template<typename T> inline T Err(int code, const char* msg) {
  cargo:warning=      |                               ^~~
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:55:31: note:   template argument deduction/substitution failed:
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:23:35: error: template argument 1 is invalid
  cargo:warning=   23 |  return Err<return_type>(code, msg); \
  cargo:warning=      |                                   ^
  cargo:warning=/build/dev/opencv-rust/src_cpp/ocvrs_common.hpp:28:1: note: in expansion of macro ‘CODE_CATCH’
  cargo:warning=   28 | CODE_CATCH(OCVRS_TYPE(return_type), ..., -99999, "unspecified error in OpenCV guts")
  cargo:warning=      | ^~~~~~~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1859:5: note: in expansion of macro ‘OCVRS_CATCH’
  cargo:warning= 1859 |   } OCVRS_CATCH(OCVRS_TYPE(Result<cv::detail::GraphCutSeamFinderGpu*>))
  cargo:warning=      |     ^~~~~~~~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1855:119: warning: unused parameter ‘cost_type’ [-Wunused-parameter]
  cargo:warning= 1855 |  Result<cv::detail::GraphCutSeamFinderGpu*> cv_detail_GraphCutSeamFinderGpu_GraphCutSeamFinderGpu_int_float_float(int cost_type, float terminal_cost, float bad_region_penalty) {
  cargo:warning=      |                                                                                                                   ~~~~^~~~~~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1855:136: warning: unused parameter ‘terminal_cost’ [-Wunused-parameter]
  cargo:warning= 1855 |  Result<cv::detail::GraphCutSeamFinderGpu*> cv_detail_GraphCutSeamFinderGpu_GraphCutSeamFinderGpu_int_float_float(int cost_type, float terminal_cost, float bad_region_penalty) {
  cargo:warning=      |                                                                                                                                  ~~~~~~^~~~~~~~~~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1855:157: warning: unused parameter ‘bad_region_penalty’ [-Wunused-parameter]
  cargo:warning= 1855 |  Result<cv::detail::GraphCutSeamFinderGpu*> cv_detail_GraphCutSeamFinderGpu_GraphCutSeamFinderGpu_int_float_float(int cost_type, float terminal_cost, float bad_region_penalty) {
  cargo:warning=      |                                                                                                                                                       ~~~~~~^~~~~~~~~~~~~~~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp: At global scope:
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1862:118: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
  cargo:warning= 1862 |  Result_void cv_detail_GraphCutSeamFinderGpu_find_const_vector_UMat_R_const_vector_Point_R_vector_UMat_R(cv::detail::GraphCutSeamFinderGpu* instance, const std::vector<cv::UMat>* src, const std::vector<cv::Point>* corners, std::vector<cv::UMat>* masks) {
  cargo:warning=      |                                                                                                                      ^~~~~~~~~~~~~~~~~~~~~
  cargo:warning=      |                                                                                                                      GraphCutSeamFinder
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1862:141: error: ‘instance’ was not declared in this scope
  cargo:warning= 1862 |  Result_void cv_detail_GraphCutSeamFinderGpu_find_const_vector_UMat_R_const_vector_Point_R_vector_UMat_R(cv::detail::GraphCutSeamFinderGpu* instance, const std::vector<cv::UMat>* src, const std::vector<cv::Point>* corners, std::vector<cv::UMat>* masks) {
  cargo:warning=      |                                                                                                                                             ^~~~~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1862:151: error: expected primary-expression before ‘const’
  cargo:warning= 1862 |  Result_void cv_detail_GraphCutSeamFinderGpu_find_const_vector_UMat_R_const_vector_Point_R_vector_UMat_R(cv::detail::GraphCutSeamFinderGpu* instance, const std::vector<cv::UMat>* src, const std::vector<cv::Point>* corners, std::vector<cv::UMat>* masks) {
  cargo:warning=      |                                                                                                                                                       ^~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1862:185: error: expected primary-expression before ‘const’
  cargo:warning= 1862 |  Result_void cv_detail_GraphCutSeamFinderGpu_find_const_vector_UMat_R_const_vector_Point_R_vector_UMat_R(cv::detail::GraphCutSeamFinderGpu* instance, const std::vector<cv::UMat>* src, const std::vector<cv::Point>* corners, std::vector<cv::UMat>* masks) {
  cargo:warning=      |                                                                                                                                                                                         ^~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1862:245: error: expected primary-expression before ‘*’ token
  cargo:warning= 1862 |  Result_void cv_detail_GraphCutSeamFinderGpu_find_const_vector_UMat_R_const_vector_Point_R_vector_UMat_R(cv::detail::GraphCutSeamFinderGpu* instance, const std::vector<cv::UMat>* src, const std::vector<cv::Point>* corners, std::vector<cv::UMat>* masks) {
  cargo:warning=      |                                                                                                                                                                                                                                                     ^
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1862:247: error: ‘masks’ was not declared in this scope
  cargo:warning= 1862 |  Result_void cv_detail_GraphCutSeamFinderGpu_find_const_vector_UMat_R_const_vector_Point_R_vector_UMat_R(cv::detail::GraphCutSeamFinderGpu* instance, const std::vector<cv::UMat>* src, const std::vector<cv::Point>* corners, std::vector<cv::UMat>* masks) {
  cargo:warning=      |                                                                                                                                                                                                                                                       ^~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1862:254: error: expected ‘,’ or ‘;’ before ‘{’ token
  cargo:warning= 1862 |  Result_void cv_detail_GraphCutSeamFinderGpu_find_const_vector_UMat_R_const_vector_Point_R_vector_UMat_R(cv::detail::GraphCutSeamFinderGpu* instance, const std::vector<cv::UMat>* src, const std::vector<cv::Point>* corners, std::vector<cv::UMat>* masks) {
  cargo:warning=      |                                                                                                                                                                                                                                                              ^
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1869:88: error: ‘GraphCutSeamFinderGpu’ is not a member of ‘cv::detail’; did you mean ‘GraphCutSeamFinder’?
  cargo:warning= 1869 |  Result_void cv_detail_GraphCutSeamFinderGpu_findInPair_size_t_size_t_Rect(cv::detail::GraphCutSeamFinderGpu* instance, size_t first, size_t second, cv::Rect* roi) {
  cargo:warning=      |                                                                                        ^~~~~~~~~~~~~~~~~~~~~
  cargo:warning=      |                                                                                        GraphCutSeamFinder
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1869:111: error: ‘instance’ was not declared in this scope
  cargo:warning= 1869 |  Result_void cv_detail_GraphCutSeamFinderGpu_findInPair_size_t_size_t_Rect(cv::detail::GraphCutSeamFinderGpu* instance, size_t first, size_t second, cv::Rect* roi) {
  cargo:warning=      |                                                                                                               ^~~~~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1869:128: error: expected primary-expression before ‘first’
  cargo:warning= 1869 |  Result_void cv_detail_GraphCutSeamFinderGpu_findInPair_size_t_size_t_Rect(cv::detail::GraphCutSeamFinderGpu* instance, size_t first, size_t second, cv::Rect* roi) {
  cargo:warning=      |                                                                                                                                ^~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1869:142: error: expected primary-expression before ‘second’
  cargo:warning= 1869 |  Result_void cv_detail_GraphCutSeamFinderGpu_findInPair_size_t_size_t_Rect(cv::detail::GraphCutSeamFinderGpu* instance, size_t first, size_t second, cv::Rect* roi) {
  cargo:warning=      |                                                                                                                                              ^~~~~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1869:158: error: expected primary-expression before ‘*’ token
  cargo:warning= 1869 |  Result_void cv_detail_GraphCutSeamFinderGpu_findInPair_size_t_size_t_Rect(cv::detail::GraphCutSeamFinderGpu* instance, size_t first, size_t second, cv::Rect* roi) {
  cargo:warning=      |                                                                                                                                                              ^
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1869:160: error: ‘roi’ was not declared in this scope
  cargo:warning= 1869 |  Result_void cv_detail_GraphCutSeamFinderGpu_findInPair_size_t_size_t_Rect(cv::detail::GraphCutSeamFinderGpu* instance, size_t first, size_t second, cv::Rect* roi) {
  cargo:warning=      |                                                                                                                                                                ^~~
  cargo:warning=/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp:1869:165: error: expected ‘,’ or ‘;’ before ‘{’ token
  cargo:warning= 1869 |  Result_void cv_detail_GraphCutSeamFinderGpu_findInPair_size_t_size_t_Rect(cv::detail::GraphCutSeamFinderGpu* instance, size_t first, size_t second, cv::Rect* roi) {
  cargo:warning=      |                                                                                                                                                                     ^
  exit code: 0
  cargo:warning=cc1plus: note: unrecognized command-line option ‘-Wno-return-type-c-linkage’ may have been intended to silence earlier diagnostics
  exit code: 1
  exit code: 0
  exit code: 0

  --- stderr
  === Crate version: Some("0.47.0")
  === Environment configuration:
  ===   OPENCV_HEADER_DIR = None
  ===   OPENCV_PACKAGE_NAME = None
  ===   OPENCV_PKGCONFIG_NAME = None
  ===   OPENCV_CMAKE_NAME = None
  ===   OPENCV_CMAKE_BIN = None
  ===   OPENCV_VCPKG_NAME = None
  ===   OPENCV_LINK_LIBS = None
  ===   OPENCV_LINK_PATHS = None
  ===   OPENCV_INCLUDE_PATHS = None
  ===   OPENCV_DISABLE_PROBES = None
  ===   OPENCV_CLANG_STDLIB_PATH = None
  ===   OPENCV_MODULE_WHITELIST = None
  ===   OPENCV_MODULE_BLACKLIST = None
  ===   CMAKE_PREFIX_PATH = None
  ===   OpenCV_DIR = None
  ===   PKG_CONFIG_PATH = None
  ===   VCPKG_ROOT = None
  ===   VCPKGRS_DYNAMIC = None
  === Enabled features:
  ===   OPENCV_4
  === 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
  === Can't probe using: environment, continuing with other methods because: Some environment variables are missing
  === Probing OpenCV library using pkg_config
  === OpenCV library configuration: Library {
      include_paths: [
          "/opt/opencv/include/opencv4",
      ],
      version: "4.5.1",
      cargo_metadata: [
          "cargo:rustc-link-search=/opt/opencv/lib64",
          "cargo:rustc-link-search=/opt/opencv/lib64/opencv4/3rdparty",
          "cargo:rustc-link-search=/tmp/build/lib",
          "cargo:rustc-link-search=/lib64",
          "cargo:rustc-link-lib=opencv_gapi",
          "cargo:rustc-link-lib=opencv_highgui",
          "cargo:rustc-link-lib=opencv_ml",
          "cargo:rustc-link-lib=opencv_objdetect",
          "cargo:rustc-link-lib=opencv_photo",
          "cargo:rustc-link-lib=opencv_stitching",
          "cargo:rustc-link-lib=opencv_video",
          "cargo:rustc-link-lib=opencv_calib3d",
          "cargo:rustc-link-lib=opencv_features2d",
          "cargo:rustc-link-lib=opencv_dnn",
          "cargo:rustc-link-lib=opencv_flann",
          "cargo:rustc-link-lib=opencv_videoio",
          "cargo:rustc-link-lib=opencv_imgcodecs",
          "cargo:rustc-link-lib=opencv_imgproc",
          "cargo:rustc-link-lib=opencv_core",
          "cargo:rustc-link-lib=protobuf",
          "cargo:rustc-link-lib=zlib",
          "cargo:rustc-link-lib=jpeg-turbo",
          "cargo:rustc-link-lib=png",
          "cargo:rustc-link-lib=openjp2",
          "cargo:rustc-link-lib=ade",
          "cargo:rustc-link-lib=gthread-2.0",
          "cargo:rustc-link-lib=glib-2.0",
          "cargo:rustc-link-lib=dl",
          "cargo:rustc-link-lib=m",
          "cargo:rustc-link-lib=pthread",
          "cargo:rustc-link-lib=rt",
      ],
  }
  === Found OpenCV library version: 4.5.1 in headers located at: /build/dev/opencv-rust/headers/4

  error occurred: Command "c++" "-O1" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "/build/dev/opencv-rust/src_cpp" "-I" "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out" "-I" "." "-I" "/opt/opencv/include/opencv4" "-Wall" "-Wextra" "-std=c++11" "-Wno-class-memaccess" "-Wno-deprecated-declarations" "-Wno-deprecated-copy" "-Wno-unused-variable" "-Wno-return-type-c-linkage" "-o" "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.o" "-c" "/target/x86_64-unknown-linux-gnu/debug/build/opencv-813bde3d11284590/out/stitching.cpp" with args "c++" did not execute successfully (status code exit code: 1).
twistedfall commented 3 years ago

Both of those logs seem to be caused by the mismatch between installed and generated headers, so there is no going around buildtime-bindgen here.