profile
viewpoint

twistedfall/opencv-rust 529

Rust bindings for OpenCV 3 & 4

twistedfall/utorrentctl 47

µTorrent cli remote control utility and WebUI API library for Python 3

twistedfall/serde_rusqlite 20

Serialize/deserialize rusqlite rows

twistedfall/libstrophe 4

Rust ergonomic wrapper for libstrophe

twistedfall/gentoo 0

[MIRROR] Official Gentoo ebuild repository

twistedfall/libstrophe-sys-bindgen 0

Rust bindings for libstrophe, generated using bindgen

issue closedtwistedfall/opencv-rust

Linux running error: (-218:No OpenGL support) Library was built without OpenGL support in function 'cvNamedWindow'

After I solved the #182 issue, my project runs fine on MacOSX, then I try to build and run on Linux-mint(x86_64) and Raspberry Pi4 (aarch64). Both build successfully but cannot run, it shows the error below:

Title Description
OS Linux mint 20 (X86_64)</br>Ubuntu-server 20.04 (aarch64)
Rust version rustc 1.48
OpenCV sudo apt install libopencv-dev, version is 4.2.0
Cargo.toml opencv = { version = "0.46", features = ["clang-runtime"] }
Error OpenCV(4.2.0) ../modules/highgui/src/window_gtk.cpp:1065: error: (-218:No OpenGL support) Library was built without OpenGL support in function 'cvNamedWindow' (code: -218)

There is NO any error during the building process, only fail when running.

I also had a try on installing XQuartz then run ssh -X to run the program, got the same error.

As the error mentions about GTK, then I remember there is a WITH_GTK=OFF option in the ci build script in this repo like below:

-D WITH_GTK=OFF
-D WITH_GTK_2_X=OFF

Is that the reason to cause the problem???

How to reproduce

Linux Mint 20 clean installation, then install the opencv compilation dependencies:

sudo apt install libopencv-dev libclang-dev build-essential clang

Create new rust project

cargo new opencv-issue-183-test
cd opencv-issue-183-test

Cargo.toml:

[package]
name = "opencv-issue-183-test"
version = "0.1.0"
authors = ["Wison Ye <wisonye@gmail.com>"]
edition = "2018"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
opencv = { vesion = "0.46", features = ["clang-runtime"] }

src/main.rs:

use opencv::{ highgui, imgcodecs };

///
fn main() -> opencv::Result<()> {
    // Pay attention that CANNOT use relative path, otherwise report -215 error
    let test_file = "/home/wison/Downloads/adas-demo-test-resources/images/1.png";

    let window_name = "Test Image Preview";
    let image = imgcodecs::imread(test_file, imgcodecs::IMREAD_COLOR)?;

    let window_flags = highgui::WINDOW_AUTOSIZE
        | highgui::WINDOW_KEEPRATIO
        | highgui::WINDOW_OPENGL // This flag cause -218 error
        | highgui::WINDOW_GUI_NORMAL;
    highgui::named_window(window_name, window_flags)?;

    highgui::imshow(window_name, &image)?;

    let _ = highgui::wait_key(0);
    let _ = highgui::destroy_window(window_name);
    Ok(())
}

Then cargo run to see the error.

closed time in 2 days

wisonye

issue commenttwistedfall/opencv-rust

Linux running error: (-218:No OpenGL support) Library was built without OpenGL support in function 'cvNamedWindow'

I see, and if you omit the highgui::WINDOW_OPENGL flag, the application works as expected?

Yes, exactly, if you don't think this is a bug related to opencv or no fix a this moment, then just close it:)

wisonye

comment created time in 3 days

issue commenttwistedfall/opencv-rust

Linux running error: (-218:No OpenGL support) Library was built without OpenGL support in function 'cvNamedWindow'

That’s weird, are you using any OpenGL functionality in your application? Will it be possible for you to crate and share minimum reproducible example for that issue?

@twistedfall I've already updated the issue with reproduce steps, plz have a try :)

wisonye

comment created time in 3 days

issue closedtwistedfall/opencv-rust

Build always fail when building with `tfilte` crate, separate build each one if fine!

I'm building a project that needs opencv and tflite both work together. But I can't build the program when putting two of them into the same project.

Title Description
OS MacO Mojave
Rust version rustc 1.47.0 (18bf6b4f0 2020-10-07)
OpenCV The way to insatll: brew install opencv</br>location: /usr/local/Cellar/opencv/4.5.0_2/
$DYLD_LIBRARY_PATH It doesn't set.
$DYLD_FALLBACK_LIBRARY_PATH /Library/Developer/CommandLineTools/usr/lib
ls -lht $DYLD_FALLBACK_LIBRARY_PATH/libclang.dylib /Library/Developer/CommandLineTools/usr/lib/libclang.dylib
Error thread 'main' panicked at 'a libclang shared library is not loaded on this thread', /Users/wison/.cargo/registry/src/github.com-1ecc6299db9ec823/clang-sys-1.0.3/src/lib.rs:1672:1

How to reproduce

It's super easy:

# Just create a blank new project
cargo new test-opencv-and-tfilte-build-together
cd test-opencv-and-tfilte-build-together/

# And then put both dependencies there
vim Cargo.toml

Here is the Cargo.toml content:

[package]
name = "test-opencv-and-tfilte-build-together"
version = "0.1.0"
authors = ["“WisonYe” <wisonye@gmail.com>"]
edition = "2018"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
opencv = "0.46"
tflite = "0.9.2"

Then build it and you will see the error, below is the entire cargo buildoutput:

   Updating crates.io index
   Compiling libc v0.2.80
   Compiling memchr v2.3.4
   Compiling lazy_static v1.4.0
   Compiling proc-macro2 v1.0.24
   Compiling glob v0.3.0
   Compiling unicode-xid v0.2.1
   Compiling syn v1.0.52
   Compiling cfg-if v1.0.0
   Compiling regex-syntax v0.6.21
   Compiling version_check v0.9.2
   Compiling shlex v0.1.1
   Compiling log v0.4.11
   Compiling bitflags v1.2.1
   Compiling unicode-width v0.1.8
   Compiling cfg-if v0.1.10
   Compiling quick-error v1.2.3
   Compiling vec_map v0.8.2
   Compiling strsim v0.8.0
   Compiling if_rust_version v1.0.0
   Compiling termcolor v1.1.2
   Compiling bindgen v0.55.1
   Compiling ansi_term v0.11.0
   Compiling byteorder v1.3.4
   Compiling once_cell v1.5.2
   Compiling dunce v1.0.1
   Compiling percent-encoding v2.1.0
   Compiling lazycell v1.3.0
   Compiling peeking_take_while v0.1.2
   Compiling semver-parser v0.7.0
   Compiling rustc-hash v1.1.0
   Compiling autocfg v1.0.1
   Compiling maplit v1.0.2
   Compiling pkg-config v0.3.19
   Compiling fs_extra v1.2.0
   Compiling vcpkg v0.2.10
   Compiling maybe-owned v0.3.4
   Compiling thread_local v1.0.1
   Compiling libloading v0.6.5
   Compiling textwrap v0.11.0
   Compiling humantime v1.3.0
   Compiling clang-sys v1.0.3
   Compiling nom v5.1.2
   Compiling semver v0.10.0
   Compiling num-traits v0.2.14
   Compiling aho-corasick v0.7.15
   Compiling jobserver v0.1.21
   Compiling atty v0.2.14
   Compiling which v3.1.1
   Compiling quote v1.0.7
   Compiling cc v1.0.65
   Compiling clap v2.33.3
   Compiling regex v1.4.2
   Compiling clang v1.0.2
   Compiling cexpr v0.4.0
   Compiling env_logger v0.7.1
   Compiling opencv-binding-generator v0.21.3
   Compiling cpp_common v0.5.5
   Compiling cpp_build v0.5.5
   Compiling opencv v0.46.3
   Compiling cpp_macros v0.5.5
   Compiling thiserror-impl v1.0.22
   Compiling tflite v0.9.3
   Compiling cpp v0.5.5
error: failed to run custom build command for `opencv v0.46.3`

