Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows, exit code: 0xc0000135, STATUS_DLL_NOT_FOUND #113

Closed
GRASBOCK opened this issue Apr 7, 2020 · 16 comments
Closed

Windows, exit code: 0xc0000135, STATUS_DLL_NOT_FOUND #113

GRASBOCK opened this issue Apr 7, 2020 · 16 comments

Comments

@GRASBOCK
Copy link

GRASBOCK commented Apr 7, 2020

Windows 10
Installed opencv 4.2.0 by downloading binaries from the website.
Default Hello World Program

Cargo.toml

[dependencies]
opencv = {version = "0.33", features = ["buildtime-bindgen"]}

cargo run

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

Caused by:
  process didn't exit successfully: `C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\build\opencv-cbf104b9e94d4794\build-script-build` (exit code: 0xc0000135, STATUS_DLL_NOT_FOUND)

How do i fix this? It seems to be the final hurdle before I can successfully use rust with opencv on windows.

EDIT: For those that stumble upon this

  • Make sure Clang is installed.
  • install llvm and opencv from their websites (vcpkg didn't work for me and was very slow to install because it decided to recompile windows?)
  • Make sure to properly set your environment variables
    OPENCV_LINK_LIBS=opencv_world420
  • restart your system to update your environment variables
  • put the dlls from your opencv install directory: C:\opencv\build\x64\vc14\bin next to your built rust executable or add C:\opencv\build\x64\vc14\bin to PATH environment variable otherwise you will get a STATUS_DLL_NOT_FOUND error
@twistedfall
Copy link
Owner

twistedfall commented Apr 7, 2020

That means that Windows can't find one of the dll files referenced by the binary. Alas, it doesn't say which one. You can try copying all of the dlls from OpenCV distribution (it should actually be the only one: opencv_world_something.dll) to the directory where you binary is (C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\build\opencv-cbf104b9e94d4794\ in your example) and see if it helps. Checking the binary dependency tree with dependency walker also helps in tracking down which dll files are required. Ultimately you'd want to set up PATH to point where OS can find the necessary dlls.

You might want to check the Windows part of the CI script for some inspiration: https://github.com/twistedfall/opencv-rust/blob/master/ci/script.sh#L5

@GRASBOCK
Copy link
Author

GRASBOCK commented Apr 8, 2020

I wanted to try what you suggested but compiling suddenly worked. I had the Paths specified as described in the readme on the github page. Maybe I changed something? The Paths needed some time to assimilate? Probably should have done a restart rather than just a terminal restart.

So unfortunately I won't be able to verify what you said, but it still helps knowing that STATUS_DLL_NOT_FOUND doesn't refer to a specific one and how to debug that in the future. So thank you for that!

However, while it compiles fine for the hello world program, when using the video_capture.rs example
LINK : fatal error LNK1181: cannot open input file 'bin.lib'

I will see if I can figure out more tomorrow, since this problem is not a missing shared library.

@GRASBOCK
Copy link
Author

GRASBOCK commented Apr 8, 2020

I wanted to try what you suggested but compiling suddenly worked. I had the Paths specified as described in the readme on the github page. Maybe I changed something? The Paths needed some time to assimilate? Probably should have done a restart rather than just a terminal restart.

So unfortunately I won't be able to verify what you said, but it still helps knowing that STATUS_DLL_NOT_FOUND doesn't refer to a specific one and how to debug that in the future. So thank you for that!

However, while it compiles fine for the hello world program, when using the video_capture.rs example
LINK : fatal error LNK1181: cannot open input file 'bin.lib'

I will see if I can find out more. This is not a shared library, so just pasting it near the executable is not going to work.

@GRASBOCK GRASBOCK closed this as completed Apr 8, 2020
@GRASBOCK GRASBOCK reopened this Apr 8, 2020
@twistedfall
Copy link
Owner

Yes, it's a strange lib to link honestly, can you post a full build log after adding cli argument -vv to the cargo invocation?

@GRASBOCK
Copy link
Author

GRASBOCK commented Apr 8, 2020

Here is the entire build log (personally I find it very hard to read)

PS C:\Users\grasb\OneDrive\Documents\Code\rust_test> cargo build -vv
       Fresh autocfg v1.0.0
       Fresh lazy_static v1.4.0
       Fresh cfg-if v0.1.10
       Fresh glob v0.3.0
       Fresh scopeguard v1.1.0
       Fresh regex-syntax v0.6.17
       Fresh maplit v1.0.2
       Fresh dunce v1.0.0
       Fresh percent-encoding v2.1.0
       Fresh once_cell v1.3.1
       Fresh semver-parser v0.7.0
       Fresh either v1.5.3
       Fresh jobserver v0.1.21
       Fresh vcpkg v0.2.8
       Fresh slab v0.4.2
       Fresh thread_local v1.0.1
       Fresh cc v1.0.50
       Fresh semver v0.9.0
       Fresh libc v0.2.68
       Fresh maybe-uninit v2.0.0
       Fresh memchr v2.3.3
warning: couldn't execute `llvm-config --prefix` (error: The system cannot find the file specified. (os error 2))
warning: set the LLVM_CONFIG_PATH environment variable to a valid `llvm-config` executable
warning: couldn't execute `llvm-config --includedir` (error: The system cannot find the 
file specified. (os error 2))
warning: set the LLVM_CONFIG_PATH environment variable to a valid `llvm-config` executable
       Fresh crossbeam-utils v0.7.2
       Fresh num-traits v0.2.11
       Fresh memoffset v0.5.4
       Fresh num_cpus v1.12.0
       Fresh clang-sys v0.28.1
       Fresh aho-corasick v0.7.10
       Fresh crossbeam-epoch v0.8.2
       Fresh crossbeam-queue v0.2.1
       Fresh num-integer v0.1.42
       Fresh num-complex v0.2.4
       Fresh crossbeam-deque v0.7.3
       Fresh regex v1.3.6
       Fresh clang v0.23.0
       Fresh rayon-core v1.7.0
       Fresh num-bigint v0.2.6
       Fresh num-iter v0.1.40
       Fresh rayon v1.3.0
       Fresh opencv-binding-generator v0.6.0
       Fresh num-rational v0.2.4
       Fresh num v0.2.1
       Fresh opencv v0.33.1
   Compiling rust_test v0.1.0 (C:\Users\grasb\OneDrive\Documents\Code\rust_test)        
     Running `set CARGO_PKG_VERSION_MAJOR=0&& set CARGO_MANIFEST_DIR=C:\Users\grasb\OneDrive\Documents\Code\rust_test&& set CARGO_PKG_NAME=rust_test&& set CARGO_PKG_HOMEPAGE=&& set CARGO_PKG_VERSION_MINOR=1&& set CARGO_PKG_REPOSITORY=&& set CARGO_PKG_VERSION_PATCH=0&& set CARGO_PKG_DESCRIPTION=&& set CARGO=\\?\C:\Users\grasb\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin\cargo.exe&& set CARGO_PKG_VERSION_PRE=&& set PATH="C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps;C:\Users\grasb\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin;C:\Users\grasb\.cargo\bin;C:\Users\grasb\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\CMake\bin;C:\Program Files\LLVM\bin;C:\Users\grasb\AppData\Local\Programs\Python\Python38-32\Scripts\;C:\Users\grasb\AppData\Local\Programs\Python\Python38-32\;C:\Users\grasb\.cargo\bin;C:\Users\grasb\AppData\Local\Microsoft\WindowsApps;C:\Users\grasb\AppData\Local\Programs\Microsoft VS Code\bin;C:\;C:\Users\grasb\AppData\Local\Programs\Python\Python38-32;C:\Users\grasb\AppData\Local\Programs\Python\Python38-32\Scripts;"&& set CARGO_PKG_VERSION=0.1.0&& set CARGO_PKG_AUTHORS=grasb&& rustc --crate-name rust_test --edition=2018 src\main.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C debuginfo=2 -C metadata=4dadc0ea158e5bcc --out-dir C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps -C incremental=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\incremental -L dependency=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps --extern opencv=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps\libopencv-8a2d459d585d8599.rlib -L 
native=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\build\opencv-320fa7e2ec4f430b\out -L C:\opencv\build\x64\vc15\lib`
error: linking with `link.exe` failed: exit code: 1181
  |
  = note: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.25.28610\\bin\\HostX64\\x64\\link.exe" "/NOLOGO" "/NXCOMPAT" "/LIBPATH:C:\\Users\\grasb\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\deps\\rust_test.23zaauy8hkjzinrc.rcgu.o" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\deps\\rust_test.2enthza6kfew9q9c.rcgu.o" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\deps\\rust_test.2s32ow4wcxrm46vb.rcgu.o" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\deps\\rust_test.365ugbk5aux7m9le.rcgu.o" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\deps\\rust_test.4qapwvj2qtxes8jo.rcgu.o" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\deps\\rust_test.5fh0esi5om3pnrdr.rcgu.o" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\deps\\rust_test.uce4zqf4xp6fmpf.rcgu.o" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\deps\\rust_test.vu62ownvcfvu521.rcgu.o" "/OUT:C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\deps\\rust_test.exe" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\deps\\rust_test.3tqifm7gjun4ojhy.rcgu.o" "/OPT:REF,NOICF" "/DEBUG" "/NATVIS:C:\\Users\\grasb\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\intrinsic.natvis" "/NATVIS:C:\\Users\\grasb\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\liballoc.natvis" "/NATVIS:C:\\Users\\grasb\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\libcore.natvis" "/NATVIS:C:\\Users\\grasb\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\libstd.natvis" "/LIBPATH:C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\deps" "/LIBPATH:C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out" "/LIBPATH:C:\\opencv\\build\\x64\\vc15\\lib" "/LIBPATH:C:\\Users\\grasb\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\deps\\libopencv-8a2d459d585d8599.rlib" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\deps\\libslab-0a75d1dbad7fd7ad.rlib" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\deps\\libonce_cell-cedf602f73672a0d.rlib" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\deps\\libnum-7328a1be0b92b1ed.rlib" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\deps\\libnum_rational-358c9598f0c850c8.rlib" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\deps\\libnum_iter-4341b079f4eeeb5c.rlib" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\deps\\libnum_complex-bf3238b8f1460611.rlib" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\deps\\libnum_bigint-d0c4a0ece5ebebf0.rlib" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\deps\\libnum_integer-80e407d2126b2c9b.rlib" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\deps\\libnum_traits-9b300e5d2bc3bbe1.rlib" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\deps\\liblibc-ddc8a8a4fa264eef.rlib" "C:\\Users\\grasb\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libstd-93a5cbf3214e1635.rlib" "C:\\Users\\grasb\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libpanic_unwind-bc497f38bc14ea36.rlib" "C:\\Users\\grasb\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libhashbrown-cff6a81a38e24acd.rlib" "C:\\Users\\grasb\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_std_workspace_alloc-2fcb3fe30807f5cb.rlib" "C:\\Users\\grasb\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libbacktrace-916d55fe59b6e45e.rlib" "C:\\Users\\grasb\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_demangle-7f1beeb3aa6031c7.rlib" "C:\\Users\\grasb\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libunwind-0f8323184fc867ad.rlib" "C:\\Users\\grasb\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcfg_if-451043412713beed.rlib" "C:\\Users\\grasb\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liblibc-e9eb82ffd1eb284e.rlib" "C:\\Users\\grasb\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liballoc-8a93a70731c0c815.rlib" "C:\\Users\\grasb\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_std_workspace_core-6fc8e09b7aa39aaf.rlib" "C:\\Users\\grasb\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcore-05a61bb76241250f.rlib" "C:\\Users\\grasb\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcompiler_builtins-9e67ceffec35e0af.rlib" "bin.lib" "advapi32.lib" "ws2_32.lib" "userenv.lib" "msvcrt.lib"
  = note: LINK : fatal error LNK1181: cannot open input file 'bin.lib'