Caused by:
  process didn't exit successfully: `/Users/wison/temp/test-opencv-and-tfilte-build-together/target/debug/build/opencv-a2a3f744a20ca410/build-script-build` (exit code: 101)
  --- 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-apple-darwin
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_apple_darwin
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-apple-darwin
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_apple_darwin
  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-apple-darwin
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_apple_darwin
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=OPENCV4_STATIC
  cargo:rerun-if-env-changed=OPENCV4_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG
  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-apple-darwin
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_apple_darwin
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-apple-darwin
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_apple_darwin
  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-apple-darwin
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_apple_darwin
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR

  --- stderr
  === Crate version: Some("0.46.3")
  === 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:
  ===   BINDING_GENERATOR
  ===   BUILDTIME_BINDGEN
  ===   CLANG
  ===   DEFAULT
  ===   JOBSERVER
  ===   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: [
          "/usr/local/Cellar/opencv/4.5.0_2/include/opencv4",
      ],
      version: "4.5.0",
      cargo_metadata: [
          "cargo:rustc-link-search=/usr/local/Cellar/opencv/4.5.0_2/lib",
          "cargo:rustc-link-search=framework=/usr/local/Cellar/opencv/4.5.0_2/lib",
          "cargo:rustc-link-lib=opencv_gapi",
          "cargo:rustc-link-lib=opencv_stitching",
          "cargo:rustc-link-lib=opencv_alphamat",
          "cargo:rustc-link-lib=opencv_aruco",
          "cargo:rustc-link-lib=opencv_bgsegm",
          "cargo:rustc-link-lib=opencv_bioinspired",
          "cargo:rustc-link-lib=opencv_ccalib",
          "cargo:rustc-link-lib=opencv_dnn_objdetect",
          "cargo:rustc-link-lib=opencv_dnn_superres",
          "cargo:rustc-link-lib=opencv_dpm",
          "cargo:rustc-link-lib=opencv_highgui",
          "cargo:rustc-link-lib=opencv_face",
          "cargo:rustc-link-lib=opencv_freetype",
          "cargo:rustc-link-lib=opencv_fuzzy",
          "cargo:rustc-link-lib=opencv_hfs",
          "cargo:rustc-link-lib=opencv_img_hash",
          "cargo:rustc-link-lib=opencv_intensity_transform",
          "cargo:rustc-link-lib=opencv_line_descriptor",
          "cargo:rustc-link-lib=opencv_mcc",
          "cargo:rustc-link-lib=opencv_quality",
          "cargo:rustc-link-lib=opencv_rapid",
          "cargo:rustc-link-lib=opencv_reg",
          "cargo:rustc-link-lib=opencv_rgbd",
          "cargo:rustc-link-lib=opencv_saliency",
          "cargo:rustc-link-lib=opencv_sfm",
          "cargo:rustc-link-lib=opencv_stereo",
          "cargo:rustc-link-lib=opencv_structured_light",
          "cargo:rustc-link-lib=opencv_phase_unwrapping",
          "cargo:rustc-link-lib=opencv_superres",
          "cargo:rustc-link-lib=opencv_optflow",
          "cargo:rustc-link-lib=opencv_surface_matching",
          "cargo:rustc-link-lib=opencv_tracking",
          "cargo:rustc-link-lib=opencv_datasets",
          "cargo:rustc-link-lib=opencv_text",
          "cargo:rustc-link-lib=opencv_dnn",
          "cargo:rustc-link-lib=opencv_plot",
          "cargo:rustc-link-lib=opencv_videostab",
          "cargo:rustc-link-lib=opencv_videoio",
          "cargo:rustc-link-lib=opencv_viz",
          "cargo:rustc-link-lib=opencv_xfeatures2d",
          "cargo:rustc-link-lib=opencv_shape",
          "cargo:rustc-link-lib=opencv_ml",
          "cargo:rustc-link-lib=opencv_ximgproc",
          "cargo:rustc-link-lib=opencv_video",
          "cargo:rustc-link-lib=opencv_xobjdetect",
          "cargo:rustc-link-lib=opencv_objdetect",
          "cargo:rustc-link-lib=opencv_calib3d",
          "cargo:rustc-link-lib=opencv_imgcodecs",
          "cargo:rustc-link-lib=opencv_features2d",
          "cargo:rustc-link-lib=opencv_flann",
          "cargo:rustc-link-lib=opencv_xphoto",
          "cargo:rustc-link-lib=opencv_photo",
          "cargo:rustc-link-lib=opencv_imgproc",
          "cargo:rustc-link-lib=opencv_core",
      ],
  }
  === Found OpenCV library version: 4.5.0 in headers located at: /usr/local/Cellar/opencv/4.5.0_2/include/opencv4
  === Using OpenCV headers from: /usr/local/Cellar/opencv/4.5.0_2/include/opencv4/opencv2
  === Generating code in: /Users/wison/temp/test-opencv-and-tfilte-build-together/target/debug/build/opencv-3904f7d25110ecf3/out
  === Placing generated bindings into: /Users/wison/.cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.46.3/bindings/rust/opencv_4
  thread 'main' panicked at 'a `libclang` shared library is not loaded on this thread', /Users/wison/.cargo/registry/src/github.com-1ecc6299db9ec823/clang-sys-1.0.3/src/lib.rs:1672:1
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: build failed

And then I open the /Users/wison/.cargo/registry/src/github.com-1ecc6299db9ec823/clang-sys-1.0.3/src/lib.rs and locate to 1672 line to see what's going on there, I got nothing useful:

1672-line

</hr>

Again, the opencv and tflite both build successfully if they're in different rust project, only got the error above when they put together into the same project (even nested crate like what I'm doing in my project). Here is my rust project structure:

my-project-structure

It's very urgent, plz help :)

closed time in 3 days

wisonye

issue commenttwistedfall/opencv-rust

Build always fail when building with `tfilte` crate, separate build each one if fine!

It still enable the opencv-4feature and buildtime-bindgen feature, as I didn't put default-features = false there, right?

That’s correct.

what the main difference between Dynamically linking and runtime feature (clang_sys::load)

As far as I remember for clang-sys dynamic linking relies on your system linker to do the job, and runtime uses dlopen to load libclang. In this case the difference doesn’t really matter, the problem is that bindgen crate (a dependency of tfilte) depends on clang-sys with hard-enabled runtime feature and because of that cargo makes this feature also enabled for every crate that depends on clang-sys. opencv crates tries to use multiple threads to generate modules and clang-sys with runtime doesn't like that (hence the panic). That's why we need to use a different approach to parallelize the build. When you use clang-runtime feature the crate uses multiple processes instead of multiple threads.

@twistedfall That's a very clear explanation, thank you so much!! 👍

wisonye

comment created time in 3 days

issue openedtwistedfall/opencv-rust

Linux running error: (-218:No OpenGL support) Library was built without OpenGL support in function 'cvNamedWindow'

After I solved the #182 issue, my project runs fine on MacOSX, then I try to build and run on Linux-mint(x86_64) and Raspberry Pi4 (aarch64). Both build successfully but cannot run, it shows the error below:

Title Description
OS Linux mint 20 (X86_64)</br>Ubuntu-server 20.04 (aarch64)
Rust version rustc 1.48
OpenCV sudo apt install libopencv-dev, version is 4.2.0
Cargo.toml opencv = { version = "0.46", features = ["clang-runtime"] }
Error OpenCV(4.2.0) ../modules/highgui/src/window_gtk.cpp:1065: error: (-218:No OpenGL support) Library was built without OpenGL support in function 'cvNamedWindow' (code: -218)

There is NO any error during the building process, only fail when running.

I also had a try on installing XQuartz then run ssh -X to run the program, got the same error.

As the error mentions about GTK, then I remember there is a WITH_GTK=OFF option in the ci build script in this repo like below:

-D WITH_GTK=OFF
-D WITH_GTK_2_X=OFF

Is that the reason to cause the problem???

created time in 4 days

startedtwistedfall/opencv-rust

started time in 4 days

issue commenttwistedfall/opencv-rust

Build always fail when building with `tfilte` crate, separate build each one if fine!

I confirmed that focus on the error 'a libclang shared library is not loaded on this thread', this is the correct fixed:

opencv = { version = "0.46", features = ["clang-runtime"] }

Screen Shot 2020-11-29 at 1 47 20 PM

I think that's why the error comes:)

@twistedfall But before you close this issue, if possible, I just wonder what the main difference between Dynamically linking and runtime feature (clang_sys::load)? As for my understanding, they both load the libclang shared library (libclang.so on Linux, libclang.dylib on macOS, libclang.dll on Windows) when the program runs, or my I made a mistake on that?

wisonye

comment created time in 4 days

issue commenttwistedfall/opencv-rust

Build always fail when building with `tfilte` crate, separate build each one if fine!

@twistedfall If you mean like below, then it works:

[dependencies]
opencv = { version = "0.46", features = ["clang-runtime"] }
tflite = "0.9.2"

But just want to confirm that:

It still enable the opencv-4feature and buildtime-bindgen feature, as I didn't put default-features = false there, right?

Also, I will confirm that works or not on my project after lunch, I will update the result, thanks for your help :)

wisonye

comment created time in 4 days

issue openedtwistedfall/opencv-rust

Build always fail when building with `tfilte` crate, separate build each one if fine!

I'm building a project that needs opencv and tflite both work together. But I can't build the program when putting two of them into the same project.

Title Description
OS MacO Mojave
OpenCV The way to insatll: brew install opencv</br>location: /usr/local/Cellar/opencv/4.5.0_2/
$DYLD_LIBRARY_PATH It doesn't set.
$DYLD_FALLBACK_LIBRARY_PATH /Library/Developer/CommandLineTools/usr/lib
ls -lht $DYLD_FALLBACK_LIBRARY_PATH/libclang.dylib /Library/Developer/CommandLineTools/usr/lib/libclang.dylib
Error thread 'main' panicked at 'a libclang shared library is not loaded on this thread', /Users/wison/.cargo/registry/src/github.com-1ecc6299db9ec823/clang-sys-1.0.3/src/lib.rs:1672:1

How to reproduce

It's super easy:

# Just create a blank new project
cargo new test-opencv-and-tfilte-build-together
cd test-opencv-and-tfilte-build-together/

# And then put both dependencies there
vim Cargo.toml

Here is the Cargo.toml content:

[package]
name = "test-opencv-and-tfilte-build-together"
version = "0.1.0"
authors = ["“WisonYe” <wisonye@gmail.com>"]
edition = "2018"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
opencv = "0.46"
tflite = "0.9.2"