error: aborting due to previous error

error: could not compile `rust_test`.

Caused by:
  process didn't exit successfully: `set CARGO_PKG_VERSION_MAJOR=0&& set CARGO_MANIFEST_DIR=C:\Users\grasb\OneDrive\Documents\Code\rust_test&& set CARGO_PKG_NAME=rust_test&& set CARGO_PKG_HOMEPAGE=&& set CARGO_PKG_VERSION_MINOR=1&& set CARGO_PKG_REPOSITORY=&& set 
CARGO_PKG_VERSION_PATCH=0&& set CARGO_PKG_DESCRIPTION=&& set CARGO=\\?\C:\Users\grasb\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin\cargo.exe&& set CARGO_PKG_VERSION_PRE=&& set PATH="C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps;C:\Users\grasb\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin;C:\Users\grasb\.cargo\bin;C:\Users\grasb\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\CMake\bin;C:\Program Files\LLVM\bin;C:\Users\grasb\AppData\Local\Programs\Python\Python38-32\Scripts\;C:\Users\grasb\AppData\Local\Programs\Python\Python38-32\;C:\Users\grasb\.cargo\bin;C:\Users\grasb\AppData\Local\Microsoft\WindowsApps;C:\Users\grasb\AppData\Local\Programs\Microsoft VS Code\bin;C:\;C:\Users\grasb\AppData\Local\Programs\Python\Python38-32;C:\Users\grasb\AppData\Local\Programs\Python\Python38-32\Scripts;"&& set CARGO_PKG_VERSION=0.1.0&& set CARGO_PKG_AUTHORS=grasb&& rustc --crate-name rust_test --edition=2018 src\main.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C debuginfo=2 -C metadata=4dadc0ea158e5bcc --out-dir C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps -C incremental=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\incremental 
-L dependency=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps --extern opencv=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps\libopencv-8a2d459d585d8599.rlib -L native=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\build\opencv-320fa7e2ec4f430b\out -L C:\opencv\build\x64\vc15\lib` (exit code: 1)

@twistedfall
Copy link
Owner

Please be sure to supply -vv to cargo invocation command, e.g. cargo build -vv --features=...

@GRASBOCK
Copy link
Author

GRASBOCK commented Apr 8, 2020

Yep, I added the -vv. I updated the output to show it.

@twistedfall
Copy link
Owner

Ah, can you please do a cargo clean before running the build command then

@GRASBOCK
Copy link
Author

GRASBOCK commented Apr 8, 2020

Ok, I did cargo clean and then cargo build -vv
Since every single dependency was being rebuilt, the logs of course got so large, that I couldn't copy them all.
This is how much I was able to copy:

...
90  | / error! {
91  | |     /// Indicates the error that prevented determining the offset of a field in 
a record type.
92  | |     pub enum OffsetofError: c_longlong {
93  | |         /// The record type is a dependent type.
...   |
101 | |     }
102 | | }
    | |_- in this macro invocation

warning: use of deprecated item 'std::error::Error::description': use the Display impl or to_string()
   --> C:\Users\grasb\.cargo\registry\src\github.com-1ecc6299db9ec823\clang-0.23.0\src\error.rs:51:23
    |
51  |                   error.description().into()
    |                         ^^^^^^^^^^^
...
106 | / error! {
107 | |     /// Indicates the type of error that prevented the saving of a translation unit to an AST file.
108 | |     pub enum SaveError: CXSaveError {
109 | |         /// Errors in the translation unit prevented saving.
...   |
113 | |     }
114 | | }
    | |_- in this macro invocation

warning: use of deprecated item 'std::error::Error::description': use the Display impl or to_string()
   --> C:\Users\grasb\.cargo\registry\src\github.com-1ecc6299db9ec823\clang-0.23.0\src\error.rs:51:23
    |
51  |                   error.description().into()
    |                         ^^^^^^^^^^^
...
118 | / error! {
119 | |     /// Indicates the error that prevented determining the size of a type.
120 | |     pub enum SizeofError: c_longlong {
121 | |         /// The type is a dependent type.
...   |
127 | |     }
128 | | }
    | |_- in this macro invocation

warning: use of deprecated item 'std::error::Error::description': use the Display impl or to_string()
   --> C:\Users\grasb\.cargo\registry\src\github.com-1ecc6299db9ec823\clang-0.23.0\src\error.rs:51:23
    |
51  |                   error.description().into()
    |                         ^^^^^^^^^^^
...
132 | / error! {
133 | |     /// Indicates the type of error that prevented the loading of a translation 
unit from a source
134 | |     /// file.
135 | |     pub enum SourceError: CXErrorCode {
...   |
142 | |     }
143 | | }
    | |_- in this macro invocation

warning: use of deprecated item 'std::error::Error::description': use the Display impl or to_string()
  --> C:\Users\grasb\.cargo\registry\src\github.com-1ecc6299db9ec823\clang-0.23.0\src\error.rs:66:46
   |
66 |                   write!(formatter, "{}", self.description())
   |                                                ^^^^^^^^^^^
...
78 | / error! {
79 | |     /// Indicates the error that prevented determining the alignment of a type.  
80 | |     pub enum AlignofError: c_longlong {
81 | |         /// The type is a dependent type.
...  |
85 | |     }
86 | | }
   | |_- in this macro invocation

warning: use of deprecated item 'std::error::Error::description': use the Display impl or to_string()
   --> C:\Users\grasb\.cargo\registry\src\github.com-1ecc6299db9ec823\clang-0.23.0\src\error.rs:66:46
    |
66  |                   write!(formatter, "{}", self.description())
    |                                                ^^^^^^^^^^^
...
90  | / error! {
91  | |     /// Indicates the error that prevented determining the offset of a field in 
a record type.
92  | |     pub enum OffsetofError: c_longlong {
93  | |         /// The record type is a dependent type.
...   |
101 | |     }
102 | | }
    | |_- in this macro invocation

warning: use of deprecated item 'std::error::Error::description': use the Display impl or to_string()
   --> C:\Users\grasb\.cargo\registry\src\github.com-1ecc6299db9ec823\clang-0.23.0\src\error.rs:66:46
    |
66  |                   write!(formatter, "{}", self.description())
    |                                                ^^^^^^^^^^^
...
106 | / error! {
107 | |     /// Indicates the type of error that prevented the saving of a translation unit to an AST file.
108 | |     pub enum SaveError: CXSaveError {
109 | |         /// Errors in the translation unit prevented saving.
...   |
113 | |     }
114 | | }
    | |_- in this macro invocation

warning: use of deprecated item 'std::error::Error::description': use the Display impl or to_string()
   --> C:\Users\grasb\.cargo\registry\src\github.com-1ecc6299db9ec823\clang-0.23.0\src\error.rs:66:46
    |
66  |                   write!(formatter, "{}", self.description())
    |                                                ^^^^^^^^^^^
...
118 | / error! {
119 | |     /// Indicates the error that prevented determining the size of a type.      
120 | |     pub enum SizeofError: c_longlong {
121 | |         /// The type is a dependent type.
...   |
127 | |     }
128 | | }
    | |_- in this macro invocation

warning: use of deprecated item 'std::error::Error::description': use the Display impl or to_string()
   --> C:\Users\grasb\.cargo\registry\src\github.com-1ecc6299db9ec823\clang-0.23.0\src\error.rs:66:46
    |
66  |                   write!(formatter, "{}", self.description())
    |                                                ^^^^^^^^^^^
...
132 | / error! {
133 | |     /// Indicates the type of error that prevented the loading of a translation 
unit from a source
134 | |     /// file.
135 | |     pub enum SourceError: CXErrorCode {
...   |
142 | |     }
143 | | }
    | |_- in this macro invocation

     Running `set CARGO_PKG_VERSION_MAJOR=0&& set OUT_DIR=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\build\num-iter-1f7dc971a8362417\out&& set CARGO_PKG_VERSION=0.1.40&& set CARGO_PKG_VERSION_PATCH=40&& set PATH="C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps;C:\Users\grasb\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin;C:\Users\grasb\.cargo\bin;C:\Users\grasb\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\CMake\bin;C:\Program Files\LLVM\bin;C:\Users\grasb\AppData\Local\Programs\Python\Python38-32\Scripts\;C:\Users\grasb\AppData\Local\Programs\Python\Python38-32\;C:\Users\grasb\.cargo\bin;C:\Users\grasb\AppData\Local\Microsoft\WindowsApps;C:\Users\grasb\AppData\Local\Programs\Microsoft VS Code\bin;C:\;C:\Users\grasb\AppData\Local\Programs\Python\Python38-32;C:\Users\grasb\AppData\Local\Programs\Python\Python38-32\Scripts;"&& set CARGO_PKG_DESCRIPTION="External iterators for generic mathematics"&& set CARGO_PKG_REPOSITORY=https://github.com/rust-num/num-iter&& set CARGO_MANIFEST_DIR=C:\Users\grasb\.cargo\registry\src\github.com-1ecc6299db9ec823\num-iter-0.1.40&& set CARGO_PKG_VERSION_MINOR=1&& set CARGO_PKG_HOMEPAGE=https://github.com/rust-num/num-iter&& set CARGO_PKG_AUTHORS="The Rust Project Developers"&& set CARGO=\\?\C:\Users\grasb\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin\cargo.exe&& set CARGO_PKG_NAME=num-iter&& set CARGO_PKG_VERSION_PRE=&& rustc --crate-name num_iter C:\Users\grasb\.cargo\registry\src\github.com-1ecc6299db9ec823\num-iter-0.1.40\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C debuginfo=2 --cfg "feature=\"std\"" -C metadata=4341b079f4eeeb5c -C extra-filename=-4341b079f4eeeb5c --out-dir C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps -L dependency=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps --extern num_integer=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps\libnum_integer-80e407d2126b2c9b.rmeta --extern 
num_traits=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps\libnum_traits-9b300e5d2bc3bbe1.rmeta --cap-lints warn --cfg has_i128`
     Running `set CARGO_PKG_VERSION_MAJOR=1&& set OUT_DIR=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\build\rayon-core-f61b68c6f9a43231\out&& set CARGO_PKG_VERSION=1.7.0&& set CARGO_PKG_VERSION_PATCH=0&& set PATH="C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps;C:\Users\grasb\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin;C:\Users\grasb\.cargo\bin;C:\Users\grasb\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\CMake\bin;C:\Program Files\LLVM\bin;C:\Users\grasb\AppData\Local\Programs\Python\Python38-32\Scripts\;C:\Users\grasb\AppData\Local\Programs\Python\Python38-32\;C:\Users\grasb\.cargo\bin;C:\Users\grasb\AppData\Local\Microsoft\WindowsApps;C:\Users\grasb\AppData\Local\Programs\Microsoft VS Code\bin;C:\;C:\Users\grasb\AppData\Local\Programs\Python\Python38-32;C:\Users\grasb\AppData\Local\Programs\Python\Python38-32\Scripts;"&& set CARGO_PKG_DESCRIPTION="Core APIs for Rayon"&& set CARGO_PKG_REPOSITORY=https://github.com/rayon-rs/rayon&& set CARGO_MANIFEST_DIR=C:\Users\grasb\.cargo\registry\src\github.com-1ecc6299db9ec823\rayon-core-1.7.0&& set CARGO_PKG_VERSION_MINOR=7&& set CARGO_PKG_HOMEPAGE=&& set CARGO_PKG_AUTHORS="Niko Matsakis <niko@alum.mit.edu>:Josh Stone <cuviper@gmail.com>"&& set CARGO=\\?\C:\Users\grasb\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin\cargo.exe&& set CARGO_PKG_NAME=rayon-core&& set CARGO_PKG_VERSION_PRE=&& rustc --crate-name rayon_core 
--edition=2018 C:\Users\grasb\.cargo\registry\src\github.com-1ecc6299db9ec823\rayon-core-1.7.0\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C debuginfo=2 -C metadata=0ab332140b82b89f -C extra-filename=-0ab332140b82b89f --out-dir C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps -L dependency=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps --extern crossbeam_deque=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps\libcrossbeam_deque-7ab8805121dd29bb.rmeta --extern crossbeam_queue=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps\libcrossbeam_queue-2174dcb7c00640fa.rmeta --extern crossbeam_utils=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps\libcrossbeam_utils-f525797f4bc938dd.rmeta --extern lazy_static=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps\liblazy_static-14780178ad1d3bd0.rmeta --extern num_cpus=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps\libnum_cpus-a577ecce84f7a0d0.rmeta --cap-lints warn`
warning: use of deprecated item 'std::error::Error::description': use the Display impl or to_string()
   --> C:\Users\grasb\.cargo\registry\src\github.com-1ecc6299db9ec823\rayon-core-1.7.0\src\lib.rs:647:44
    |
647 |             ErrorKind::IOError(ref e) => e.description(),
    |                                            ^^^^^^^^^^^
    |
    = note: `#[warn(deprecated)]` on by default

warning: use of deprecated item 'std::error::Error::description': use the Display impl or to_string()
   --> C:\Users\grasb\.cargo\registry\src\github.com-1ecc6299db9ec823\rayon-core-1.7.0\src\lib.rs:656:23
    |