Then build it and you will see the error, below is the entire cargo buildoutput:

   Updating crates.io index
   Compiling libc v0.2.80
   Compiling memchr v2.3.4
   Compiling lazy_static v1.4.0
   Compiling proc-macro2 v1.0.24
   Compiling glob v0.3.0
   Compiling unicode-xid v0.2.1
   Compiling syn v1.0.52
   Compiling cfg-if v1.0.0
   Compiling regex-syntax v0.6.21
   Compiling version_check v0.9.2
   Compiling shlex v0.1.1
   Compiling log v0.4.11
   Compiling bitflags v1.2.1
   Compiling unicode-width v0.1.8
   Compiling cfg-if v0.1.10
   Compiling quick-error v1.2.3
   Compiling vec_map v0.8.2
   Compiling strsim v0.8.0
   Compiling if_rust_version v1.0.0
   Compiling termcolor v1.1.2
   Compiling bindgen v0.55.1
   Compiling ansi_term v0.11.0
   Compiling byteorder v1.3.4
   Compiling once_cell v1.5.2
   Compiling dunce v1.0.1
   Compiling percent-encoding v2.1.0
   Compiling lazycell v1.3.0
   Compiling peeking_take_while v0.1.2
   Compiling semver-parser v0.7.0
   Compiling rustc-hash v1.1.0
   Compiling autocfg v1.0.1
   Compiling maplit v1.0.2
   Compiling pkg-config v0.3.19
   Compiling fs_extra v1.2.0
   Compiling vcpkg v0.2.10
   Compiling maybe-owned v0.3.4
   Compiling thread_local v1.0.1
   Compiling libloading v0.6.5
   Compiling textwrap v0.11.0
   Compiling humantime v1.3.0
   Compiling clang-sys v1.0.3
   Compiling nom v5.1.2
   Compiling semver v0.10.0
   Compiling num-traits v0.2.14
   Compiling aho-corasick v0.7.15
   Compiling jobserver v0.1.21
   Compiling atty v0.2.14
   Compiling which v3.1.1
   Compiling quote v1.0.7
   Compiling cc v1.0.65
   Compiling clap v2.33.3
   Compiling regex v1.4.2
   Compiling clang v1.0.2
   Compiling cexpr v0.4.0
   Compiling env_logger v0.7.1
   Compiling opencv-binding-generator v0.21.3
   Compiling cpp_common v0.5.5
   Compiling cpp_build v0.5.5
   Compiling opencv v0.46.3
   Compiling cpp_macros v0.5.5
   Compiling thiserror-impl v1.0.22
   Compiling tflite v0.9.3
   Compiling cpp v0.5.5
error: failed to run custom build command for `opencv v0.46.3`

Caused by:
  process didn't exit successfully: `/Users/wison/temp/test-opencv-and-tfilte-build-together/target/debug/build/opencv-a2a3f744a20ca410/build-script-build` (exit code: 101)
  --- 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-apple-darwin
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_apple_darwin
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-apple-darwin
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_apple_darwin
  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-apple-darwin
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_apple_darwin
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=OPENCV4_STATIC
  cargo:rerun-if-env-changed=OPENCV4_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG
  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-apple-darwin
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_apple_darwin
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-apple-darwin
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_apple_darwin
  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-apple-darwin
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_apple_darwin
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR

  --- stderr
  === Crate version: Some("0.46.3")
  === 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:
  ===   BINDING_GENERATOR
  ===   BUILDTIME_BINDGEN
  ===   CLANG
  ===   DEFAULT
  ===   JOBSERVER
  ===   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: [
          "/usr/local/Cellar/opencv/4.5.0_2/include/opencv4",
      ],
      version: "4.5.0",
      cargo_metadata: [
          "cargo:rustc-link-search=/usr/local/Cellar/opencv/4.5.0_2/lib",
          "cargo:rustc-link-search=framework=/usr/local/Cellar/opencv/4.5.0_2/lib",
          "cargo:rustc-link-lib=opencv_gapi",
          "cargo:rustc-link-lib=opencv_stitching",
          "cargo:rustc-link-lib=opencv_alphamat",
          "cargo:rustc-link-lib=opencv_aruco",
          "cargo:rustc-link-lib=opencv_bgsegm",
          "cargo:rustc-link-lib=opencv_bioinspired",
          "cargo:rustc-link-lib=opencv_ccalib",
          "cargo:rustc-link-lib=opencv_dnn_objdetect",
          "cargo:rustc-link-lib=opencv_dnn_superres",
          "cargo:rustc-link-lib=opencv_dpm",
          "cargo:rustc-link-lib=opencv_highgui",
          "cargo:rustc-link-lib=opencv_face",
          "cargo:rustc-link-lib=opencv_freetype",
          "cargo:rustc-link-lib=opencv_fuzzy",
          "cargo:rustc-link-lib=opencv_hfs",
          "cargo:rustc-link-lib=opencv_img_hash",
          "cargo:rustc-link-lib=opencv_intensity_transform",
          "cargo:rustc-link-lib=opencv_line_descriptor",
          "cargo:rustc-link-lib=opencv_mcc",
          "cargo:rustc-link-lib=opencv_quality",
          "cargo:rustc-link-lib=opencv_rapid",
          "cargo:rustc-link-lib=opencv_reg",
          "cargo:rustc-link-lib=opencv_rgbd",
          "cargo:rustc-link-lib=opencv_saliency",
          "cargo:rustc-link-lib=opencv_sfm",
          "cargo:rustc-link-lib=opencv_stereo",
          "cargo:rustc-link-lib=opencv_structured_light",
          "cargo:rustc-link-lib=opencv_phase_unwrapping",
          "cargo:rustc-link-lib=opencv_superres",
          "cargo:rustc-link-lib=opencv_optflow",
          "cargo:rustc-link-lib=opencv_surface_matching",
          "cargo:rustc-link-lib=opencv_tracking",
          "cargo:rustc-link-lib=opencv_datasets",
          "cargo:rustc-link-lib=opencv_text",
          "cargo:rustc-link-lib=opencv_dnn",
          "cargo:rustc-link-lib=opencv_plot",
          "cargo:rustc-link-lib=opencv_videostab",
          "cargo:rustc-link-lib=opencv_videoio",
          "cargo:rustc-link-lib=opencv_viz",
          "cargo:rustc-link-lib=opencv_xfeatures2d",
          "cargo:rustc-link-lib=opencv_shape",
          "cargo:rustc-link-lib=opencv_ml",
          "cargo:rustc-link-lib=opencv_ximgproc",
          "cargo:rustc-link-lib=opencv_video",
          "cargo:rustc-link-lib=opencv_xobjdetect",
          "cargo:rustc-link-lib=opencv_objdetect",
          "cargo:rustc-link-lib=opencv_calib3d",
          "cargo:rustc-link-lib=opencv_imgcodecs",
          "cargo:rustc-link-lib=opencv_features2d",
          "cargo:rustc-link-lib=opencv_flann",
          "cargo:rustc-link-lib=opencv_xphoto",
          "cargo:rustc-link-lib=opencv_photo",
          "cargo:rustc-link-lib=opencv_imgproc",
          "cargo:rustc-link-lib=opencv_core",
      ],
  }
  === Found OpenCV library version: 4.5.0 in headers located at: /usr/local/Cellar/opencv/4.5.0_2/include/opencv4
  === Using OpenCV headers from: /usr/local/Cellar/opencv/4.5.0_2/include/opencv4/opencv2
  === Generating code in: /Users/wison/temp/test-opencv-and-tfilte-build-together/target/debug/build/opencv-3904f7d25110ecf3/out
  === Placing generated bindings into: /Users/wison/.cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.46.3/bindings/rust/opencv_4
  thread 'main' panicked at 'a `libclang` shared library is not loaded on this thread', /Users/wison/.cargo/registry/src/github.com-1ecc6299db9ec823/clang-sys-1.0.3/src/lib.rs:1672:1
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: build failed

And then I open the /Users/wison/.cargo/registry/src/github.com-1ecc6299db9ec823/clang-sys-1.0.3/src/lib.rs and locate to 1672 line to see what's going on there, I got nothing useful:

1672-line

</hr>

Again, the opencv and tflite both build successfully if they're in different rust project, only got the error above when they put together into the same project (even nested crate like what I'm doing in my project). Here is my rust project structure:

my-project-structure

It's very urgent, plz help :)

created time in 4 days

startedtwistedfall/opencv-rust

started time in 4 days

PR opened twistedfall/libstrophe-sys-bindgen

Update bindgen requirement from 0.55 to 0.56

Updates the requirements on bindgen to permit the latest version. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/rust-lang/rust-bindgen/blob/master/CHANGELOG.md">bindgen's changelog</a>.</em></p> <blockquote> <h1>0.56.0</h1> <p>Released 2020/11/26</p> <h2>Added</h2> <ul> <li>Objective-c bindings generate <code>From<ChildClass> for ParentClass</code> as well as <code>TryFrom<ParentClass> for ChildClass</code> (<a href="https://github-redirect.dependabot.com/rust-lang/rust-bindgen/issues/1883">#1883</a>[]).</li> <li>Experimental dynamic library support via <code>dynamic_library_name</code> (<a href="https://github-redirect.dependabot.com/rust-lang/rust-bindgen/issues/1846">#1846</a>).</li> <li>Option to disable deriving <code>Default</code> on a per-struct basis (<a href="https://github-redirect.dependabot.com/rust-lang/rust-bindgen/issues/1930">#1930</a>).</li> </ul> <h2>Changed</h2> <ul> <li>Objective-c bindings borrow self rather than take ownership (<a href="https://github-redirect.dependabot.com/rust-lang/rust-bindgen/issues/1883">#1883</a>[]).</li> <li>Templates and enums now correctly use the same naming scheme as other types (<a href="https://github-redirect.dependabot.com/rust-lang/rust-bindgen/issues/1891">#1891</a>).</li> </ul> <h2>Fixed</h2> <ul> <li>Constructors in wasm32 now return a value. (<a href="https://github-redirect.dependabot.com/rust-lang/rust-bindgen/issues/1877">#1877</a>).</li> <li>Fixed objective-c protocol impl blocks for parent classes's protocols (<a href="https://github-redirect.dependabot.com/rust-lang/rust-bindgen/issues/1883">#1883</a>[]).</li> </ul> <p><a href="https://github-redirect.dependabot.com/rust-lang/rust-bindgen/issues/1883">#1883</a>: <a href="https://github-redirect.dependabot.com/rust-lang/rust-bindgen/issues/1883">rust-lang/rust-bindgen#1883</a></p> <hr /> <h1>0.55.1</h1> <p>Released 2020/08/24.</p> <h2>Fixed</h2> <ul> <li>Fixed a regression where anonymous enums referenced by members or such won't generate valid Rust code. (<a href="https://github-redirect.dependabot.com/rust-lang/rust-bindgen/issues/1882">#1882</a>).</li> </ul> <hr /> <h1>0.55.0</h1> <p>Released 2020/08/23.</p> <h2>Removed</h2> <ul> <li>Support for libclang 3.8 has been removed (<a href="https://github-redirect.dependabot.com/rust-lang/rust-bindgen/issues/1830">#1830</a>).</li> </ul> <h2>Added</h2> <ul> <li> <p>Added options to avoid deriving the Debug trait (<a href="https://github-redirect.dependabot.com/rust-lang/rust-bindgen/issues/1858">#1858</a>).</p> </li> <li> <p>Added options to allow to override the default anonymous field prefix (<a href="https://github-redirect.dependabot.com/rust-lang/rust-bindgen/issues/1859">#1859</a>).</p> </li> </ul> <!-- raw HTML omitted --> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/rust-lang/rust-bindgen/commit/11ae35089e4748b7e2a6f50f6bef7709af72e724"><code>11ae350</code></a> v0.56.0</li> <li><a href="https://github.com/rust-lang/rust-bindgen/commit/d8082613e2c33efbd7b5347d4c1809578d49bd7b"><code>d808261</code></a> Add --no-default <regex> flag</li> <li><a href="https://github.com/rust-lang/rust-bindgen/commit/30fb4eccb3cf3068e4132e68ba832ec148c2b786"><code>30fb4ec</code></a> Remove cfg-if dependency.</li> <li><a href="https://github.com/rust-lang/rust-bindgen/commit/01cbe4468358d843ef86e3e9a1e8ce2bb4fef95e"><code>01cbe44</code></a> dyngen: Handle variadic functions.</li> <li><a href="https://github.com/rust-lang/rust-bindgen/commit/7792d633c78d4ad39979e09a6215b656f7ec31f2"><code>7792d63</code></a> codegen: Minor nits for dynamic function generation.</li> <li><a href="https://github.com/rust-lang/rust-bindgen/commit/c2b5c46ef4ab2de1281c1d8099daa49621e29794"><code>c2b5c46</code></a> Add tests for dynamic binding generation</li> <li><a href="https://github.com/rust-lang/rust-bindgen/commit/fc5fa9a8f2847b3d53ab88b80dd86165ea4da29b"><code>fc5fa9a</code></a> Add dynamic loading support</li> <li><a href="https://github.com/rust-lang/rust-bindgen/commit/db3d170d3bb5339336e0cfc96a1653ad25793507"><code>db3d170</code></a> tests: Added option to hand check test differences.</li> <li><a href="https://github.com/rust-lang/rust-bindgen/commit/2c72903884a3b9ffc824f76fab250d36de7be74e"><code>2c72903</code></a> Rustfmt to green up CI.</li> <li><a href="https://github.com/rust-lang/rust-bindgen/commit/90b801fb4fae01f37bd040c7bc5459b06c1b7b67"><code>90b801f</code></a> Update clang-sys dependency</li> <li>Additional commits viewable in <a href="https://github.com/rust-lang/rust-bindgen/compare/v0.55.0...v0.56.0">compare view</a></li> </ul> </details> <br />

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


<details> <summary>Dependabot commands and options</summary> <br />

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Pull request limits (per update run and/or open at any time)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

</details>

+1 -1

0 comment

1 changed file

pr created time in 6 days

startedtwistedfall/opencv-rust

started time in 6 days

startedtwistedfall/opencv-rust

started time in 7 days

startedtwistedfall/opencv-rust

started time in 8 days

startedtwistedfall/opencv-rust

started time in 9 days

startedtwistedfall/opencv-rust

started time in 10 days

startedtwistedfall/opencv-rust

started time in 12 days

startedtwistedfall/opencv-rust

started time in 13 days

PR closed twistedfall/opencv-rust

Update DYLD_FALLBACK_LIBRARY_PATH

Update README.md with new path for DYLD_FALLBACK_LIBRARY_PATH.

On MacOS catalin 10.15.7 , the command line tools folder has changed. It no longer contains the Toolchains directory

+1 -1

4 comments

1 changed file

Lxrd-AJ

pr closed time in 14 days

startedtwistedfall/opencv-rust

started time in 14 days

issue closedtwistedfall/opencv-rust

Using OpenCV bundled with OpenVino SDK.

Before reporting an issue please first check the troubleshooting guide. If the issue you're encountering is not solved thereby please state the following in your bugreport:

0. Background

Hi, I am trying to use this nice package with a pre-built OpenCV, which is bundled with Intel's OpenVino. The SDK works fine with its Cpp/Python demos so that I wanted to try Rust + opencv-rust + OpenVino. I tried to make it work with some variables but I couldn't get a successful result yet so that I would like to share what's going on.

1. Operating system

$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.1 LTS"

2. The way you installed OpenCV: package, official binary distribution, manual compilation, etc.

I used OpenVino bundled OpcnCV. It is located under /opt/intel/openvino_2021/opencv and has some files as attached:

$ pwd
/opt/intel/openvino_2021/opencv

$ tree -L 2
.
├── bin
│   └── opencv_version
├── build_params.txt
├── cmake
│   ├── OpenCVConfig.cmake
│   ├── OpenCVConfig-version.cmake
│   ├── OpenCVModules.cmake
│   └── OpenCVModules-release.cmake
├── etc
│   └── licenses
├── include
│   └── opencv2
├── lib
│   ├── libopencv_calib3d.so -> libopencv_calib3d.so.4.5
│   ├── ...
│   └── libopencv_video.so.4.5.0
├── setupvars.sh
├── third-party-programs.txt
└── version.txt

7 directories, 57 files

For the variables:

$ echo $PKG_CONFIG_PATH 
/opt/intel/openvino_2021/data_processing/dl_streamer/lib/pkgconfig:/opt/intel/openvino_2021/data_processing/gstreamer/lib/pkgconfig:

$  echo $OpenCV_DIR 
/opt/intel/openvino_2021/opencv/cmake

$ echo $LD_LIBRARY_PATH
/opt/intel/openvino_2021/data_processing/dl_streamer/lib:/opt/intel/openvino_2021/data_processing/gstreamer/lib:/opt/intel/openvino_2021/opencv/lib:/opt/intel/openvino_2021/deployment_tools/ngraph/lib:/opt/intel/openvino_2021/deployment_tools/inference_engine/external/hddl_unite/lib:/opt/intel/openvino_2021/deployment_tools/inference_engine/external/hddl/lib:/opt/intel/openvino_2021/deployment_tools/inference_engine/external/gna/lib:/opt/intel/openvino_2021/deployment_tools/inference_engine/external/mkltiny_lnx/lib:/opt/intel/openvino_2021/deployment_tools/inference_engine/external/tbb/lib:/opt/intel/openvino_2021/deployment_tools/inference_engine/lib/intel64

3. OpenCV version

It seems like 0.45.0 or 0.45.1.

$ cat /opt/intel/openvino_2021/opencv/version.txt
4.5.0-65-g464efeb7b (OpenVINO/2021.1)
65
releases/openvino/2021.1
464efeb7b07211706d0f2615e16c8d144447d362

General configuration for OpenCV 4.5.0-openvino =====================================
  Version control:               464efeb7b07211706d0f2615e16c8d144447d362

  Platform:
    Timestamp:                   2020-09-29T02:20:56Z
    Host:                        Linux 4.15.0-29-generic x86_64
    CMake:                       3.14.5
    CMake generator:             Ninja
    CMake build tool:            /opt/miniconda/envs/build/bin/ninja
    Configuration:               Release

4. rustc version (rustc --version)

rustc 1.47.0 (18bf6b4f0 2020-10-07)

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

$ RUST_BACKTRACE=full cargo build -vv 

...

     Running `/home/bus710/repo/tmp/projects/rust_opencv/target/debug/build/opencv-16807245944feb34/build-script-build`