656 |             _ => self.description().fmt(f),
    |                       ^^^^^^^^^^^

   Compiling opencv-binding-generator v0.6.0
     Running `set CARGO_PKG_VERSION_MAJOR=0&& set CARGO_PKG_VERSION=0.6.0&& set CARGO_PKG_VERSION_PATCH=0&& set PATH="C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps;C:\Users\grasb\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin;C:\Users\grasb\.cargo\bin;C:\Users\grasb\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\CMake\bin;C:\Program Files\LLVM\bin;C:\Users\grasb\AppData\Local\Programs\Python\Python38-32\Scripts\;C:\Users\grasb\AppData\Local\Programs\Python\Python38-32\;C:\Users\grasb\.cargo\bin;C:\Users\grasb\AppData\Local\Microsoft\WindowsApps;C:\Users\grasb\AppData\Local\Programs\Microsoft VS Code\bin;C:\;C:\Users\grasb\AppData\Local\Programs\Python\Python38-32;C:\Users\grasb\AppData\Local\Programs\Python\Python38-32\Scripts;"&& set CARGO_PKG_DESCRIPTION="Binding generator for opencv crate"&& set CARGO_PKG_REPOSITORY=https://github.com/twistedfall/opencv-rust&& set CARGO_MANIFEST_DIR=C:\Users\grasb\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-binding-generator-0.6.0&& set CARGO_PKG_VERSION_MINOR=6&& set CARGO_PKG_HOMEPAGE=&& 
set CARGO_PKG_AUTHORS="Pro <twisted.fall@gmail.com>"&& set CARGO=\\?\C:\Users\grasb\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin\cargo.exe&& set CARGO_PKG_NAME=opencv-binding-generator&& set CARGO_PKG_VERSION_PRE=&& rustc --crate-name opencv_binding_generator --edition=2018 C:\Users\grasb\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-binding-generator-0.6.0\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi 
--crate-type lib --emit=dep-info,metadata,link -C debuginfo=2 -C metadata=2fe30705c7e62a2c -C extra-filename=-2fe30705c7e62a2c --out-dir C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps -L dependency=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps --extern clang=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps\libclang-c993a4de01685982.rmeta --extern clang_sys=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps\libclang_sys-30341c00701e6d6d.rmeta --extern dunce=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps\libdunce-2a8821ca6ea5d6d2.rmeta --extern maplit=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps\libmaplit-9bad89701a3eca67.rmeta --extern once_cell=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps\libonce_cell-cedf602f73672a0d.rmeta --extern percent_encoding=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps\libpercent_encoding-a7be5a23022a25fd.rmeta --extern regex=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps\libregex-60583a97a16f0c90.rmeta --cap-lints warn -L "C:\Program Files\LLVM\bin" -L "C:\Program Files\LLVM\lib"`
     Running `set CARGO_PKG_VERSION_MAJOR=0&& set OUT_DIR=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\build\num-rational-164844be75969224\out&& set CARGO_PKG_VERSION=0.2.4&& set CARGO_PKG_VERSION_PATCH=4&& set PATH="C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps;C:\Users\grasb\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin;C:\Users\grasb\.cargo\bin;C:\Users\grasb\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\CMake\bin;C:\Program Files\LLVM\bin;C:\Users\grasb\AppData\Local\Programs\Python\Python38-32\Scripts\;C:\Users\grasb\AppData\Local\Programs\Python\Python38-32\;C:\Users\grasb\.cargo\bin;C:\Users\grasb\AppData\Local\Microsoft\WindowsApps;C:\Users\grasb\AppData\Local\Programs\Microsoft VS Code\bin;C:\;C:\Users\grasb\AppData\Local\Programs\Python\Python38-32;C:\Users\grasb\AppData\Local\Programs\Python\Python38-32\Scripts;"&& set CARGO_PKG_DESCRIPTION="Rational numbers implementation for Rust"&& set CARGO_PKG_REPOSITORY=https://github.com/rust-num/num-rational&& set CARGO_MANIFEST_DIR=C:\Users\grasb\.cargo\registry\src\github.com-1ecc6299db9ec823\num-rational-0.2.4&& set CARGO_PKG_VERSION_MINOR=2&& set CARGO_PKG_HOMEPAGE=https://github.com/rust-num/num-rational&& set CARGO_PKG_AUTHORS="The Rust Project Developers"&& set CARGO=\\?\C:\Users\grasb\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin\cargo.exe&& set CARGO_PKG_NAME=num-rational&& set CARGO_PKG_VERSION_PRE=&& rustc --crate-name num_rational C:\Users\grasb\.cargo\registry\src\github.com-1ecc6299db9ec823\num-rational-0.2.4\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C debuginfo=2 --cfg "feature=\"bigint\"" --cfg "feature=\"num-bigint\"" --cfg "feature=\"std\"" -C metadata=358c9598f0c850c8 -C extra-filename=-358c9598f0c850c8 --out-dir C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps -L dependency=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps --extern num_bigint=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps\libnum_bigint-d0c4a0ece5ebebf0.rmeta --extern num_integer=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps\libnum_integer-80e407d2126b2c9b.rmeta --extern num_traits=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps\libnum_traits-9b300e5d2bc3bbe1.rmeta --cap-lints warn --cfg has_i128 --cfg has_const_fn`
   Compiling rayon v1.3.0
     Running `set CARGO_PKG_VERSION_MAJOR=1&& set CARGO_PKG_VERSION=1.3.0&& set CARGO_PKG_VERSION_PATCH=0&& set PATH="C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps;C:\Users\grasb\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin;C:\Users\grasb\.cargo\bin;C:\Users\grasb\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\CMake\bin;C:\Program Files\LLVM\bin;C:\Users\grasb\AppData\Local\Programs\Python\Python38-32\Scripts\;C:\Users\grasb\AppData\Local\Programs\Python\Python38-32\;C:\Users\grasb\.cargo\bin;C:\Users\grasb\AppData\Local\Microsoft\WindowsApps;C:\Users\grasb\AppData\Local\Programs\Microsoft VS Code\bin;C:\;C:\Users\grasb\AppData\Local\Programs\Python\Python38-32;C:\Users\grasb\AppData\Local\Programs\Python\Python38-32\Scripts;"&& set CARGO_PKG_DESCRIPTION="Simple work-stealing 
parallelism for Rust"&& set CARGO_PKG_REPOSITORY=https://github.com/rayon-rs/rayon&& set CARGO_MANIFEST_DIR=C:\Users\grasb\.cargo\registry\src\github.com-1ecc6299db9ec823\rayon-1.3.0&& set CARGO_PKG_VERSION_MINOR=3&& set CARGO_PKG_HOMEPAGE=&& set CARGO_PKG_AUTHORS="Niko Matsakis <niko@alum.mit.edu>:Josh Stone <cuviper@gmail.com>"&& set CARGO=\\?\C:\Users\grasb\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin\cargo.exe&& set CARGO_PKG_NAME=rayon&& set CARGO_PKG_VERSION_PRE=&& rustc --crate-name rayon --edition=2018 C:\Users\grasb\.cargo\registry\src\github.com-1ecc6299db9ec823\rayon-1.3.0\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C debuginfo=2 -C metadata=9dd88e932b22bbe7 -C extra-filename=-9dd88e932b22bbe7 --out-dir C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps -L dependency=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps --extern crossbeam_deque=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps\libcrossbeam_deque-7ab8805121dd29bb.rmeta --extern either=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps\libeither-9ab6fa241c6c1c9e.rmeta --extern rayon_core=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps\librayon_core-0ab332140b82b89f.rmeta --cap-lints warn`
   Compiling num v0.2.1
     Running `set CARGO_PKG_VERSION_MAJOR=0&& set CARGO_PKG_VERSION=0.2.1&& set CARGO_PKG_VERSION_PATCH=1&& set PATH="C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps;C:\Users\grasb\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin;C:\Users\grasb\.cargo\bin;C:\Users\grasb\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\CMake\bin;C:\Program Files\LLVM\bin;C:\Users\grasb\AppData\Local\Programs\Python\Python38-32\Scripts\;C:\Users\grasb\AppData\Local\Programs\Python\Python38-32\;C:\Users\grasb\.cargo\bin;C:\Users\grasb\AppData\Local\Microsoft\WindowsApps;C:\Users\grasb\AppData\Local\Programs\Microsoft VS Code\bin;C:\;C:\Users\grasb\AppData\Local\Programs\Python\Python38-32;C:\Users\grasb\AppData\Local\Programs\Python\Python38-32\Scripts;"&& set CARGO_PKG_DESCRIPTION="A collection of numeric types and traits for Rust, including bigint,
complex, rational, range iterators, generic integers, and more!
"&& set CARGO_PKG_REPOSITORY=https://github.com/rust-num/num&& set CARGO_MANIFEST_DIR=C:\Users\grasb\.cargo\registry\src\github.com-1ecc6299db9ec823\num-0.2.1&& set CARGO_PKG_VERSION_MINOR=2&& set CARGO_PKG_HOMEPAGE=https://github.com/rust-num/num&& set CARGO_PKG_AUTHORS="The Rust Project Developers"&& set CARGO=\\?\C:\Users\grasb\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin\cargo.exe&& set CARGO_PKG_NAME=num&& set CARGO_PKG_VERSION_PRE=&& rustc --crate-name num C:\Users\grasb\.cargo\registry\src\github.com-1ecc6299db9ec823\num-0.2.1\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C debuginfo=2 --cfg "feature=\"default\"" --cfg "feature=\"num-bigint\"" --cfg "feature=\"std\"" -C metadata=7328a1be0b92b1ed -C extra-filename=-7328a1be0b92b1ed --out-dir C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps -L dependency=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps --extern num_bigint=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps\libnum_bigint-d0c4a0ece5ebebf0.rmeta --extern num_complex=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps\libnum_complex-bf3238b8f1460611.rmeta --extern num_integer=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps\libnum_integer-80e407d2126b2c9b.rmeta --extern num_iter=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps\libnum_iter-4341b079f4eeeb5c.rmeta --extern num_rational=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps\libnum_rational-358c9598f0c850c8.rmeta --extern num_traits=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps\libnum_traits-9b300e5d2bc3bbe1.rmeta --cap-lints warn`      
   Compiling opencv v0.33.1
     Running `set CARGO_PKG_VERSION_MAJOR=0&& set CARGO_PKG_VERSION=0.33.1&& set CARGO_PKG_VERSION_PATCH=1&& set PATH="C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps;C:\Users\grasb\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin;C:\Users\grasb\.cargo\bin;C:\Users\grasb\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\CMake\bin;C:\Program Files\LLVM\bin;C:\Users\grasb\AppData\Local\Programs\Python\Python38-32\Scripts\;C:\Users\grasb\AppData\Local\Programs\Python\Python38-32\;C:\Users\grasb\.cargo\bin;C:\Users\grasb\AppData\Local\Microsoft\WindowsApps;C:\Users\grasb\AppData\Local\Programs\Microsoft VS Code\bin;C:\;C:\Users\grasb\AppData\Local\Programs\Python\Python38-32;C:\Users\grasb\AppData\Local\Programs\Python\Python38-32\Scripts;"&& set CARGO_PKG_DESCRIPTION="Rust bindings for OpenCV"&& set CARGO_PKG_REPOSITORY=https://github.com/twistedfall/opencv-rust&& set CARGO_MANIFEST_DIR=C:\Users\grasb\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.33.1&& set CARGO_PKG_VERSION_MINOR=33&& set CARGO_PKG_HOMEPAGE=&& set CARGO_PKG_AUTHORS="Mathieu Poumeyrol <kali@zoy.org>:Pro <twisted.fall@gmail.com>"&& set CARGO=\\?\C:\Users\grasb\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin\cargo.exe&& set CARGO_PKG_NAME=opencv&& set CARGO_PKG_VERSION_PRE=&& rustc --crate-name build_script_build --edition=2018 C:\Users\grasb\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.33.1\build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C debuginfo=2 --cfg "feature=\"binding-generator\"" --cfg "feature=\"buildtime-bindgen\"" --cfg "feature=\"clang\"" --cfg "feature=\"default\"" --cfg "feature=\"opencv-4\"" -C metadata=cbf104b9e94d4794 -C extra-filename=-cbf104b9e94d4794 --out-dir C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\build\opencv-cbf104b9e94d4794 -L dependency=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps --extern cc=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps\libcc-e174b0061c84e339.rlib --extern clang=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps\libclang-c993a4de01685982.rlib --extern glob_crate=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps\libglob-44a7f82d65186c08.rlib --extern once_cell=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps\libonce_cell-cedf602f73672a0d.rlib --extern binding_generator=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps\libopencv_binding_generator-2fe30705c7e62a2c.rlib --extern rayon=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps\librayon-9dd88e932b22bbe7.rlib --extern semver=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps\libsemver-035ed3afdc1d23a7.rlib --extern vcpkg=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps\libvcpkg-72b02db205022ae1.rlib --cap-lints warn -L "C:\Program Files\LLVM\bin" -L "C:\Program Files\LLVM\lib"`
     Running `C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\build\opencv-cbf104b9e94d4794\build-script-build`