[opencv 0.43.3] === Crate version: Some("0.43.3")
[opencv 0.43.3] === Environment configuration:
[opencv 0.43.3] ===   OPENCV_HEADER_DIR = None
[opencv 0.43.3] ===   OPENCV_PACKAGE_NAME = None
[opencv 0.43.3] ===   OPENCV_PKGCONFIG_NAME = None
[opencv 0.43.3] ===   OPENCV_CMAKE_NAME = None
[opencv 0.43.3] ===   OPENCV_CMAKE_BIN = None
[opencv 0.43.3] ===   OPENCV_VCPKG_NAME = None
[opencv 0.43.3] ===   OPENCV_LINK_LIBS = Some("/opt/intel/openvino_2021/opencv/lib")
[opencv 0.43.3] ===   OPENCV_LINK_PATHS = Some("/opt/intel/openvino_2021/opencv/lib")
[opencv 0.43.3] ===   OPENCV_INCLUDE_PATHS = Some("/opt/intel/openvino_2021/opencv/include")
[opencv 0.43.3] ===   OPENCV_DISABLE_PROBES = None
[opencv 0.43.3] ===   OPENCV_CLANG_STDLIB_PATH = None
[opencv 0.43.3] ===   CMAKE_PREFIX_PATH = None
[opencv 0.43.3] ===   OpenCV_DIR = Some("/opt/intel/openvino_2021/opencv/cmake")
[opencv 0.43.3] ===   PKG_CONFIG_PATH = Some("/opt/intel/openvino_2021/data_processing/dl_streamer/lib/pkgconfig:/opt/intel/openvino_2021/data_processing/gstreamer/lib/pkgconfig:")
[opencv 0.43.3] ===   VCPKG_ROOT = None
[opencv 0.43.3] === Enabled features:
[opencv 0.43.3] ===   BINDING_GENERATOR
[opencv 0.43.3] ===   BUILDTIME_BINDGEN
[opencv 0.43.3] ===   CLANG
[opencv 0.43.3] ===   DEFAULT
[opencv 0.43.3] ===   JOBSERVER
[opencv 0.43.3] ===   OPENCV_4
[opencv 0.43.3] === Configuring OpenCV library from the environment:
[opencv 0.43.3] ===   include_paths: /opt/intel/openvino_2021/opencv/include
[opencv 0.43.3] ===   link_paths: /opt/intel/openvino_2021/opencv/lib
[opencv 0.43.3] ===   link_libs: /opt/intel/openvino_2021/opencv/lib
[opencv 0.43.3] === OpenCV library configuration: Library {
[opencv 0.43.3]     include_paths: [
[opencv 0.43.3]         "/opt/intel/openvino_2021/opencv/include",
[opencv 0.43.3]     ],
[opencv 0.43.3]     version: "4.5.0",
[opencv 0.43.3]     cargo_metadata: [
[opencv 0.43.3]         "cargo:rustc-link-search=/opt/intel/openvino_2021/opencv/lib",
[opencv 0.43.3]         "cargo:rustc-link-lib=opencv",
[opencv 0.43.3]     ],
[opencv 0.43.3] }
[opencv 0.43.3] === Found OpenCV library version: 4.5.0 in headers located at: /opt/intel/openvino_2021/opencv/include
[opencv 0.43.3] === Using OpenCV headers from: /opt/intel/openvino_2021/opencv/include/opencv2
[opencv 0.43.3] === Generating code in: /home/bus710/repo/tmp/projects/rust_opencv/target/debug/build/opencv-3c59b05332037a20/out
[opencv 0.43.3] === Placing generated bindings into: /home/bus710/.cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.43.3/bindings/rust/opencv_4
[opencv 0.43.3] === Clang: clang version 10.0.0-4ubuntu1 
[opencv 0.43.3] thread 'main' panicked at 'Can't find clang binary', /home/bus710/.cargo/registry/src/github.com-1ecc6299db9ec823/opencv-binding-generator-0.16.2/src/generator.rs:339:68
[opencv 0.43.3] stack backtrace:
[opencv 0.43.3]    0:     0x55c42423ebd0 - std::backtrace_rs::backtrace::libunwind::trace::h577ea05e9ca4629a
[opencv 0.43.3]                                at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/../../backtrace/src/backtrace/libunwind.rs:96
[opencv 0.43.3]    1:     0x55c42423ebd0 - std::backtrace_rs::backtrace::trace_unsynchronized::h50b9b72b84c7dd56
[opencv 0.43.3]                                at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/../../backtrace/src/backtrace/mod.rs:66
[opencv 0.43.3]    2:     0x55c42423ebd0 - std::sys_common::backtrace::_print_fmt::h6541cf9823837fac
[opencv 0.43.3]                                at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/sys_common/backtrace.rs:79
[opencv 0.43.3]    3:     0x55c42423ebd0 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hf64fbff071026df5
[opencv 0.43.3]                                at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/sys_common/backtrace.rs:58
[opencv 0.43.3]    4:     0x55c424264bbc - core::fmt::write::h9ddafa4860d8adff
[opencv 0.43.3]                                at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/core/src/fmt/mod.rs:1082
[opencv 0.43.3]    5:     0x55c42423a5b7 - std::io::Write::write_fmt::h1d2ee292d2b65481
[opencv 0.43.3]                                at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/io/mod.rs:1514
[opencv 0.43.3]    6:     0x55c424241100 - std::sys_common::backtrace::_print::ha25f9ff5080d886d
[opencv 0.43.3]                                at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/sys_common/backtrace.rs:61
[opencv 0.43.3]    7:     0x55c424241100 - std::sys_common::backtrace::print::h213e8aa8dc5405c0
[opencv 0.43.3]                                at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/sys_common/backtrace.rs:48
[opencv 0.43.3]    8:     0x55c424241100 - std::panicking::default_hook::{{closure}}::h6482fae49ef9d963
[opencv 0.43.3]                                at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/panicking.rs:200
[opencv 0.43.3]    9:     0x55c424240e4c - std::panicking::default_hook::he30ad7589e0970f9
[opencv 0.43.3]                                at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/panicking.rs:219
[opencv 0.43.3]   10:     0x55c424241763 - std::panicking::rust_panic_with_hook::haa1ed36ada4ffb03
[opencv 0.43.3]                                at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/panicking.rs:569
[opencv 0.43.3]   11:     0x55c424241339 - std::panicking::begin_panic_handler::{{closure}}::h7001af1bb21aeaeb
[opencv 0.43.3]                                at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/panicking.rs:476
[opencv 0.43.3]   12:     0x55c42423f05c - std::sys_common::backtrace::__rust_end_short_backtrace::h39910f557f5f2367
[opencv 0.43.3]                                at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/sys_common/backtrace.rs:153
[opencv 0.43.3]   13:     0x55c4242412f9 - rust_begin_unwind
[opencv 0.43.3]                                at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/panicking.rs:475
[opencv 0.43.3]   14:     0x55c4242631c1 - core::panicking::panic_fmt::h4e2659771ebc78eb
[opencv 0.43.3]                                at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/core/src/panicking.rs:85
[opencv 0.43.3]   15:     0x55c424262f53 - core::option::expect_failed::hd5a1da3a6b6bbb34
[opencv 0.43.3]                                at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/core/src/option.rs:1213
[opencv 0.43.3]   16:     0x55c423f0dbf0 - core::option::Option<T>::expect::h3dd7ed627352ea25
[opencv 0.43.3]                                at /home/bus710/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/option.rs:333
[opencv 0.43.3]   17:     0x55c423f16b21 - opencv_binding_generator::generator::Generator::new::h9fec1910bd14c3c7
[opencv 0.43.3]                                at /home/bus710/.cargo/registry/src/github.com-1ecc6299db9ec823/opencv-binding-generator-0.16.2/src/generator.rs:339
[opencv 0.43.3]   18:     0x55c423d0468e - build_script_build::generator::gen_wrapper::h9ff0000e082a3a1e
[opencv 0.43.3]                                at /home/bus710/.cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.43.3/build.rs:166
[opencv 0.43.3]   19:     0x55c423d01add - build_script_build::main::h106629cfeeb55255
[opencv 0.43.3]                                at /home/bus710/.cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.43.3/build.rs:1137
[opencv 0.43.3]   20:     0x55c423d43d4b - core::ops::function::FnOnce::call_once::h7c5c19cc5741e3ff
[opencv 0.43.3]                                at /home/bus710/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:227
[opencv 0.43.3]   21:     0x55c423d3b2fe - std::sys_common::backtrace::__rust_begin_short_backtrace::h8fb3181da121a73c
[opencv 0.43.3]                                at /home/bus710/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys_common/backtrace.rs:137
[opencv 0.43.3]   22:     0x55c423d1ad71 - std::rt::lang_start::{{closure}}::ha37597204c586ff7
[opencv 0.43.3]                                at /home/bus710/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/rt.rs:66
[opencv 0.43.3]   23:     0x55c424241b61 - core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once::h6a3209f124be2235
[opencv 0.43.3]                                at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/core/src/ops/function.rs:259
[opencv 0.43.3]   24:     0x55c424241b61 - std::panicking::try::do_call::h88ce358792b64df0
[opencv 0.43.3]                                at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/panicking.rs:373
[opencv 0.43.3]   25:     0x55c424241b61 - std::panicking::try::h6311c259678e50fc
[opencv 0.43.3]                                at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/panicking.rs:337
[opencv 0.43.3]   26:     0x55c424241b61 - std::panic::catch_unwind::h56c5716807d659a1
[opencv 0.43.3]                                at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/panic.rs:379
[opencv 0.43.3]   27:     0x55c424241b61 - std::rt::lang_start_internal::h73711f37ecfcb277
[opencv 0.43.3]                                at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/rt.rs:51
[opencv 0.43.3]   28:     0x55c423d1ad47 - std::rt::lang_start::ha37942e742db5fd0
[opencv 0.43.3]                                at /home/bus710/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/rt.rs:65
[opencv 0.43.3]   29:     0x55c423d02b9a - main
[opencv 0.43.3]   30:     0x7ff9172e80b3 - __libc_start_main
[opencv 0.43.3]   31:     0x55c423cf20ce - _start
[opencv 0.43.3]   32:                0x0 - <unknown>
error: failed to run custom build command for `opencv v0.43.3`