[opencv 0.33.1] === Setting up OpenCV library from environment:                         
[opencv 0.33.1] ===   pkg_name: opencv4
[opencv 0.33.1] ===   link_libs: C:\opencv\build\x64\vc15\bin
[opencv 0.33.1] ===   link_paths: C:\opencv\build\x64\vc15\lib
[opencv 0.33.1] ===   include_paths: C:\opencv\build\include
[opencv 0.33.1] === OpenCV library configuration: Library {                             
[opencv 0.33.1]     pkg_name: "opencv4",
[opencv 0.33.1]     include_paths: [
[opencv 0.33.1]         "C:\\opencv\\build\\include",
[opencv 0.33.1]     ],
[opencv 0.33.1]     version: "4.2.0",
[opencv 0.33.1]     cargo_metadata: [
[opencv 0.33.1]         "cargo:rustc-link-search=C:\\opencv\\build\\x64\\vc15\\lib",    
[opencv 0.33.1]         "cargo:rustc-link-lib=bin",
[opencv 0.33.1]     ],
[opencv 0.33.1] }
[opencv 0.33.1] === Found OpenCV library version: 4.2.0 in headers located at: C:\opencv\build\include
[opencv 0.33.1] === Using OpenCV headers from: C:\opencv\build\include\opencv2
[opencv 0.33.1] === Generating code in: C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\build\opencv-320fa7e2ec4f430b\out
[opencv 0.33.1] === Placing generated bindings into: C:\Users\grasb\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.33.1\bindings\rust\opencv_4
[opencv 0.33.1] Generated: objdetect                                                    
[opencv 0.33.1] Generated: calib3d
[opencv 0.33.1] Generated: imgproc
[opencv 0.33.1] Generated: photo
[opencv 0.33.1] Generated: stitching
[opencv 0.33.1] Generated: videoio
[opencv 0.33.1] Generated: world                                                        
[opencv 0.33.1] Generated: ml
[opencv 0.33.1] Generated: video
[opencv 0.33.1] Generated: highgui                                                      
[opencv 0.33.1] Generated: features2d
[opencv 0.33.1] Generated: imgcodecs
[opencv 0.33.1] Generated: flann
[opencv 0.33.1] Generated: dnn                                                          
[opencv 0.33.1] Generated: core                                                         
[opencv 0.33.1] Total binding generation time: 26.484357s
[opencv 0.33.1] cargo:rerun-if-env-changed=OPENCV_HEADER_DIR                            
[opencv 0.33.1] cargo:rerun-if-env-changed=OPENCV_PACKAGE_NAME
[opencv 0.33.1] cargo:rerun-if-env-changed=OPENCV_PKGCONFIG_NAME
[opencv 0.33.1] cargo:rerun-if-env-changed=OPENCV_LINK_LIBS
[opencv 0.33.1] cargo:rerun-if-env-changed=OPENCV_LINK_PATHS
[opencv 0.33.1] cargo:rerun-if-env-changed=OPENCV_INCLUDE_PATHS
[opencv 0.33.1] cargo:rerun-if-changed=C:\Users\grasb\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.33.1\src_cpp\aruco.hpp
[opencv 0.33.1] cargo:rerun-if-changed=C:\Users\grasb\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.33.1\src_cpp\bioinspired.hpp
[opencv 0.33.1] cargo:rerun-if-changed=C:\Users\grasb\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.33.1\src_cpp\calib3d.hpp
[opencv 0.33.1] cargo:rerun-if-changed=C:\Users\grasb\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.33.1\src_cpp\ccalib.hpp
[opencv 0.33.1] cargo:rerun-if-changed=C:\Users\grasb\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.33.1\src_cpp\common.hpp
[opencv 0.33.1] cargo:rerun-if-changed=C:\Users\grasb\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.33.1\src_cpp\core.hpp
[opencv 0.33.1] cargo:rerun-if-changed=C:\Users\grasb\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.33.1\src_cpp\dnn.hpp
[opencv 0.33.1] cargo:rerun-if-changed=C:\Users\grasb\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.33.1\src_cpp\face.hpp
[opencv 0.33.1] cargo:rerun-if-changed=C:\Users\grasb\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.33.1\src_cpp\hdf.hpp
[opencv 0.33.1] cargo:rerun-if-changed=C:\Users\grasb\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.33.1\src_cpp\imgproc.hpp
[opencv 0.33.1] cargo:rerun-if-changed=C:\Users\grasb\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.33.1\src_cpp\manual-core.cpp
[opencv 0.33.1] cargo:rerun-if-changed=C:\Users\grasb\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.33.1\src_cpp\manual-dnn.cpp
[opencv 0.33.1] cargo:rerun-if-changed=C:\Users\grasb\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.33.1\src_cpp\manual-features2d.cpp
[opencv 0.33.1] cargo:rerun-if-changed=C:\Users\grasb\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.33.1\src_cpp\ocvrs_resolve_types.hpp
[opencv 0.33.1] cargo:rerun-if-changed=C:\Users\grasb\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.33.1\src_cpp\sfm.hpp
[opencv 0.33.1] cargo:rerun-if-changed=C:\Users\grasb\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.33.1\src_cpp\videoio.hpp
[opencv 0.33.1] TARGET = Some("x86_64-pc-windows-msvc")
[opencv 0.33.1] OPT_LEVEL = Some("0")
[opencv 0.33.1] HOST = Some("x86_64-pc-windows-msvc")
[opencv 0.33.1] CXX_x86_64-pc-windows-msvc = None
[opencv 0.33.1] CXX_x86_64_pc_windows_msvc = None
[opencv 0.33.1] HOST_CXX = None
[opencv 0.33.1] CXX = None
[opencv 0.33.1] CXXFLAGS_x86_64-pc-windows-msvc = None
[opencv 0.33.1] CXXFLAGS_x86_64_pc_windows_msvc = None
[opencv 0.33.1] HOST_CXXFLAGS = None
[opencv 0.33.1] CXXFLAGS = None
[opencv 0.33.1] CRATE_CC_NO_DEFAULTS = None
[opencv 0.33.1] CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
[opencv 0.33.1] DEBUG = Some("true")
[opencv 0.33.1] CXX_x86_64-pc-windows-msvc = None
[opencv 0.33.1] CXX_x86_64_pc_windows_msvc = None
[opencv 0.33.1] HOST_CXX = None
[opencv 0.33.1] CXX = None
[opencv 0.33.1] CXXFLAGS_x86_64-pc-windows-msvc = None
[opencv 0.33.1] CXXFLAGS_x86_64_pc_windows_msvc = None
[opencv 0.33.1] HOST_CXXFLAGS = None
[opencv 0.33.1] CXXFLAGS = None
[opencv 0.33.1] CRATE_CC_NO_DEFAULTS = None
[opencv 0.33.1] CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
[opencv 0.33.1] CXX_x86_64-pc-windows-msvc = None
[opencv 0.33.1] CXX_x86_64_pc_windows_msvc = None
[opencv 0.33.1] HOST_CXX = None
[opencv 0.33.1] CXX = None
[opencv 0.33.1] CXXFLAGS_x86_64-pc-windows-msvc = None
[opencv 0.33.1] CXXFLAGS_x86_64_pc_windows_msvc = None
[opencv 0.33.1] HOST_CXXFLAGS = None
[opencv 0.33.1] CXXFLAGS = None
[opencv 0.33.1] CRATE_CC_NO_DEFAULTS = None
[opencv 0.33.1] CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
[opencv 0.33.1] CXX_x86_64-pc-windows-msvc = None                                       
[opencv 0.33.1] CXX_x86_64_pc_windows_msvc = None
[opencv 0.33.1] HOST_CXX = None
[opencv 0.33.1] CXX = None
[opencv 0.33.1] CXXFLAGS_x86_64-pc-windows-msvc = None
[opencv 0.33.1] CXXFLAGS_x86_64_pc_windows_msvc = None
[opencv 0.33.1] HOST_CXXFLAGS = None
[opencv 0.33.1] CXXFLAGS = None
[opencv 0.33.1] CRATE_CC_NO_DEFAULTS = None
[opencv 0.33.1] CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
[opencv 0.33.1] CXX_x86_64-pc-windows-msvc = None                                       
[opencv 0.33.1] CXX_x86_64_pc_windows_msvc = None
[opencv 0.33.1] HOST_CXX = None
[opencv 0.33.1] CXX = None
[opencv 0.33.1] CXXFLAGS_x86_64-pc-windows-msvc = None
[opencv 0.33.1] CXXFLAGS_x86_64_pc_windows_msvc = None
[opencv 0.33.1] HOST_CXXFLAGS = None
[opencv 0.33.1] CXXFLAGS = None
[opencv 0.33.1] CRATE_CC_NO_DEFAULTS = None
[opencv 0.33.1] CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
[opencv 0.33.1] CXX_x86_64-pc-windows-msvc = None                                       
[opencv 0.33.1] CXX_x86_64_pc_windows_msvc = None
[opencv 0.33.1] HOST_CXX = None
[opencv 0.33.1] CXX = None
[opencv 0.33.1] CXXFLAGS_x86_64-pc-windows-msvc = None
[opencv 0.33.1] CXXFLAGS_x86_64_pc_windows_msvc = None
[opencv 0.33.1] HOST_CXXFLAGS = None
[opencv 0.33.1] CXXFLAGS = None
[opencv 0.33.1] CRATE_CC_NO_DEFAULTS = None
[opencv 0.33.1] CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
[opencv 0.33.1] CXX_x86_64-pc-windows-msvc = None                                       
[opencv 0.33.1] CXX_x86_64_pc_windows_msvc = None
[opencv 0.33.1] HOST_CXX = None
[opencv 0.33.1] CXX = None
[opencv 0.33.1] CXXFLAGS_x86_64-pc-windows-msvc = None
[opencv 0.33.1] CXXFLAGS_x86_64_pc_windows_msvc = None
[opencv 0.33.1] HOST_CXXFLAGS = None
[opencv 0.33.1] CXXFLAGS = None
[opencv 0.33.1] CRATE_CC_NO_DEFAULTS = None
[opencv 0.33.1] CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
[opencv 0.33.1] CXX_x86_64-pc-windows-msvc = None                                       
[opencv 0.33.1] CXX_x86_64_pc_windows_msvc = None
[opencv 0.33.1] HOST_CXX = None
[opencv 0.33.1] CXX = None
[opencv 0.33.1] CXXFLAGS_x86_64-pc-windows-msvc = None
[opencv 0.33.1] CXXFLAGS_x86_64_pc_windows_msvc = None
[opencv 0.33.1] HOST_CXXFLAGS = None
[opencv 0.33.1] CXXFLAGS = None
[opencv 0.33.1] CRATE_CC_NO_DEFAULTS = None
[opencv 0.33.1] CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
[opencv 0.33.1] CXX_x86_64-pc-windows-msvc = None
[opencv 0.33.1] CXX_x86_64_pc_windows_msvc = None
[opencv 0.33.1] HOST_CXX = None
[opencv 0.33.1] CXX = None
[opencv 0.33.1] CXXFLAGS_x86_64-pc-windows-msvc = None
[opencv 0.33.1] CXXFLAGS_x86_64_pc_windows_msvc = None
[opencv 0.33.1] HOST_CXXFLAGS = None
[opencv 0.33.1] CXXFLAGS = None
[opencv 0.33.1] CRATE_CC_NO_DEFAULTS = None
[opencv 0.33.1] CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
[opencv 0.33.1] CXX_x86_64-pc-windows-msvc = None
[opencv 0.33.1] CXX_x86_64_pc_windows_msvc = None
[opencv 0.33.1] HOST_CXX = None
[opencv 0.33.1] CXX = None
[opencv 0.33.1] CXXFLAGS_x86_64-pc-windows-msvc = None
[opencv 0.33.1] CXXFLAGS_x86_64_pc_windows_msvc = None
[opencv 0.33.1] HOST_CXXFLAGS = None
[opencv 0.33.1] CXXFLAGS = None
[opencv 0.33.1] CRATE_CC_NO_DEFAULTS = None
[opencv 0.33.1] CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
[opencv 0.33.1] CXX_x86_64-pc-windows-msvc = None                                       
[opencv 0.33.1] CXX_x86_64_pc_windows_msvc = None
[opencv 0.33.1] HOST_CXX = None
[opencv 0.33.1] CXX = None
[opencv 0.33.1] CXXFLAGS_x86_64-pc-windows-msvc = None
[opencv 0.33.1] CXXFLAGS_x86_64_pc_windows_msvc = None
[opencv 0.33.1] HOST_CXXFLAGS = None
[opencv 0.33.1] CXXFLAGS = None
[opencv 0.33.1] CRATE_CC_NO_DEFAULTS = None
[opencv 0.33.1] CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
[opencv 0.33.1] running: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.25.28610\\bin\\HostX64\\x64\\cl.exe" "-nologo" "-MD" "-Z7" "-Brepro" "-I" "C:\\Users\\grasb\\.cargo\\registry\\src\\github.com-1ecc6299db9ec823\\opencv-0.33.1\\src_cpp" "-I" "C:\\opencv\\build\\include" "-I" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out" "-I" "." 
"-W4" "-std:c++latest" "-wd4996" "-wd5054" "-wd4190" "-EHsc" "-FoC:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out\\calib3d.o" "-c" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out\\calib3d.cpp"
[opencv 0.33.1] running: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.25.28610\\bin\\HostX64\\x64\\cl.exe" "-nologo" "-MD" "-Z7" "-Brepro" "-I" "C:\\Users\\grasb\\.cargo\\registry\\src\\github.com-1ecc6299db9ec823\\opencv-0.33.1\\src_cpp" "-I" "C:\\opencv\\build\\include" "-I" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out" "-I" "." 
"-W4" "-std:c++latest" "-wd4996" "-wd5054" "-wd4190" "-EHsc" "-FoC:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out\\dnn.o" "-c" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out\\dnn.cpp"
[opencv 0.33.1] running: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.25.28610\\bin\\HostX64\\x64\\cl.exe" "-nologo" "-MD" "-Z7" "-Brepro" "-I" "C:\\Users\\grasb\\.cargo\\registry\\src\\github.com-1ecc6299db9ec823\\opencv-0.33.1\\src_cpp" "-I" "C:\\opencv\\build\\include" "-I" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out" "-I" "." 
"-W4" "-std:c++latest" "-wd4996" "-wd5054" "-wd4190" "-EHsc" "-FoC:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out\\manual-core.o" "-c" "C:\\Users\\grasb\\.cargo\\registry\\src\\github.com-1ecc6299db9ec823\\opencv-0.33.1\\src_cpp\\manual-core.cpp"
[opencv 0.33.1] running: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.25.28610\\bin\\HostX64\\x64\\cl.exe" "-nologo" "-MD" "-Z7" "-Brepro" "-I" "C:\\Users\\grasb\\.cargo\\registry\\src\\github.com-1ecc6299db9ec823\\opencv-0.33.1\\src_cpp" "-I" "C:\\opencv\\build\\include" "-I" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out" "-I" "." 
"-W4" "-std:c++latest" "-wd4996" "-wd5054" "-wd4190" "-EHsc" "-FoC:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out\\core.o" "-c" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out\\core.cpp"
[opencv 0.33.1] calib3d.cpp                                                             
[opencv 0.33.1] dnn.cpp
[opencv 0.33.1] manual-core.cpp
[opencv 0.33.1] core.cpp
[opencv 0.33.1] C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\build\opencv-320fa7e2ec4f430b\out\core_types.hpp(2884): warning C4239: nonstandard extension used: 'argument': conversion from 'std::_Vb_reference<std::_Wrap_alloc<std::allocator<std::_Vbase>>>' to '_Ty &'
[opencv 0.33.1]         with
[opencv 0.33.1]         [
[opencv 0.33.1]             _Ty=std::_Vb_reference<std::_Wrap_alloc<std::allocator<std::_Vbase>>>
[opencv 0.33.1]         ]
[opencv 0.33.1] C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\build\opencv-320fa7e2ec4f430b\out\core_types.hpp(2884): note: A non-const reference may only be bound to an lvalue
[opencv 0.33.1] exit code: 0
[opencv 0.33.1] running: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.25.28610\\bin\\HostX64\\x64\\cl.exe" "-nologo" "-MD" "-Z7" "-Brepro" "-I" "C:\\Users\\grasb\\.cargo\\registry\\src\\github.com-1ecc6299db9ec823\\opencv-0.33.1\\src_cpp" "-I" "C:\\opencv\\build\\include" "-I" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out" "-I" "." 
"-W4" "-std:c++latest" "-wd4996" "-wd5054" "-wd4190" "-EHsc" "-FoC:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out\\manual-dnn.o" "-c" "C:\\Users\\grasb\\.cargo\\registry\\src\\github.com-1ecc6299db9ec823\\opencv-0.33.1\\src_cpp\\manual-dnn.cpp"
[opencv 0.33.1] exit code: 0
[opencv 0.33.1] running: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.25.28610\\bin\\HostX64\\x64\\cl.exe" "-nologo" "-MD" "-Z7" "-Brepro" "-I" "C:\\Users\\grasb\\.cargo\\registry\\src\\github.com-1ecc6299db9ec823\\opencv-0.33.1\\src_cpp" "-I" "C:\\opencv\\build\\include" "-I" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out" "-I" "." 
"-W4" "-std:c++latest" "-wd4996" "-wd5054" "-wd4190" "-EHsc" "-FoC:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out\\features2d.o" "-c" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out\\features2d.cpp"
[opencv 0.33.1] features2d.cpp
[opencv 0.33.1] manual-dnn.cpp
[opencv 0.33.1] exit code: 0
[opencv 0.33.1] running: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.25.28610\\bin\\HostX64\\x64\\cl.exe" "-nologo" "-MD" "-Z7" "-Brepro" "-I" "C:\\Users\\grasb\\.cargo\\registry\\src\\github.com-1ecc6299db9ec823\\opencv-0.33.1\\src_cpp" "-I" "C:\\opencv\\build\\include" "-I" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out" "-I" "." 
"-W4" "-std:c++latest" "-wd4996" "-wd5054" "-wd4190" "-EHsc" "-FoC:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out\\manual-features2d.o" "-c" "C:\\Users\\grasb\\.cargo\\registry\\src\\github.com-1ecc6299db9ec823\\opencv-0.33.1\\src_cpp\\manual-features2d.cpp"
[opencv 0.33.1] manual-features2d.cpp
[opencv 0.33.1] C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\build\opencv-320fa7e2ec4f430b\out\core.cpp(288) : warning C4702: unreachable code
[opencv 0.33.1] C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\build\opencv-320fa7e2ec4f430b\out\core.cpp(295) : warning C4702: unreachable code
[opencv 0.33.1] C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\build\opencv-320fa7e2ec4f430b\out\core.cpp(302) : warning C4702: unreachable code
[opencv 0.33.1] C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\build\opencv-320fa7e2ec4f430b\out\core.cpp(309) : warning C4702: unreachable code
[opencv 0.33.1] C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\build\opencv-320fa7e2ec4f430b\out\core.cpp(316) : warning C4702: unreachable code
[opencv 0.33.1] C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\build\opencv-320fa7e2ec4f430b\out\core.cpp(323) : warning C4702: unreachable code
[opencv 0.33.1] C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\build\opencv-320fa7e2ec4f430b\out\core.cpp(330) : warning C4702: unreachable code
[opencv 0.33.1] C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\build\opencv-320fa7e2ec4f430b\out\core.cpp(337) : warning C4702: unreachable code
[opencv 0.33.1] C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\build\opencv-320fa7e2ec4f430b\out\core.cpp(344) : warning C4702: unreachable code
[opencv 0.33.1] C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\build\opencv-320fa7e2ec4f430b\out\core.cpp(351) : warning C4702: unreachable code
[opencv 0.33.1] C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\build\opencv-320fa7e2ec4f430b\out\core.cpp(358) : warning C4702: unreachable code
[opencv 0.33.1] C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\build\opencv-320fa7e2ec4f430b\out\core.cpp(365) : warning C4702: unreachable code
[opencv 0.33.1] C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\build\opencv-320fa7e2ec4f430b\out\core.cpp(372) : warning C4702: unreachable code
[opencv 0.33.1] C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\build\opencv-320fa7e2ec4f430b\out\core.cpp(379) : warning C4702: unreachable code
[opencv 0.33.1] C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\build\opencv-320fa7e2ec4f430b\out\core.cpp(386) : warning C4702: unreachable code
[opencv 0.33.1] C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\build\opencv-320fa7e2ec4f430b\out\core.cpp(393) : warning C4702: unreachable code
[opencv 0.33.1] C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\build\opencv-320fa7e2ec4f430b\out\core.cpp(456) : warning C4702: unreachable code
[opencv 0.33.1] C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\build\opencv-320fa7e2ec4f430b\out\core.cpp(463) : warning C4702: unreachable code
[opencv 0.33.1] exit code: 0
[opencv 0.33.1] running: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.25.28610\\bin\\HostX64\\x64\\cl.exe" "-nologo" "-MD" "-Z7" "-Brepro" "-I" "C:\\Users\\grasb\\.cargo\\registry\\src\\github.com-1ecc6299db9ec823\\opencv-0.33.1\\src_cpp" "-I" "C:\\opencv\\build\\include" "-I" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out" "-I" "." 
"-W4" "-std:c++latest" "-wd4996" "-wd5054" "-wd4190" "-EHsc" "-FoC:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out\\flann.o" "-c" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out\\flann.cpp"
[opencv 0.33.1] flann.cpp
[opencv 0.33.1] exit code: 0
[opencv 0.33.1] running: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.25.28610\\bin\\HostX64\\x64\\cl.exe" "-nologo" "-MD" "-Z7" "-Brepro" "-I" "C:\\Users\\grasb\\.cargo\\registry\\src\\github.com-1ecc6299db9ec823\\opencv-0.33.1\\src_cpp" "-I" "C:\\opencv\\build\\include" "-I" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out" "-I" "." 
"-W4" "-std:c++latest" "-wd4996" "-wd5054" "-wd4190" "-EHsc" "-FoC:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out\\highgui.o" "-c" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out\\highgui.cpp"
[opencv 0.33.1] highgui.cpp
[opencv 0.33.1] exit code: 0
[opencv 0.33.1] running: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.25.28610\\bin\\HostX64\\x64\\cl.exe" "-nologo" "-MD" "-Z7" "-Brepro" "-I" "C:\\Users\\grasb\\.cargo\\registry\\src\\github.com-1ecc6299db9ec823\\opencv-0.33.1\\src_cpp" "-I" "C:\\opencv\\build\\include" "-I" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out" "-I" "." 
"-W4" "-std:c++latest" "-wd4996" "-wd5054" "-wd4190" "-EHsc" "-FoC:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out\\imgcodecs.o" "-c" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out\\imgcodecs.cpp"
[opencv 0.33.1] imgcodecs.cpp
[opencv 0.33.1] exit code: 0
[opencv 0.33.1] running: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.25.28610\\bin\\HostX64\\x64\\cl.exe" "-nologo" "-MD" "-Z7" "-Brepro" "-I" "C:\\Users\\grasb\\.cargo\\registry\\src\\github.com-1ecc6299db9ec823\\opencv-0.33.1\\src_cpp" "-I" "C:\\opencv\\build\\include" "-I" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out" "-I" "." 
"-W4" "-std:c++latest" "-wd4996" "-wd5054" "-wd4190" "-EHsc" "-FoC:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out\\imgproc.o" "-c" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out\\imgproc.cpp"
[opencv 0.33.1] imgproc.cpp
[opencv 0.33.1] exit code: 0
[opencv 0.33.1] running: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.25.28610\\bin\\HostX64\\x64\\cl.exe" "-nologo" "-MD" "-Z7" "-Brepro" "-I" "C:\\Users\\grasb\\.cargo\\registry\\src\\github.com-1ecc6299db9ec823\\opencv-0.33.1\\src_cpp" "-I" "C:\\opencv\\build\\include" "-I" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out" "-I" "." 
"-W4" "-std:c++latest" "-wd4996" "-wd5054" "-wd4190" "-EHsc" "-FoC:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out\\ml.o" "-c" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out\\ml.cpp"
[opencv 0.33.1] ml.cpp
[opencv 0.33.1] exit code: 0
[opencv 0.33.1] running: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.25.28610\\bin\\HostX64\\x64\\cl.exe" "-nologo" "-MD" "-Z7" "-Brepro" "-I" "C:\\Users\\grasb\\.cargo\\registry\\src\\github.com-1ecc6299db9ec823\\opencv-0.33.1\\src_cpp" "-I" "C:\\opencv\\build\\include" "-I" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out" "-I" "." 
"-W4" "-std:c++latest" "-wd4996" "-wd5054" "-wd4190" "-EHsc" "-FoC:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out\\objdetect.o" "-c" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out\\objdetect.cpp"
[opencv 0.33.1] objdetect.cpp
[opencv 0.33.1] exit code: 0
[opencv 0.33.1] running: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.25.28610\\bin\\HostX64\\x64\\cl.exe" "-nologo" "-MD" "-Z7" "-Brepro" "-I" "C:\\Users\\grasb\\.cargo\\registry\\src\\github.com-1ecc6299db9ec823\\opencv-0.33.1\\src_cpp" "-I" "C:\\opencv\\build\\include" "-I" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out" "-I" "." 
"-W4" "-std:c++latest" "-wd4996" "-wd5054" "-wd4190" "-EHsc" "-FoC:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out\\photo.o" "-c" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out\\photo.cpp"
[opencv 0.33.1] photo.cpp
[opencv 0.33.1] exit code: 0
[opencv 0.33.1] running: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.25.28610\\bin\\HostX64\\x64\\cl.exe" "-nologo" "-MD" "-Z7" "-Brepro" "-I" "C:\\Users\\grasb\\.cargo\\registry\\src\\github.com-1ecc6299db9ec823\\opencv-0.33.1\\src_cpp" "-I" "C:\\opencv\\build\\include" "-I" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out" "-I" "." 
"-W4" "-std:c++latest" "-wd4996" "-wd5054" "-wd4190" "-EHsc" "-FoC:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out\\stitching.o" "-c" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out\\stitching.cpp"
[opencv 0.33.1] exit code: 0
[opencv 0.33.1] running: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.25.28610\\bin\\HostX64\\x64\\cl.exe" "-nologo" "-MD" "-Z7" "-Brepro" "-I" "C:\\Users\\grasb\\.cargo\\registry\\src\\github.com-1ecc6299db9ec823\\opencv-0.33.1\\src_cpp" "-I" "C:\\opencv\\build\\include" "-I" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out" "-I" "." 
"-W4" "-std:c++latest" "-wd4996" "-wd5054" "-wd4190" "-EHsc" "-FoC:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out\\video.o" "-c" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out\\video.cpp"
[opencv 0.33.1] stitching.cpp
[opencv 0.33.1] video.cpp
[opencv 0.33.1] exit code: 0
[opencv 0.33.1] running: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.25.28610\\bin\\HostX64\\x64\\cl.exe" "-nologo" "-MD" "-Z7" "-Brepro" "-I" "C:\\Users\\grasb\\.cargo\\registry\\src\\github.com-1ecc6299db9ec823\\opencv-0.33.1\\src_cpp" "-I" "C:\\opencv\\build\\include" "-I" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out" "-I" "." 
"-W4" "-std:c++latest" "-wd4996" "-wd5054" "-wd4190" "-EHsc" "-FoC:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out\\videoio.o" "-c" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out\\videoio.cpp"
[opencv 0.33.1] videoio.cpp
[opencv 0.33.1] exit code: 0
[opencv 0.33.1] exit code: 0
[opencv 0.33.1] exit code: 0                                                            
[opencv 0.33.1] exit code: 0                                                            
[opencv 0.33.1] AR_x86_64-pc-windows-msvc = None
[opencv 0.33.1] AR_x86_64_pc_windows_msvc = None
[opencv 0.33.1] HOST_AR = None
[opencv 0.33.1] AR = None
[opencv 0.33.1] running: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.25.28610\\bin\\HostX64\\x64\\lib.exe" "-out:C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out\\libocvrs.a" "-nologo" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out\\calib3d.o" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out\\core.o" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out\\manual-core.o" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out\\dnn.o" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out\\manual-dnn.o" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out\\features2d.o" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out\\manual-features2d.o" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out\\flann.o" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out\\highgui.o" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out\\imgcodecs.o" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out\\imgproc.o" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out\\ml.o" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out\\objdetect.o" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out\\photo.o" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out\\stitching.o" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out\\video.o" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out\\videoio.o"
[opencv 0.33.1] exit code: 0                                                            
[opencv 0.33.1] cargo:rustc-link-lib=static=ocvrs
[opencv 0.33.1] cargo:rustc-link-search=native=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\build\opencv-320fa7e2ec4f430b\out
[opencv 0.33.1] CXXSTDLIB_x86_64-pc-windows-msvc = None
[opencv 0.33.1] CXXSTDLIB_x86_64_pc_windows_msvc = None
[opencv 0.33.1] HOST_CXXSTDLIB = None
[opencv 0.33.1] CXXSTDLIB = None
[opencv 0.33.1] cargo:rustc-link-search=C:\opencv\build\x64\vc15\lib
[opencv 0.33.1] cargo:rustc-link-lib=bin
     Running `set CARGO_PKG_VERSION_MAJOR=0&& set OUT_DIR=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\build\opencv-320fa7e2ec4f430b\out&& set CARGO_PKG_VERSION=0.33.1&& set CARGO_PKG_VERSION_PATCH=1&& set PATH="C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps;C:\Users\grasb\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin;C:\Users\grasb\.cargo\bin;C:\Users\grasb\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\CMake\bin;C:\Program Files\LLVM\bin;C:\Users\grasb\AppData\Local\Programs\Python\Python38-32\Scripts\;C:\Users\grasb\AppData\Local\Programs\Python\Python38-32\;C:\Users\grasb\.cargo\bin;C:\Users\grasb\AppData\Local\Microsoft\WindowsApps;C:\Users\grasb\AppData\Local\Programs\Microsoft VS Code\bin;C:\;C:\Users\grasb\AppData\Local\Programs\Python\Python38-32;C:\Users\grasb\AppData\Local\Programs\Python\Python38-32\Scripts;"&& set CARGO_PKG_DESCRIPTION="Rust bindings for OpenCV"&& set CARGO_PKG_REPOSITORY=https://github.com/twistedfall/opencv-rust&& set CARGO_MANIFEST_DIR=C:\Users\grasb\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.33.1&& set CARGO_PKG_VERSION_MINOR=33&& set CARGO_PKG_HOMEPAGE=&& set CARGO_PKG_AUTHORS="Mathieu Poumeyrol <kali@zoy.org>:Pro <twisted.fall@gmail.com>"&& set CARGO=\\?\C:\Users\grasb\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin\cargo.exe&& set CARGO_PKG_NAME=opencv&& set CARGO_PKG_VERSION_PRE=&& rustc --crate-name opencv --edition=2018 C:\Users\grasb\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.33.1\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C debuginfo=2 --cfg "feature=\"binding-generator\"" --cfg "feature=\"buildtime-bindgen\"" --cfg "feature=\"clang\"" --cfg "feature=\"default\"" --cfg "feature=\"opencv-4\"" -C metadata=8a2d459d585d8599 -C extra-filename=-8a2d459d585d8599 --out-dir C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps -L dependency=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps --extern libc=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps\liblibc-ddc8a8a4fa264eef.rmeta --extern num=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps\libnum-7328a1be0b92b1ed.rmeta --extern once_cell=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps\libonce_cell-cedf602f73672a0d.rmeta --extern slab=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps\libslab-0a75d1dbad7fd7ad.rmeta --cap-lints warn -L native=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\build\opencv-320fa7e2ec4f430b\out -L C:\opencv\build\x64\vc15\lib -l static=ocvrs -l bin` 
   Compiling rust_test v0.1.0 (C:\Users\grasb\OneDrive\Documents\Code\rust_test)        
     Running `set CARGO_PKG_VERSION_MAJOR=0&& set CARGO_PKG_VERSION=0.1.0&& set CARGO_PKG_VERSION_PATCH=0&& set PATH="C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps;C:\Users\grasb\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin;C:\Users\grasb\.cargo\bin;C:\Users\grasb\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\CMake\bin;C:\Program Files\LLVM\bin;C:\Users\grasb\AppData\Local\Programs\Python\Python38-32\Scripts\;C:\Users\grasb\AppData\Local\Programs\Python\Python38-32\;C:\Users\grasb\.cargo\bin;C:\Users\grasb\AppData\Local\Microsoft\WindowsApps;C:\Users\grasb\AppData\Local\Programs\Microsoft VS Code\bin;C:\;C:\Users\grasb\AppData\Local\Programs\Python\Python38-32;C:\Users\grasb\AppData\Local\Programs\Python\Python38-32\Scripts;"&& set CARGO_PKG_DESCRIPTION=&& set CARGO_PKG_REPOSITORY=&& set CARGO_MANIFEST_DIR=C:\Users\grasb\OneDrive\Documents\Code\rust_test&& set CARGO_PKG_VERSION_MINOR=1&& set CARGO_PKG_HOMEPAGE=&& set CARGO_PKG_AUTHORS=grasb&& set CARGO=\\?\C:\Users\grasb\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin\cargo.exe&& set CARGO_PKG_NAME=rust_test&& set CARGO_PKG_VERSION_PRE=&& rustc --crate-name rust_test --edition=2018 src\main.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C debuginfo=2 -C metadata=4dadc0ea158e5bcc --out-dir C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps -C incremental=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\incremental -L dependency=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps --extern opencv=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps\libopencv-8a2d459d585d8599.rlib -L 
native=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\build\opencv-320fa7e2ec4f430b\out -L C:\opencv\build\x64\vc15\lib`
error: linking with `link.exe` failed: exit code: 1181                                  
  |
  = note: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.25.28610\\bin\\HostX64\\x64\\link.exe" "/NOLOGO" "/NXCOMPAT" "/LIBPATH:C:\\Users\\grasb\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\deps\\rust_test.23zaauy8hkjzinrc.rcgu.o" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\deps\\rust_test.2enthza6kfew9q9c.rcgu.o" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\deps\\rust_test.2s32ow4wcxrm46vb.rcgu.o" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\deps\\rust_test.365ugbk5aux7m9le.rcgu.o" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\deps\\rust_test.4qapwvj2qtxes8jo.rcgu.o" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\deps\\rust_test.5fh0esi5om3pnrdr.rcgu.o" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\deps\\rust_test.uce4zqf4xp6fmpf.rcgu.o" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\deps\\rust_test.vu62ownvcfvu521.rcgu.o" "/OUT:C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\deps\\rust_test.exe" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\deps\\rust_test.3tqifm7gjun4ojhy.rcgu.o" "/OPT:REF,NOICF" "/DEBUG" "/NATVIS:C:\\Users\\grasb\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\intrinsic.natvis" "/NATVIS:C:\\Users\\grasb\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\liballoc.natvis" "/NATVIS:C:\\Users\\grasb\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\libcore.natvis" "/NATVIS:C:\\Users\\grasb\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\libstd.natvis" "/LIBPATH:C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\deps" "/LIBPATH:C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\build\\opencv-320fa7e2ec4f430b\\out" "/LIBPATH:C:\\opencv\\build\\x64\\vc15\\lib" "/LIBPATH:C:\\Users\\grasb\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\deps\\libopencv-8a2d459d585d8599.rlib" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\deps\\libslab-0a75d1dbad7fd7ad.rlib" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\deps\\libonce_cell-cedf602f73672a0d.rlib" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\deps\\libnum-7328a1be0b92b1ed.rlib" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\deps\\libnum_rational-358c9598f0c850c8.rlib" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\deps\\libnum_iter-4341b079f4eeeb5c.rlib" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\deps\\libnum_complex-bf3238b8f1460611.rlib" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\deps\\libnum_bigint-d0c4a0ece5ebebf0.rlib" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\deps\\libnum_integer-80e407d2126b2c9b.rlib" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\deps\\libnum_traits-9b300e5d2bc3bbe1.rlib" "C:\\Users\\grasb\\OneDrive\\Documents\\Code\\rust_test\\target\\debug\\deps\\liblibc-ddc8a8a4fa264eef.rlib" "C:\\Users\\grasb\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libstd-93a5cbf3214e1635.rlib" "C:\\Users\\grasb\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libpanic_unwind-bc497f38bc14ea36.rlib" "C:\\Users\\grasb\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libhashbrown-cff6a81a38e24acd.rlib" "C:\\Users\\grasb\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_std_workspace_alloc-2fcb3fe30807f5cb.rlib" "C:\\Users\\grasb\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libbacktrace-916d55fe59b6e45e.rlib" "C:\\Users\\grasb\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_demangle-7f1beeb3aa6031c7.rlib" "C:\\Users\\grasb\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libunwind-0f8323184fc867ad.rlib" "C:\\Users\\grasb\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcfg_if-451043412713beed.rlib" "C:\\Users\\grasb\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liblibc-e9eb82ffd1eb284e.rlib" "C:\\Users\\grasb\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liballoc-8a93a70731c0c815.rlib" "C:\\Users\\grasb\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_std_workspace_core-6fc8e09b7aa39aaf.rlib" "C:\\Users\\grasb\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcore-05a61bb76241250f.rlib" "C:\\Users\\grasb\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcompiler_builtins-9e67ceffec35e0af.rlib" "bin.lib" "advapi32.lib" "ws2_32.lib" "userenv.lib" "msvcrt.lib"
  = note: LINK : fatal error LNK1181: cannot open input file 'bin.lib'