Caused by:
  process didn't exit successfully: `/home/bus710/repo/tmp/projects/rust_opencv/target/debug/build/opencv-16807245944feb34/build-script-build` (exit code: 101)
  --- stdout
  === Clang: clang version 10.0.0-4ubuntu1 

  --- stderr
  === Crate version: Some("0.43.3")
  === 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 = Some("/opt/intel/openvino_2021/opencv/lib")
  ===   OPENCV_LINK_PATHS = Some("/opt/intel/openvino_2021/opencv/lib")
  ===   OPENCV_INCLUDE_PATHS = Some("/opt/intel/openvino_2021/opencv/include")
  ===   OPENCV_DISABLE_PROBES = None
  ===   OPENCV_CLANG_STDLIB_PATH = None
  ===   CMAKE_PREFIX_PATH = None
  ===   OpenCV_DIR = Some("/opt/intel/openvino_2021/opencv/cmake")
  ===   PKG_CONFIG_PATH = Some("/opt/intel/openvino_2021/data_processing/dl_streamer/lib/pkgconfig:/opt/intel/openvino_2021/data_processing/gstreamer/lib/pkgconfig:")
  ===   VCPKG_ROOT = None
  === Enabled features:
  ===   BINDING_GENERATOR
  ===   BUILDTIME_BINDGEN
  ===   CLANG
  ===   DEFAULT
  ===   JOBSERVER
  ===   OPENCV_4
  === Configuring OpenCV library from the environment:
  ===   include_paths: /opt/intel/openvino_2021/opencv/include
  ===   link_paths: /opt/intel/openvino_2021/opencv/lib
  ===   link_libs: /opt/intel/openvino_2021/opencv/lib
  === OpenCV library configuration: Library {
      include_paths: [
          "/opt/intel/openvino_2021/opencv/include",
      ],
      version: "4.5.0",
      cargo_metadata: [
          "cargo:rustc-link-search=/opt/intel/openvino_2021/opencv/lib",
          "cargo:rustc-link-lib=opencv",
      ],
  }
  === Found OpenCV library version: 4.5.0 in headers located at: /opt/intel/openvino_2021/opencv/include
  === Using OpenCV headers from: /opt/intel/openvino_2021/opencv/include/opencv2
  === Generating code in: /home/bus710/repo/tmp/projects/rust_opencv/target/debug/build/opencv-3c59b05332037a20/out
  === Placing generated bindings into: /home/bus710/.cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.43.3/bindings/rust/opencv_4
  thread 'main' panicked at 'Can't find clang binary', /home/bus710/.cargo/registry/src/github.com-1ecc6299db9ec823/opencv-binding-generator-0.16.2/src/generator.rs:339:68
  stack backtrace:
     0:     0x55c42423ebd0 - std::backtrace_rs::backtrace::libunwind::trace::h577ea05e9ca4629a
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/../../backtrace/src/backtrace/libunwind.rs:96
     1:     0x55c42423ebd0 - std::backtrace_rs::backtrace::trace_unsynchronized::h50b9b72b84c7dd56
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/../../backtrace/src/backtrace/mod.rs:66
     2:     0x55c42423ebd0 - std::sys_common::backtrace::_print_fmt::h6541cf9823837fac
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/sys_common/backtrace.rs:79
     3:     0x55c42423ebd0 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hf64fbff071026df5
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/sys_common/backtrace.rs:58
     4:     0x55c424264bbc - core::fmt::write::h9ddafa4860d8adff
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/core/src/fmt/mod.rs:1082
     5:     0x55c42423a5b7 - std::io::Write::write_fmt::h1d2ee292d2b65481
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/io/mod.rs:1514
     6:     0x55c424241100 - std::sys_common::backtrace::_print::ha25f9ff5080d886d
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/sys_common/backtrace.rs:61
     7:     0x55c424241100 - std::sys_common::backtrace::print::h213e8aa8dc5405c0
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/sys_common/backtrace.rs:48
     8:     0x55c424241100 - std::panicking::default_hook::{{closure}}::h6482fae49ef9d963
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/panicking.rs:200
     9:     0x55c424240e4c - std::panicking::default_hook::he30ad7589e0970f9
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/panicking.rs:219
    10:     0x55c424241763 - std::panicking::rust_panic_with_hook::haa1ed36ada4ffb03
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/panicking.rs:569
    11:     0x55c424241339 - std::panicking::begin_panic_handler::{{closure}}::h7001af1bb21aeaeb
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/panicking.rs:476
    12:     0x55c42423f05c - std::sys_common::backtrace::__rust_end_short_backtrace::h39910f557f5f2367
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/sys_common/backtrace.rs:153
    13:     0x55c4242412f9 - rust_begin_unwind
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/panicking.rs:475
    14:     0x55c4242631c1 - core::panicking::panic_fmt::h4e2659771ebc78eb
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/core/src/panicking.rs:85
    15:     0x55c424262f53 - core::option::expect_failed::hd5a1da3a6b6bbb34
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/core/src/option.rs:1213
    16:     0x55c423f0dbf0 - core::option::Option<T>::expect::h3dd7ed627352ea25
                                 at /home/bus710/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/option.rs:333
    17:     0x55c423f16b21 - opencv_binding_generator::generator::Generator::new::h9fec1910bd14c3c7
                                 at /home/bus710/.cargo/registry/src/github.com-1ecc6299db9ec823/opencv-binding-generator-0.16.2/src/generator.rs:339
    18:     0x55c423d0468e - build_script_build::generator::gen_wrapper::h9ff0000e082a3a1e
                                 at /home/bus710/.cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.43.3/build.rs:166
    19:     0x55c423d01add - build_script_build::main::h106629cfeeb55255
                                 at /home/bus710/.cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.43.3/build.rs:1137
    20:     0x55c423d43d4b - core::ops::function::FnOnce::call_once::h7c5c19cc5741e3ff
                                 at /home/bus710/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:227
    21:     0x55c423d3b2fe - std::sys_common::backtrace::__rust_begin_short_backtrace::h8fb3181da121a73c
                                 at /home/bus710/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys_common/backtrace.rs:137
    22:     0x55c423d1ad71 - std::rt::lang_start::{{closure}}::ha37597204c586ff7
                                 at /home/bus710/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/rt.rs:66
    23:     0x55c424241b61 - core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once::h6a3209f124be2235
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/core/src/ops/function.rs:259
    24:     0x55c424241b61 - std::panicking::try::do_call::h88ce358792b64df0
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/panicking.rs:373
    25:     0x55c424241b61 - std::panicking::try::h6311c259678e50fc
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/panicking.rs:337
    26:     0x55c424241b61 - std::panic::catch_unwind::h56c5716807d659a1
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/panic.rs:379
    27:     0x55c424241b61 - std::rt::lang_start_internal::h73711f37ecfcb277
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/rt.rs:51
    28:     0x55c423d1ad47 - std::rt::lang_start::ha37942e742db5fd0
                                 at /home/bus710/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/rt.rs:65
    29:     0x55c423d02b9a - main
    30:     0x7ff9172e80b3 - __libc_start_main
    31:     0x55c423cf20ce - _start
    32:                0x0 - <unknown>

Please let me know if there is anything else I can add more! Thanks,

closed time in 14 days

bus710

issue commenttwistedfall/opencv-rust

Using OpenCV bundled with OpenVino SDK.

That is my fault. Previously I only installed libclang-dev because I thought the dev package might come with clang bin.

So I installed both for a new system with Ubuntu 20.04 and OpenVino 2021_1:

$ sudo apt install clang libclang-dev
$ sudo apt install cmake ninja-build # if needed

Thanks for your help!

bus710

comment created time in 14 days

startedtwistedfall/opencv-rust

started time in 14 days

issue commenttwistedfall/opencv-rust

How to use moments

We worked around it by calculating it on our own. Thanks for the help anyway!

famattsson

comment created time in 14 days

issue openedtwistedfall/opencv-rust

Using OpenCV bundled with OpenVino SDK.

Before reporting an issue please first check the troubleshooting guide. If the issue you're encountering is not solved thereby please state the following in your bugreport:

0. Background

Hi, I am trying to use this nice package with a pre-built OpenCV, which is bundled with Intel's OpenVino. The SDK works fine with its Cpp/Python demos so that I wanted to try Rust + opencv-rust + OpenVino. I tried to make it work with some variables but I couldn't get a successful result yet so that I would like to share what's going on.

1. Operating system

$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.1 LTS"

2. The way you installed OpenCV: package, official binary distribution, manual compilation, etc.

I used OpenVino bundled OpcnCV. It is located under /opt/intel/openvino_2021/opencv and has some files as attached:

$ pwd
/opt/intel/openvino_2021/opencv

$ tree -L 2
.
├── bin
│   └── opencv_version
├── build_params.txt
├── cmake
│   ├── OpenCVConfig.cmake
│   ├── OpenCVConfig-version.cmake
│   ├── OpenCVModules.cmake
│   └── OpenCVModules-release.cmake
├── etc
│   └── licenses
├── include
│   └── opencv2
├── lib
│   ├── libopencv_calib3d.so -> libopencv_calib3d.so.4.5
│   ├── ...
│   └── libopencv_video.so.4.5.0
├── setupvars.sh
├── third-party-programs.txt
└── version.txt

7 directories, 57 files

For the variables:

$ echo $PKG_CONFIG_PATH 
/opt/intel/openvino_2021/data_processing/dl_streamer/lib/pkgconfig:/opt/intel/openvino_2021/data_processing/gstreamer/lib/pkgconfig:

$  echo $OpenCV_DIR 
/opt/intel/openvino_2021/opencv/cmake

$ echo $LD_LIBRARY_PATH
/opt/intel/openvino_2021/data_processing/dl_streamer/lib:/opt/intel/openvino_2021/data_processing/gstreamer/lib:/opt/intel/openvino_2021/opencv/lib:/opt/intel/openvino_2021/deployment_tools/ngraph/lib:/opt/intel/openvino_2021/deployment_tools/inference_engine/external/hddl_unite/lib:/opt/intel/openvino_2021/deployment_tools/inference_engine/external/hddl/lib:/opt/intel/openvino_2021/deployment_tools/inference_engine/external/gna/lib:/opt/intel/openvino_2021/deployment_tools/inference_engine/external/mkltiny_lnx/lib:/opt/intel/openvino_2021/deployment_tools/inference_engine/external/tbb/lib:/opt/intel/openvino_2021/deployment_tools/inference_engine/lib/intel64

3. OpenCV version

It seems like 0.45.0 or 0.45.1.

$ cat /opt/intel/openvino_2021/opencv/version.txt
4.5.0-65-g464efeb7b (OpenVINO/2021.1)
65
releases/openvino/2021.1
464efeb7b07211706d0f2615e16c8d144447d362

General configuration for OpenCV 4.5.0-openvino =====================================
  Version control:               464efeb7b07211706d0f2615e16c8d144447d362

  Platform:
    Timestamp:                   2020-09-29T02:20:56Z
    Host:                        Linux 4.15.0-29-generic x86_64
    CMake:                       3.14.5
    CMake generator:             Ninja
    CMake build tool:            /opt/miniconda/envs/build/bin/ninja
    Configuration:               Release

4. rustc version (rustc --version)

rustc 1.47.0 (18bf6b4f0 2020-10-07)

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

$ RUST_BACKTRACE=full cargo build -vv 

...

     Running `/home/bus710/repo/tmp/projects/rust_opencv/target/debug/build/opencv-16807245944feb34/build-script-build`
[opencv 0.43.3] === Crate version: Some("0.43.3")
[opencv 0.43.3] === Environment configuration:
[opencv 0.43.3] ===   OPENCV_HEADER_DIR = None
[opencv 0.43.3] ===   OPENCV_PACKAGE_NAME = None
[opencv 0.43.3] ===   OPENCV_PKGCONFIG_NAME = None
[opencv 0.43.3] ===   OPENCV_CMAKE_NAME = None
[opencv 0.43.3] ===   OPENCV_CMAKE_BIN = None
[opencv 0.43.3] ===   OPENCV_VCPKG_NAME = None
[opencv 0.43.3] ===   OPENCV_LINK_LIBS = Some("/opt/intel/openvino_2021/opencv/lib")
[opencv 0.43.3] ===   OPENCV_LINK_PATHS = Some("/opt/intel/openvino_2021/opencv/lib")
[opencv 0.43.3] ===   OPENCV_INCLUDE_PATHS = Some("/opt/intel/openvino_2021/opencv/include")
[opencv 0.43.3] ===   OPENCV_DISABLE_PROBES = None
[opencv 0.43.3] ===   OPENCV_CLANG_STDLIB_PATH = None
[opencv 0.43.3] ===   CMAKE_PREFIX_PATH = None
[opencv 0.43.3] ===   OpenCV_DIR = Some("/opt/intel/openvino_2021/opencv/cmake")
[opencv 0.43.3] ===   PKG_CONFIG_PATH = Some("/opt/intel/openvino_2021/data_processing/dl_streamer/lib/pkgconfig:/opt/intel/openvino_2021/data_processing/gstreamer/lib/pkgconfig:")
[opencv 0.43.3] ===   VCPKG_ROOT = None
[opencv 0.43.3] === Enabled features:
[opencv 0.43.3] ===   BINDING_GENERATOR
[opencv 0.43.3] ===   BUILDTIME_BINDGEN
[opencv 0.43.3] ===   CLANG
[opencv 0.43.3] ===   DEFAULT
[opencv 0.43.3] ===   JOBSERVER
[opencv 0.43.3] ===   OPENCV_4
[opencv 0.43.3] === Configuring OpenCV library from the environment:
[opencv 0.43.3] ===   include_paths: /opt/intel/openvino_2021/opencv/include
[opencv 0.43.3] ===   link_paths: /opt/intel/openvino_2021/opencv/lib
[opencv 0.43.3] ===   link_libs: /opt/intel/openvino_2021/opencv/lib
[opencv 0.43.3] === OpenCV library configuration: Library {
[opencv 0.43.3]     include_paths: [
[opencv 0.43.3]         "/opt/intel/openvino_2021/opencv/include",
[opencv 0.43.3]     ],
[opencv 0.43.3]     version: "4.5.0",
[opencv 0.43.3]     cargo_metadata: [
[opencv 0.43.3]         "cargo:rustc-link-search=/opt/intel/openvino_2021/opencv/lib",
[opencv 0.43.3]         "cargo:rustc-link-lib=opencv",
[opencv 0.43.3]     ],
[opencv 0.43.3] }
[opencv 0.43.3] === Found OpenCV library version: 4.5.0 in headers located at: /opt/intel/openvino_2021/opencv/include
[opencv 0.43.3] === Using OpenCV headers from: /opt/intel/openvino_2021/opencv/include/opencv2
[opencv 0.43.3] === Generating code in: /home/bus710/repo/tmp/projects/rust_opencv/target/debug/build/opencv-3c59b05332037a20/out
[opencv 0.43.3] === Placing generated bindings into: /home/bus710/.cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.43.3/bindings/rust/opencv_4
[opencv 0.43.3] === Clang: clang version 10.0.0-4ubuntu1 
[opencv 0.43.3] thread 'main' panicked at 'Can't find clang binary', /home/bus710/.cargo/registry/src/github.com-1ecc6299db9ec823/opencv-binding-generator-0.16.2/src/generator.rs:339:68
[opencv 0.43.3] stack backtrace:
[opencv 0.43.3]    0:     0x55c42423ebd0 - std::backtrace_rs::backtrace::libunwind::trace::h577ea05e9ca4629a
[opencv 0.43.3]                                at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/../../backtrace/src/backtrace/libunwind.rs:96
[opencv 0.43.3]    1:     0x55c42423ebd0 - std::backtrace_rs::backtrace::trace_unsynchronized::h50b9b72b84c7dd56
[opencv 0.43.3]                                at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/../../backtrace/src/backtrace/mod.rs:66
[opencv 0.43.3]    2:     0x55c42423ebd0 - std::sys_common::backtrace::_print_fmt::h6541cf9823837fac
[opencv 0.43.3]                                at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/sys_common/backtrace.rs:79
[opencv 0.43.3]    3:     0x55c42423ebd0 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hf64fbff071026df5
[opencv 0.43.3]                                at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/sys_common/backtrace.rs:58
[opencv 0.43.3]    4:     0x55c424264bbc - core::fmt::write::h9ddafa4860d8adff
[opencv 0.43.3]                                at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/core/src/fmt/mod.rs:1082
[opencv 0.43.3]    5:     0x55c42423a5b7 - std::io::Write::write_fmt::h1d2ee292d2b65481
[opencv 0.43.3]                                at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/io/mod.rs:1514
[opencv 0.43.3]    6:     0x55c424241100 - std::sys_common::backtrace::_print::ha25f9ff5080d886d
[opencv 0.43.3]                                at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/sys_common/backtrace.rs:61
[opencv 0.43.3]    7:     0x55c424241100 - std::sys_common::backtrace::print::h213e8aa8dc5405c0
[opencv 0.43.3]                                at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/sys_common/backtrace.rs:48
[opencv 0.43.3]    8:     0x55c424241100 - std::panicking::default_hook::{{closure}}::h6482fae49ef9d963
[opencv 0.43.3]                                at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/panicking.rs:200
[opencv 0.43.3]    9:     0x55c424240e4c - std::panicking::default_hook::he30ad7589e0970f9
[opencv 0.43.3]                                at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/panicking.rs:219
[opencv 0.43.3]   10:     0x55c424241763 - std::panicking::rust_panic_with_hook::haa1ed36ada4ffb03
[opencv 0.43.3]                                at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/panicking.rs:569
[opencv 0.43.3]   11:     0x55c424241339 - std::panicking::begin_panic_handler::{{closure}}::h7001af1bb21aeaeb
[opencv 0.43.3]                                at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/panicking.rs:476
[opencv 0.43.3]   12:     0x55c42423f05c - std::sys_common::backtrace::__rust_end_short_backtrace::h39910f557f5f2367
[opencv 0.43.3]                                at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/sys_common/backtrace.rs:153
[opencv 0.43.3]   13:     0x55c4242412f9 - rust_begin_unwind
[opencv 0.43.3]                                at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/panicking.rs:475
[opencv 0.43.3]   14:     0x55c4242631c1 - core::panicking::panic_fmt::h4e2659771ebc78eb
[opencv 0.43.3]                                at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/core/src/panicking.rs:85
[opencv 0.43.3]   15:     0x55c424262f53 - core::option::expect_failed::hd5a1da3a6b6bbb34
[opencv 0.43.3]                                at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/core/src/option.rs:1213
[opencv 0.43.3]   16:     0x55c423f0dbf0 - core::option::Option<T>::expect::h3dd7ed627352ea25
[opencv 0.43.3]                                at /home/bus710/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/option.rs:333
[opencv 0.43.3]   17:     0x55c423f16b21 - opencv_binding_generator::generator::Generator::new::h9fec1910bd14c3c7
[opencv 0.43.3]                                at /home/bus710/.cargo/registry/src/github.com-1ecc6299db9ec823/opencv-binding-generator-0.16.2/src/generator.rs:339
[opencv 0.43.3]   18:     0x55c423d0468e - build_script_build::generator::gen_wrapper::h9ff0000e082a3a1e
[opencv 0.43.3]                                at /home/bus710/.cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.43.3/build.rs:166
[opencv 0.43.3]   19:     0x55c423d01add - build_script_build::main::h106629cfeeb55255
[opencv 0.43.3]                                at /home/bus710/.cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.43.3/build.rs:1137
[opencv 0.43.3]   20:     0x55c423d43d4b - core::ops::function::FnOnce::call_once::h7c5c19cc5741e3ff
[opencv 0.43.3]                                at /home/bus710/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:227
[opencv 0.43.3]   21:     0x55c423d3b2fe - std::sys_common::backtrace::__rust_begin_short_backtrace::h8fb3181da121a73c
[opencv 0.43.3]                                at /home/bus710/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys_common/backtrace.rs:137
[opencv 0.43.3]   22:     0x55c423d1ad71 - std::rt::lang_start::{{closure}}::ha37597204c586ff7
[opencv 0.43.3]                                at /home/bus710/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/rt.rs:66
[opencv 0.43.3]   23:     0x55c424241b61 - core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once::h6a3209f124be2235
[opencv 0.43.3]                                at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/core/src/ops/function.rs:259
[opencv 0.43.3]   24:     0x55c424241b61 - std::panicking::try::do_call::h88ce358792b64df0
[opencv 0.43.3]                                at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/panicking.rs:373
[opencv 0.43.3]   25:     0x55c424241b61 - std::panicking::try::h6311c259678e50fc
[opencv 0.43.3]                                at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/panicking.rs:337
[opencv 0.43.3]   26:     0x55c424241b61 - std::panic::catch_unwind::h56c5716807d659a1
[opencv 0.43.3]                                at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/panic.rs:379
[opencv 0.43.3]   27:     0x55c424241b61 - std::rt::lang_start_internal::h73711f37ecfcb277
[opencv 0.43.3]                                at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/rt.rs:51
[opencv 0.43.3]   28:     0x55c423d1ad47 - std::rt::lang_start::ha37942e742db5fd0
[opencv 0.43.3]                                at /home/bus710/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/rt.rs:65
[opencv 0.43.3]   29:     0x55c423d02b9a - main
[opencv 0.43.3]   30:     0x7ff9172e80b3 - __libc_start_main
[opencv 0.43.3]   31:     0x55c423cf20ce - _start
[opencv 0.43.3]   32:                0x0 - <unknown>
error: failed to run custom build command for `opencv v0.43.3`