error: aborting due to previous error

error: could not compile `rust_test`.

Caused by:
  process didn't exit successfully: `set CARGO_PKG_VERSION_MAJOR=0&& set CARGO_PKG_VERSION=0.1.0&& set CARGO_PKG_VERSION_PATCH=0&& set PATH="C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps;C:\Users\grasb\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin;C:\Users\grasb\.cargo\bin;C:\Users\grasb\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\CMake\bin;C:\Program Files\LLVM\bin;C:\Users\grasb\AppData\Local\Programs\Python\Python38-32\Scripts\;C:\Users\grasb\AppData\Local\Programs\Python\Python38-32\;C:\Users\grasb\.cargo\bin;C:\Users\grasb\AppData\Local\Microsoft\WindowsApps;C:\Users\grasb\AppData\Local\Programs\Microsoft VS Code\bin;C:\;C:\Users\grasb\AppData\Local\Programs\Python\Python38-32;C:\Users\grasb\AppData\Local\Programs\Python\Python38-32\Scripts;"&& set CARGO_PKG_DESCRIPTION=&& set CARGO_PKG_REPOSITORY=&& set CARGO_MANIFEST_DIR=C:\Users\grasb\OneDrive\Documents\Code\rust_test&& set CARGO_PKG_VERSION_MINOR=1&& set CARGO_PKG_HOMEPAGE=&& set CARGO_PKG_AUTHORS=grasb&& set CARGO=\\?\C:\Users\grasb\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin\cargo.exe&& set CARGO_PKG_NAME=rust_test&& set CARGO_PKG_VERSION_PRE=&& rustc --crate-name rust_test --edition=2018 src\main.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C debuginfo=2 -C metadata=4dadc0ea158e5bcc --out-dir C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps -C incremental=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\incremental 