Caused by:
  process didn't exit successfully: `/home/bus710/repo/tmp/projects/rust_opencv/target/debug/build/opencv-16807245944feb34/build-script-build` (exit code: 101)
  --- stdout
  === Clang: clang version 10.0.0-4ubuntu1 

  --- stderr
  === Crate version: Some("0.43.3")
  === 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 = Some("/opt/intel/openvino_2021/opencv/lib")
  ===   OPENCV_LINK_PATHS = Some("/opt/intel/openvino_2021/opencv/lib")
  ===   OPENCV_INCLUDE_PATHS = Some("/opt/intel/openvino_2021/opencv/include")
  ===   OPENCV_DISABLE_PROBES = None
  ===   OPENCV_CLANG_STDLIB_PATH = None
  ===   CMAKE_PREFIX_PATH = None
  ===   OpenCV_DIR = Some("/opt/intel/openvino_2021/opencv/cmake")
  ===   PKG_CONFIG_PATH = Some("/opt/intel/openvino_2021/data_processing/dl_streamer/lib/pkgconfig:/opt/intel/openvino_2021/data_processing/gstreamer/lib/pkgconfig:")
  ===   VCPKG_ROOT = None
  === Enabled features:
  ===   BINDING_GENERATOR
  ===   BUILDTIME_BINDGEN
  ===   CLANG
  ===   DEFAULT
  ===   JOBSERVER
  ===   OPENCV_4
  === Configuring OpenCV library from the environment:
  ===   include_paths: /opt/intel/openvino_2021/opencv/include
  ===   link_paths: /opt/intel/openvino_2021/opencv/lib
  ===   link_libs: /opt/intel/openvino_2021/opencv/lib
  === OpenCV library configuration: Library {
      include_paths: [
          "/opt/intel/openvino_2021/opencv/include",
      ],
      version: "4.5.0",
      cargo_metadata: [
          "cargo:rustc-link-search=/opt/intel/openvino_2021/opencv/lib",
          "cargo:rustc-link-lib=opencv",
      ],
  }
  === Found OpenCV library version: 4.5.0 in headers located at: /opt/intel/openvino_2021/opencv/include
  === Using OpenCV headers from: /opt/intel/openvino_2021/opencv/include/opencv2
  === Generating code in: /home/bus710/repo/tmp/projects/rust_opencv/target/debug/build/opencv-3c59b05332037a20/out
  === Placing generated bindings into: /home/bus710/.cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.43.3/bindings/rust/opencv_4
  thread 'main' panicked at 'Can't find clang binary', /home/bus710/.cargo/registry/src/github.com-1ecc6299db9ec823/opencv-binding-generator-0.16.2/src/generator.rs:339:68
  stack backtrace:
     0:     0x55c42423ebd0 - std::backtrace_rs::backtrace::libunwind::trace::h577ea05e9ca4629a
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/../../backtrace/src/backtrace/libunwind.rs:96
     1:     0x55c42423ebd0 - std::backtrace_rs::backtrace::trace_unsynchronized::h50b9b72b84c7dd56
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/../../backtrace/src/backtrace/mod.rs:66
     2:     0x55c42423ebd0 - std::sys_common::backtrace::_print_fmt::h6541cf9823837fac
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/sys_common/backtrace.rs:79
     3:     0x55c42423ebd0 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hf64fbff071026df5
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/sys_common/backtrace.rs:58
     4:     0x55c424264bbc - core::fmt::write::h9ddafa4860d8adff
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/core/src/fmt/mod.rs:1082
     5:     0x55c42423a5b7 - std::io::Write::write_fmt::h1d2ee292d2b65481
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/io/mod.rs:1514
     6:     0x55c424241100 - std::sys_common::backtrace::_print::ha25f9ff5080d886d
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/sys_common/backtrace.rs:61
     7:     0x55c424241100 - std::sys_common::backtrace::print::h213e8aa8dc5405c0
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/sys_common/backtrace.rs:48
     8:     0x55c424241100 - std::panicking::default_hook::{{closure}}::h6482fae49ef9d963
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/panicking.rs:200
     9:     0x55c424240e4c - std::panicking::default_hook::he30ad7589e0970f9
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/panicking.rs:219
    10:     0x55c424241763 - std::panicking::rust_panic_with_hook::haa1ed36ada4ffb03
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/panicking.rs:569
    11:     0x55c424241339 - std::panicking::begin_panic_handler::{{closure}}::h7001af1bb21aeaeb
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/panicking.rs:476
    12:     0x55c42423f05c - std::sys_common::backtrace::__rust_end_short_backtrace::h39910f557f5f2367
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/sys_common/backtrace.rs:153
    13:     0x55c4242412f9 - rust_begin_unwind
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/panicking.rs:475
    14:     0x55c4242631c1 - core::panicking::panic_fmt::h4e2659771ebc78eb
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/core/src/panicking.rs:85
    15:     0x55c424262f53 - core::option::expect_failed::hd5a1da3a6b6bbb34
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/core/src/option.rs:1213
    16:     0x55c423f0dbf0 - core::option::Option<T>::expect::h3dd7ed627352ea25
                                 at /home/bus710/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/option.rs:333
    17:     0x55c423f16b21 - opencv_binding_generator::generator::Generator::new::h9fec1910bd14c3c7
                                 at /home/bus710/.cargo/registry/src/github.com-1ecc6299db9ec823/opencv-binding-generator-0.16.2/src/generator.rs:339
    18:     0x55c423d0468e - build_script_build::generator::gen_wrapper::h9ff0000e082a3a1e
                                 at /home/bus710/.cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.43.3/build.rs:166
    19:     0x55c423d01add - build_script_build::main::h106629cfeeb55255
                                 at /home/bus710/.cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.43.3/build.rs:1137
    20:     0x55c423d43d4b - core::ops::function::FnOnce::call_once::h7c5c19cc5741e3ff
                                 at /home/bus710/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:227
    21:     0x55c423d3b2fe - std::sys_common::backtrace::__rust_begin_short_backtrace::h8fb3181da121a73c
                                 at /home/bus710/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys_common/backtrace.rs:137
    22:     0x55c423d1ad71 - std::rt::lang_start::{{closure}}::ha37597204c586ff7
                                 at /home/bus710/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/rt.rs:66
    23:     0x55c424241b61 - core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once::h6a3209f124be2235
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/core/src/ops/function.rs:259
    24:     0x55c424241b61 - std::panicking::try::do_call::h88ce358792b64df0
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/panicking.rs:373
    25:     0x55c424241b61 - std::panicking::try::h6311c259678e50fc
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/panicking.rs:337
    26:     0x55c424241b61 - std::panic::catch_unwind::h56c5716807d659a1
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/panic.rs:379
    27:     0x55c424241b61 - std::rt::lang_start_internal::h73711f37ecfcb277
                                 at /rustc/18bf6b4f01a6feaf7259ba7cdae58031af1b7b39/library/std/src/rt.rs:51
    28:     0x55c423d1ad47 - std::rt::lang_start::ha37942e742db5fd0
                                 at /home/bus710/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/rt.rs:65
    29:     0x55c423d02b9a - main
    30:     0x7ff9172e80b3 - __libc_start_main
    31:     0x55c423cf20ce - _start
    32:                0x0 - <unknown>

Please let me know if there is anything else I can add more! Thanks,

created time in 14 days

startedtwistedfall/opencv-rust

started time in 16 days

startedtwistedfall/opencv-rust

started time in 17 days

startedtwistedfall/opencv-rust

started time in 17 days

more