-L dependency=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps --extern opencv=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\deps\libopencv-8a2d459d585d8599.rlib -L native=C:\Users\grasb\OneDrive\Documents\Code\rust_test\target\debug\build\opencv-320fa7e2ec4f430b\out -L C:\opencv\build\x64\vc15\lib` (exit code: 1) 

@twistedfall
Copy link
Owner

It looks like you have set the environment variable OPENCV_LINK_LIBS to the value "bin", that's why it tries to link this non-existent library, try using something like "opencv_world420" when building against OpenCV installed from the official binary distribution.

@GRASBOCK
Copy link
Author

GRASBOCK commented Apr 8, 2020

This is a mysterious world.
You were right. It took me a while to figure out that I had to restart my System before those new environment variables were applied.
Now I have that MissingStatusDLL problem I had at the beginning, but you told me how to fix it, so I will try to add all dlls the bin requires first

@GRASBOCK
Copy link
Author

GRASBOCK commented Apr 8, 2020

IT WORKS :O
Thank you so much! The nightmare if hopefully over!

@burak-yildizoz
Copy link

@GRASBOCK

put the dlls from your opencv install directory: C:\opencv\build\x64\vc14\bin next to your built rust executable otherwise you will get a STATUS_DLL_NOT_FOUND error

Can you update this part as

put the dlls from your opencv install directory: C:\opencv\build\x64\vc14\bin next to your built rust executable or add C:\opencv\build\x64\vc14\bin to PATH environment variable otherwise you will get a STATUS_DLL_NOT_FOUND error

Just adding an environment variable is an easier solution than copying hundreds of megabytes for each package.

@GRASBOCK
Copy link
Author

@burak-yildizoz did that. Thanks :)

@fzyzcjy
Copy link
Contributor

fzyzcjy commented Mar 5, 2022

Hi, I also cannot use opencv on windows #326. Could anyone give some hints? Thanks!

@TanixLu
Copy link

TanixLu commented Apr 1, 2023

Double-click target/debug/xxx.exe and I got this:

The code execution cannot proceed because nppc64_12.dll was not found. Reinstalling the program may fix this problem.

On my computer, nppc64_12.dll is in C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.0\bin, so adding it to the PATH fixes this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants