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

fatal error: 'limits' file not found #425

Closed
PikabobAlex opened this issue Feb 15, 2023 · 12 comments
Closed

fatal error: 'limits' file not found #425

PikabobAlex opened this issue Feb 15, 2023 · 12 comments

Comments

@PikabobAlex
Copy link

Hello there, I currently facing the issue which the limits file could not be found.
And here is my Cargo.toml in case you wonder what I'm trying to build.

[package]
name = "hello-wasm"
version = "0.1.0"
edition = "2021"

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

[build]
rustc-link-search = ["/usr/lib", "/usr/local/lib"]

[lib]
crate-type = ["cdylib"]

[dependencies]
wasm-bindgen = "0.2.84"
opencv = { version="0.77.0", default-features = false, features=["imgproc","imgcodecs"]}
js-sys = "0.3.61"

[dependencies.web-sys]
version = "0.3.61"
features = [
    'CanvasRenderingContext2d',
    'Document',
    'Element',
    'HtmlCanvasElement',
    'Window',
]

Windows 10
OpenCV "0.77.0"
rustc 1.67.1 (d5a82bbd2 2023-02-07)

warning: unused manifest key: build
Compiling opencv v0.77.0
Compiling js-sys v0.3.61
error: failed to run custom build command for `opencv v0.77.0`

Caused by:
process didn't exit successfully: `C:\HTML\rust_helloworld\hello-wasm\target\release\build\opencv-37752773d4a0c396\build-script-build` (exit code: 101)
--- stdout
=== Running: "\\\\?\\C:\\Users\\User123\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\bin\\cargo.exe" "build" "--release" "--package" "opencv-binding-generator" "--bin" "binding-generator"
cargo:rustc-cfg=ocvrs_opencv_branch_4
cargo:rerun-if-env-changed=OPENCV_PACKAGE_NAME
cargo:rerun-if-env-changed=OPENCV_PKGCONFIG_NAME
cargo:rerun-if-env-changed=OPENCV_CMAKE_NAME
cargo:rerun-if-env-changed=OPENCV_CMAKE_BIN
cargo:rerun-if-env-changed=OPENCV_VCPKG_NAME
cargo:rerun-if-env-changed=OPENCV_LINK_LIBS
cargo:rerun-if-env-changed=OPENCV_LINK_PATHS
cargo:rerun-if-env-changed=OPENCV_INCLUDE_PATHS
cargo:rerun-if-env-changed=OPENCV_DISABLE_PROBES
cargo:rerun-if-env-changed=CMAKE_PREFIX_PATH
cargo:rerun-if-env-changed=OpenCV_DIR
cargo:rerun-if-env-changed=PKG_CONFIG_PATH
cargo:rerun-if-env-changed=VCPKG_ROOT
cargo:rerun-if-env-changed=VCPKGRS_DYNAMIC
cargo:rerun-if-env-changed=OCVRS_DOCS_GENERATE_DIR
cargo:rerun-if-env-changed=DOCS_RS
cargo:rerun-if-changed=C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.77.0\src_cpp\alphamat.hpp
cargo:rerun-if-changed=C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.77.0\src_cpp\aruco.hpp
cargo:rerun-if-changed=C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.77.0\src_cpp\bioinspired.hpp
cargo:rerun-if-changed=C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.77.0\src_cpp\ccalib.hpp
cargo:rerun-if-changed=C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.77.0\src_cpp\core.hpp
cargo:rerun-if-changed=C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.77.0\src_cpp\dnn.hpp
cargo:rerun-if-changed=C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.77.0\src_cpp\face.hpp
cargo:rerun-if-changed=C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.77.0\src_cpp\gapi.hpp
cargo:rerun-if-changed=C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.77.0\src_cpp\hdf.hpp
cargo:rerun-if-changed=C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.77.0\src_cpp\manual-core.cpp
cargo:rerun-if-changed=C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.77.0\src_cpp\manual-dnn.cpp
cargo:rerun-if-changed=C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.77.0\src_cpp\manual-features2d.cpp
cargo:rerun-if-changed=C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.77.0\src_cpp\ocvrs_common.hpp
cargo:rerun-if-changed=C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.77.0\src_cpp\photo.hpp
cargo:rerun-if-changed=C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.77.0\src_cpp\sfm.hpp
cargo:rerun-if-changed=C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.77.0\src_cpp\videoio.hpp
cargo:rerun-if-changed=C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.77.0\src_cpp\xfeatures2d.hpp
cargo:rerun-if-changed=Cargo.toml

--- stderr
=== Using environment job server with the the amount of available jobs: 10
=== Crate version: Some("0.77.0")
=== Environment configuration:
===   OPENCV_PACKAGE_NAME = None
===   OPENCV_PKGCONFIG_NAME = None
===   OPENCV_CMAKE_NAME = None
===   OPENCV_CMAKE_BIN = None
===   OPENCV_VCPKG_NAME = None
===   OPENCV_LINK_LIBS = Some("opencv_world460")
===   OPENCV_LINK_PATHS = Some("C:\\tools\\opencv\\build\\x64\\vc15\\lib")
===   OPENCV_INCLUDE_PATHS = Some("C:\\tools\\opencv\\build\\include")
===   OPENCV_DISABLE_PROBES = None
===   CMAKE_PREFIX_PATH = None
===   OpenCV_DIR = None
===   PKG_CONFIG_PATH = None
===   VCPKG_ROOT = None
===   VCPKGRS_DYNAMIC = None
===   OCVRS_DOCS_GENERATE_DIR = None
===   DOCS_RS = None
===   PATH = Some("C:\\HTML\\rust_helloworld\\hello-wasm\\target\\release\\deps;C:\\HTML\\rust_helloworld\\hello-wasm\\target\\release;C:\\Users\\User123\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib;C:\\Users\\User123\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\bin;C:\\Program Files\\Common Files\\Oracle\\Java\\javapath;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\Python38\\Scripts\\;C:\\Python38\\;C:\\Program Files (x86)\\Common Files\\Intel\\Shared Libraries\\redist\\intel64_win\\compiler;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Intel\\WiFi\\bin\\;C:\\Program Files\\Common Files\\Intel\\WirelessCommon\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C:\\Program Files (x86)\\Autodesk\\Backburner\\;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\dotnet\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\Microsoft SQL Server\\120\\Tools\\Binn\\;C:\\Program Files\\Common Files\\Autodesk Shared\\;D:\\User123-Alex\\Python;C:\\Program Files\\Go\\bin;C:\\Program Files\\nodejs\\;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\Program Files\\CMake\\bin;C:\\vcpkg;C:\\Program Files\\Git\\cmd;C:\\Users\\User123\\AppData\\Roaming\\npm;C:\\Program Files (x86)\\GnuWin32\\bin;C:\\Program Files\\Ninja;C:\\Program Files\\LLVM\\bin;C:\\Users\\User123\\.cargo\\bin;C:\\Program Files\\Common Files\\Oracle\\Java\\javapath;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\Python38\\Scripts\\;C:\\Python38\\;C:\\Program Files (x86)\\Common Files\\Intel\\Shared Libraries\\redist\\intel64_win\\compiler;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Intel\\WiFi\\bin\\;C:\\Program Files\\Common Files\\Intel\\WirelessCommon\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C:\\Program Files (x86)\\Autodesk\\Backburner\\;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\dotnet\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\Microsoft SQL Server\\120\\Tools\\Binn\\;C:\\Program Files\\Common Files\\Autodesk Shared\\;D:\\User123-Alex\\Python;C:\\Program Files\\Go\\bin;C:\\Program Files\\nodejs\\;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\Program Files\\CMake\\bin;C:;C:\\Users\\User123\\AppData\\Local\\Programs\\Microsoft VS Code\\bin")
=== Enabled features:
===   IMGCODECS
===   IMGPROC
=== Detected probe priority based on environment vars: pkg_config: false, cmake: false, vcpkg: true
=== Probing the OpenCV library in the following order: environment, vcpkg_cmake, vcpkg, pkg_config, cmake
=== Configuring OpenCV library from the environment:
===   include_paths: C:\tools\opencv\build\include
===   link_paths: C:\tools\opencv\build\x64\vc15\lib
===   link_libs: opencv_world460
=== Successfully probed using: environment
=== OpenCV library configuration: Library {
   include_paths: [
       "C:\\tools\\opencv\\build\\include",
   ],
   version: Version {
       major: 4,
       minor: 6,
       patch: 0,
   },
   cargo_metadata: [
       "cargo:rustc-link-search=C:\\tools\\opencv\\build\\x64\\vc15\\lib",
       "cargo:rustc-link-lib=opencv_world460",
   ],
}
=== Detected OpenCV module header dir at: C:\tools\opencv\build\include\opencv2
=== Found OpenCV version: 4.6.0 in headers located at: C:\tools\opencv\build\include
=== Generating code in: C:\HTML\rust_helloworld\hello-wasm\target\wasm32-unknown-unknown\release\build\opencv-832ddfeaa9405e56\out
=== Placing generated bindings into: C:\HTML\rust_helloworld\hello-wasm\target\wasm32-unknown-unknown\release\build\opencv-832ddfeaa9405e56\out\opencv
=== Using OpenCV headers from: C:\tools\opencv\build\include
=== Clang: clang version 15.0.5
=== Clang command line args: [
   "-isystemC:\\Program Files\\LLVM\\lib\\clang\\15.0.5\\include",
   "-IC:\\tools\\opencv\\build\\include",
   "-FC:\\tools\\opencv\\build\\include",
   "-IC:\\Users\\User123\\.cargo\\registry\\src\\github.com-1ecc6299db9ec823\\opencv-0.77.0\\src_cpp",
   "-FC:\\Users\\User123\\.cargo\\registry\\src\\github.com-1ecc6299db9ec823\\opencv-0.77.0\\src_cpp",
   "-DOCVRS_PARSING_HEADERS",
   "-includeocvrs_ephemeral.hpp",
   "-std=c++14",
]
=== Building binding-generator binary:
===     Finished release [optimized] target(s) in 0.33s
=== Running: "C:\\HTML\\rust_helloworld\\hello-wasm\\target\\wasm32-unknown-unknown\\release\\build\\opencv-832ddfeaa9405e56\\out\\release/binding-generator" "C:\\tools\\opencv\\build\\include" "C:\\Users\\User123\\.cargo\\registry\\src\\github.com-1ecc6299db9ec823\\opencv-0.77.0\\src_cpp" "C:\\HTML\\rust_helloworld\\hello-wasm\\target\\wasm32-unknown-unknown\\release\\build\\opencv-832ddfeaa9405e56\\out" "core" ""
=== Running: "C:\\HTML\\rust_helloworld\\hello-wasm\\target\\wasm32-unknown-unknown\\release\\build\\opencv-832ddfeaa9405e56\\out\\release/binding-generator" "C:\\tools\\opencv\\build\\include" "C:\\Users\\User123\\.cargo\\registry\\src\\github.com-1ecc6299db9ec823\\opencv-0.77.0\\src_cpp" "C:\\HTML\\rust_helloworld\\hello-wasm\\target\\wasm32-unknown-unknown\\release\\build\\opencv-832ddfeaa9405e56\\out" "imgcodecs" ""
=== Running: "C:\\HTML\\rust_helloworld\\hello-wasm\\target\\wasm32-unknown-unknown\\release\\build\\opencv-832ddfeaa9405e56\\out\\release/binding-generator" "C:\\tools\\opencv\\build\\include" "C:\\Users\\User123\\.cargo\\registry\\src\\github.com-1ecc6299db9ec823\\opencv-0.77.0\\src_cpp" "C:\\HTML\\rust_helloworld\\hello-wasm\\target\\wasm32-unknown-unknown\\release\\build\\opencv-832ddfeaa9405e56\\out" "imgproc" ""
=== WARNING: 1 diagnostic messages
thread 'main' panicked at '=== Errors during header parsing', C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-binding-generator-0.56.0\src\generator.rs:512:17
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread '<unnamed>' panicked at 'Failed to run the bindings generator', C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.77.0\build\generator.rs:103:21
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
=== WARNING: 1 diagnostic messages
===    C:\tools\opencv\build\include\opencv2/core/cvdef.h:185:10: fatal error: 'limits' file not found
thread 'main' panicked at '=== Errors during header parsing', C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-binding-generator-0.56.0\src\generator.rs:512:17
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread '<unnamed>' panicked at 'Failed to run the bindings generator', C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.77.0\build\generator.rs:103:21
=== WARNING: 1 diagnostic messages
===    C:\tools\opencv\build\include\opencv2/core/cvdef.h:185:10: fatal error: 'limits' file not found
thread 'main' panicked at '=== Errors during header parsing', C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-binding-generator-0.56.0\src\generator.rs:512:17
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread '<unnamed>' panicked at 'Failed to run the bindings generator', C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.77.0\build\generator.rs:103:21
thread 'main' panicked at 'Generator thread panicked: Any { .. }', C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.77.0\build\generator.rs:112:28
warning: build failed, waiting for other jobs to finish...
Error: Compiling your crate to WebAssembly failed
Caused by: failed to execute `cargo build`: exited with exit code: 101
full command: "cargo" "build" "--lib" "--release" "--target" "wasm32-unknown-unknown"
PS C:\HTML\rust_helloworld\hello-wasm> cargo build -vv
warning: unused manifest key: build
    Fresh once_cell v1.17.0
    Fresh unicode-ident v1.0.6
    Fresh glob v0.3.1
    Fresh proc-macro2 v1.0.51
    Fresh cfg-if v1.0.0
    Fresh bumpalo v3.12.0
    Fresh winapi-x86_64-pc-windows-gnu v0.4.0
    Fresh quote v1.0.23
    Fresh libc v0.2.139
    Fresh wasm-bindgen-shared v0.2.84
    Fresh log v0.4.17
    Fresh memchr v2.5.0
    Fresh regex-syntax v0.6.28
    Fresh percent-encoding v2.2.0
    Fresh autocfg v1.1.0
    Fresh jobserver v0.1.25
warning: associated function `producer_done` is never used
--> C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\jobserver-0.1.25\src\lib.rs:531:8
 |
531 |     fn producer_done(&self) -> bool {
 |        ^^^^^^^^^^^^^
 |
 = note: `#[warn(dead_code)]` on by default

warning: `jobserver` (lib) generated 1 warning
    Fresh winapi v0.3.9
warning: 3rd rule of macro `FN` is never used
--> C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\winapi-0.3.9\src\macros.rs:414:5
 |
414 |     (cdecl $func:ident($($t:ty,)*) -> $ret:ty) => (
 |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 |
note: the lint level is defined here
--> C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\winapi-0.3.9\src\lib.rs:7:9
 |
7   | #![deny(unused, unused_qualifications)]
 |         ^^^^^^
 = note: `#[warn(unused_macro_rules)]` implied by `#[warn(unused)]`

    Fresh syn v1.0.107
    Fresh aho-corasick v0.7.20
    Fresh maplit v1.0.2
    Fresh dunce v1.0.3
    Fresh cc v1.0.79
    Fresh vcpkg v0.2.15
    Fresh pkg-config v0.3.26
    Fresh shlex v1.1.0
warning: `winapi` (lib) generated 1 warning
    Fresh libloading v0.7.4
    Fresh wasm-bindgen-backend v0.2.84
    Fresh regex v1.7.1
    Fresh semver v1.0.16
    Fresh clang-sys v1.4.0
warning: associated function `discard` is never used
--> C:\HTML\rust_helloworld\hello-wasm\target\debug\build\clang-sys-f3fd57c359522a63\out/common.rs:51:12
|
51 |     pub fn discard(mut self) {
|            ^^^^^^^
|
= note: `#[warn(dead_code)]` on by default

    Fresh wasm-bindgen-macro-support v0.2.84
    Fresh num-traits v0.2.15
warning: `clang-sys` (lib) generated 1 warning
    Fresh clang v2.0.0
    Fresh wasm-bindgen-macro v0.2.84
    Fresh opencv-binding-generator v0.56.0
    Fresh wasm-bindgen v0.2.84
Compiling js-sys v0.3.61
Compiling opencv v0.77.0
  Running `set CARGO=\\?\C:\Users\User123\.rustup\toolchains\stable-x86_64-pc-windows-gnu\bin\cargo.exe&& set CARGO_CRATE_NAME=js_sys&& set CARGO_MANIFEST_DIR=C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\js-sys-0.3.61&& set CARGO_PKG_AUTHORS="The wasm-bindgen Developers"&& set CARGO_PKG_DESCRIPTION="Bindings for all JS global objects and functions in all JS environments like  
Node.js and browsers, built on `#[wasm_bindgen]` using the `wasm-bindgen` crate.
"&& set CARGO_PKG_HOMEPAGE=https://rustwasm.github.io/wasm-bindgen/&& set CARGO_PKG_LICENSE=MIT/Apache-2.0&& set CARGO_PKG_LICENSE_FILE=""&& set CARGO_PKG_NAME=js-sys&& set CARGO_PKG_REPOSITORY=https://github.com/rustwasm/wasm-bindgen/tree/master/crates/js-sys&& set CARGO_PKG_RUST_VERSION=""&& set CARGO_PKG_VERSION=0.3.61&& set CARGO_PKG_VERSION_MAJOR=0&& set CARGO_PKG_VERSION_MINOR=3&& set CARGO_PKG_VERSION_PATCH=61&& set CARGO_PKG_VERSION_PRE=""&& set PATH="C:\HTML\rust_helloworld\hello-wasm\target\debug\deps;C:\Users\User123\.rustup\toolchains\stable-x86_64-pc-windows-gnu\bin;C:\Users\User123\.rustup\toolchains\stable-x86_64-pc-windows-gnu\bin;C:\Program Files\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Python38\Scripts\;C:\Python38\;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64_win\compiler;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files (x86)\Autodesk\Backburner\;C:\ProgramData\chocolatey\bin;C:\Program Files\dotnet\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Common Files\Autodesk Shared\;D:\User123-Alex\Python;C:\Program Files\Go\bin;C:\Program Files\nodejs\;C:\Program Files\Docker\Docker\resources\bin;C:\Program Files\CMake\bin;C:\vcpkg;C:\Program Files\Git\cmd;C:\Users\User123\AppData\Roaming\npm;C:\Program Files (x86)\GnuWin32\bin;C:\Program Files\Ninja;C:\Program Files\LLVM\bin;C:\Users\User123\.cargo\bin;C:\Program Files\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Python38\Scripts\;C:\Python38\;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64_win\compiler;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files (x86)\Autodesk\Backburner\;C:\ProgramData\chocolatey\bin;C:\Program Files\dotnet\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Common Files\Autodesk Shared\;D:\User123-Alex\Python;C:\Program Files\Go\bin;C:\Program Files\nodejs\;C:\Program Files\Docker\Docker\resources\bin;C:\Program Files\CMake\bin;C:;C:\Users\User123\AppData\Local\Programs\Microsoft VS Code\bin"&& rustc --crate-name js_sys --edition=2018 C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\js-sys-0.3.61\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=0ac7b2eceb7c4fca -C extra-filename=-0ac7b2eceb7c4fca --out-dir C:\HTML\rust_helloworld\hello-wasm\target\debug\deps -L dependency=C:\HTML\rust_helloworld\hello-wasm\target\debug\deps --extern wasm_bindgen=C:\HTML\rust_helloworld\hello-wasm\target\debug\deps\libwasm_bindgen-b9ba2055bad7fd6e.rmeta --cap-lints warn`
  Running `C:\HTML\rust_helloworld\hello-wasm\target\debug\build\opencv-85b50f007e9a3fb1\build-script-build`
[opencv 0.77.0] === Using environment job server with the the amount of available jobs: 10
[opencv 0.77.0] === Running: "\\\\?\\C:\\Users\\User123\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\bin\\cargo.exe" "build" "--release" "--package" "opencv-binding-generator" "--bin" "binding-generator"
[opencv 0.77.0] === Crate version: Some("0.77.0")
[opencv 0.77.0] === Environment configuration:
[opencv 0.77.0] ===   OPENCV_PACKAGE_NAME = None
[opencv 0.77.0] ===   OPENCV_PKGCONFIG_NAME = None
[opencv 0.77.0] ===   OPENCV_CMAKE_NAME = None
[opencv 0.77.0] ===   OPENCV_CMAKE_BIN = None
[opencv 0.77.0] ===   OPENCV_VCPKG_NAME = None
[opencv 0.77.0] ===   OPENCV_LINK_LIBS = Some("opencv_world460")
[opencv 0.77.0] ===   OPENCV_LINK_PATHS = Some("C:\\tools\\opencv\\build\\x64\\vc15\\lib")
[opencv 0.77.0] ===   OPENCV_INCLUDE_PATHS = Some("C:\\tools\\opencv\\build\\include")
[opencv 0.77.0] ===   OPENCV_DISABLE_PROBES = None
[opencv 0.77.0] ===   CMAKE_PREFIX_PATH = None
[opencv 0.77.0] ===   OpenCV_DIR = None
[opencv 0.77.0] ===   PKG_CONFIG_PATH = None
[opencv 0.77.0] ===   VCPKG_ROOT = None
[opencv 0.77.0] ===   VCPKGRS_DYNAMIC = None
[opencv 0.77.0] ===   OCVRS_DOCS_GENERATE_DIR = None
[opencv 0.77.0] ===   DOCS_RS = None
[opencv 0.77.0] ===   PATH = Some("C:\\HTML\\rust_helloworld\\hello-wasm\\target\\debug\\deps;C:\\HTML\\rust_helloworld\\hello-wasm\\target\\debug;C:\\Users\\User123\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib;C:\\Users\\User123\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\bin;C:\\Program Files\\Common Files\\Oracle\\Java\\javapath;C:\\Program 
Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\Python38\\Scripts\\;C:\\Python38\\;C:\\Program Files (x86)\\Common Files\\Intel\\Shared Libraries\\redist\\intel64_win\\compiler;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Intel\\WiFi\\bin\\;C:\\Program Files\\Common Files\\Intel\\WirelessCommon\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C:\\Program Files (x86)\\Autodesk\\Backburner\\;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\dotnet\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\Microsoft SQL Server\\120\\Tools\\Binn\\;C:\\Program Files\\Common Files\\Autodesk Shared\\;D:\\User123-Alex\\Python;C:\\Program Files\\Go\\bin;C:\\Program Files\\nodejs\\;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\Program Files\\CMake\\bin;C:\\vcpkg;C:\\Program Files\\Git\\cmd;C:\\Users\\User123\\AppData\\Roaming\\npm;C:\\Program Files (x86)\\GnuWin32\\bin;C:\\Program Files\\Ninja;C:\\Program Files\\LLVM\\bin;C:\\Users\\User123\\.cargo\\bin;C:\\Program Files\\Common Files\\Oracle\\Java\\javapath;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\Python38\\Scripts\\;C:\\Python38\\;C:\\Program Files (x86)\\Common Files\\Intel\\Shared Libraries\\redist\\intel64_win\\compiler;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Intel\\WiFi\\bin\\;C:\\Program Files\\Common Files\\Intel\\WirelessCommon\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C:\\Program Files (x86)\\Autodesk\\Backburner\\;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\dotnet\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\Microsoft SQL Server\\120\\Tools\\Binn\\;C:\\Program Files\\Common Files\\Autodesk Shared\\;D:\\User123-Alex\\Python;C:\\Program Files\\Go\\bin;C:\\Program Files\\nodejs\\;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\Program Files\\CMake\\bin;C:;C:\\Users\\User123\\AppData\\Local\\Programs\\Microsoft VS Code\\bin")
[opencv 0.77.0] === Enabled features:
[opencv 0.77.0] ===   IMGCODECS
[opencv 0.77.0] ===   IMGPROC
[opencv 0.77.0] === Detected probe priority based on environment vars: pkg_config: false, cmake: false, vcpkg: true
[opencv 0.77.0] === Probing the OpenCV library in the following order: environment, vcpkg_cmake, vcpkg, pkg_config, cmake
[opencv 0.77.0] === Configuring OpenCV library from the environment:
[opencv 0.77.0] ===   include_paths: C:\tools\opencv\build\include
[opencv 0.77.0] ===   link_paths: C:\tools\opencv\build\x64\vc15\lib
[opencv 0.77.0] ===   link_libs: opencv_world460
[opencv 0.77.0] === Successfully probed using: environment
[opencv 0.77.0] === OpenCV library configuration: Library {
[opencv 0.77.0]     include_paths: [
[opencv 0.77.0]         "C:\\tools\\opencv\\build\\include",
[opencv 0.77.0]     ],
[opencv 0.77.0]     version: Version {
[opencv 0.77.0]         major: 4,
[opencv 0.77.0]         minor: 6,
[opencv 0.77.0]         patch: 0,
[opencv 0.77.0]     },
[opencv 0.77.0]     cargo_metadata: [
[opencv 0.77.0]         "cargo:rustc-link-search=C:\\tools\\opencv\\build\\x64\\vc15\\lib",
[opencv 0.77.0]         "cargo:rustc-link-lib=opencv_world460",
[opencv 0.77.0]     ],
[opencv 0.77.0] }
[opencv 0.77.0] cargo:rustc-cfg=ocvrs_opencv_branch_4
[opencv 0.77.0] === Detected OpenCV module header dir at: C:\tools\opencv\build\include\opencv2
[opencv 0.77.0] cargo:rerun-if-env-changed=OPENCV_PACKAGE_NAME
[opencv 0.77.0] === Found OpenCV version: 4.6.0 in headers located at: C:\tools\opencv\build\include
[opencv 0.77.0] cargo:rerun-if-env-changed=OPENCV_PKGCONFIG_NAME
[opencv 0.77.0] cargo:rerun-if-env-changed=OPENCV_CMAKE_NAME
[opencv 0.77.0] cargo:rerun-if-env-changed=OPENCV_CMAKE_BIN
[opencv 0.77.0] cargo:rerun-if-env-changed=OPENCV_VCPKG_NAME
[opencv 0.77.0] cargo:rerun-if-env-changed=OPENCV_LINK_LIBS
[opencv 0.77.0] cargo:rerun-if-env-changed=OPENCV_LINK_PATHS
[opencv 0.77.0] cargo:rerun-if-env-changed=OPENCV_INCLUDE_PATHS
[opencv 0.77.0] cargo:rerun-if-env-changed=OPENCV_DISABLE_PROBES
[opencv 0.77.0] cargo:rerun-if-env-changed=CMAKE_PREFIX_PATH
[opencv 0.77.0] cargo:rerun-if-env-changed=OpenCV_DIR
[opencv 0.77.0] cargo:rerun-if-env-changed=PKG_CONFIG_PATH
[opencv 0.77.0] cargo:rerun-if-env-changed=VCPKG_ROOT
[opencv 0.77.0] cargo:rerun-if-env-changed=VCPKGRS_DYNAMIC
[opencv 0.77.0] cargo:rerun-if-env-changed=OCVRS_DOCS_GENERATE_DIR
[opencv 0.77.0] cargo:rerun-if-env-changed=DOCS_RS
[opencv 0.77.0] cargo:rerun-if-changed=C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.77.0\src_cpp\alphamat.hpp
[opencv 0.77.0] cargo:rerun-if-changed=C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.77.0\src_cpp\aruco.hpp
[opencv 0.77.0] cargo:rerun-if-changed=C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.77.0\src_cpp\bioinspired.hpp
[opencv 0.77.0] cargo:rerun-if-changed=C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.77.0\src_cpp\ccalib.hpp
[opencv 0.77.0] cargo:rerun-if-changed=C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.77.0\src_cpp\core.hpp
[opencv 0.77.0] cargo:rerun-if-changed=C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.77.0\src_cpp\dnn.hpp
[opencv 0.77.0] cargo:rerun-if-changed=C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.77.0\src_cpp\face.hpp
[opencv 0.77.0] cargo:rerun-if-changed=C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.77.0\src_cpp\gapi.hpp
[opencv 0.77.0] cargo:rerun-if-changed=C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.77.0\src_cpp\hdf.hpp
[opencv 0.77.0] cargo:rerun-if-changed=C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.77.0\src_cpp\manual-core.cpp
[opencv 0.77.0] cargo:rerun-if-changed=C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.77.0\src_cpp\manual-dnn.cpp
[opencv 0.77.0] cargo:rerun-if-changed=C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.77.0\src_cpp\manual-features2d.cpp
[opencv 0.77.0] cargo:rerun-if-changed=C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.77.0\src_cpp\ocvrs_common.hpp
[opencv 0.77.0] cargo:rerun-if-changed=C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.77.0\src_cpp\photo.hpp
[opencv 0.77.0] cargo:rerun-if-changed=C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.77.0\src_cpp\sfm.hpp
[opencv 0.77.0] cargo:rerun-if-changed=C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.77.0\src_cpp\videoio.hpp
[opencv 0.77.0] cargo:rerun-if-changed=C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.77.0\src_cpp\xfeatures2d.hpp
[opencv 0.77.0] cargo:rerun-if-changed=Cargo.toml
[opencv 0.77.0] === Generating code in: C:\HTML\rust_helloworld\hello-wasm\target\debug\build\opencv-482ad472dedc0d13\out
[opencv 0.77.0] === Placing generated bindings into: C:\HTML\rust_helloworld\hello-wasm\target\debug\build\opencv-482ad472dedc0d13\out\opencv
[opencv 0.77.0] === Using OpenCV headers from: C:\tools\opencv\build\include
[opencv 0.77.0] === Clang: clang version 15.0.5
[opencv 0.77.0] === Clang command line args: [
[opencv 0.77.0]     "-isystemC:\\Program Files\\LLVM\\lib\\clang\\15.0.5\\include",
[opencv 0.77.0]     "-IC:\\tools\\opencv\\build\\include",
[opencv 0.77.0]     "-FC:\\tools\\opencv\\build\\include",
[opencv 0.77.0]     "-IC:\\Users\\User123\\.cargo\\registry\\src\\github.com-1ecc6299db9ec823\\opencv-0.77.0\\src_cpp",
[opencv 0.77.0]     "-FC:\\Users\\User123\\.cargo\\registry\\src\\github.com-1ecc6299db9ec823\\opencv-0.77.0\\src_cpp",
[opencv 0.77.0]     "-DOCVRS_PARSING_HEADERS",
[opencv 0.77.0]     "-includeocvrs_ephemeral.hpp",
[opencv 0.77.0]     "-std=c++14",
[opencv 0.77.0] ]
[opencv 0.77.0] === Building binding-generator binary:
[opencv 0.77.0] ===     Finished release [optimized] target(s) in 0.26s
[opencv 0.77.0] === Running: "C:\\HTML\\rust_helloworld\\hello-wasm\\target\\debug\\build\\opencv-482ad472dedc0d13\\out\\release/binding-generator" "C:\\tools\\opencv\\build\\include" "C:\\Users\\User123\\.cargo\\registry\\src\\github.com-1ecc6299db9ec823\\opencv-0.77.0\\src_cpp" "C:\\HTML\\rust_helloworld\\hello-wasm\\target\\debug\\build\\opencv-482ad472dedc0d13\\out" "core" ""
[opencv 0.77.0] === Running: "C:\\HTML\\rust_helloworld\\hello-wasm\\target\\debug\\build\\opencv-482ad472dedc0d13\\out\\release/binding-generator" "C:\\tools\\opencv\\build\\include" "C:\\Users\\User123\\.cargo\\registry\\src\\github.com-1ecc6299db9ec823\\opencv-0.77.0\\src_cpp" "C:\\HTML\\rust_helloworld\\hello-wasm\\target\\debug\\build\\opencv-482ad472dedc0d13\\out" "imgcodecs" ""
[opencv 0.77.0] === Running: "C:\\HTML\\rust_helloworld\\hello-wasm\\target\\debug\\build\\opencv-482ad472dedc0d13\\out\\release/binding-generator" "C:\\tools\\opencv\\build\\include" "C:\\Users\\User123\\.cargo\\registry\\src\\github.com-1ecc6299db9ec823\\opencv-0.77.0\\src_cpp" "C:\\HTML\\rust_helloworld\\hello-wasm\\target\\debug\\build\\opencv-482ad472dedc0d13\\out" "imgproc" ""
[opencv 0.77.0] === WARNING: 1 diagnostic messages
[opencv 0.77.0] ===    C:\tools\opencv\build\include\opencv2/core/cvdef.h:185:10: fatal error: 'limits' file not found
[opencv 0.77.0] thread 'main' panicked at '=== Errors during header parsing', C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-binding-generator-0.56.0\src\generator.rs:512:17   
[opencv 0.77.0] note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[opencv 0.77.0] === WARNING: 1 diagnostic messages
[opencv 0.77.0] ===    C:\tools\opencv\build\include\opencv2/core/cvdef.h:185:10: fatal error: 'limits' file not found
[opencv 0.77.0] thread 'main' panicked at '=== Errors during header parsing', C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-binding-generator-0.56.0\src\generator.rs:512:17   
[opencv 0.77.0] note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[opencv 0.77.0] thread '<unnamed>' panicked at 'Failed to run the bindings generator', C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.77.0\build\generator.rs:103:21
[opencv 0.77.0] note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[opencv 0.77.0] thread '<unnamed>' panicked at 'Failed to run the bindings generator', C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.77.0\build\generator.rs:103:21
[opencv 0.77.0] === WARNING: 1 diagnostic messages
[opencv 0.77.0] ===    C:\tools\opencv\build\include\opencv2/core/cvdef.h:185:10: fatal error: 'limits' file not found
[opencv 0.77.0] thread 'main' panicked at '=== Errors during header parsing', C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-binding-generator-0.56.0\src\generator.rs:512:17   
[opencv 0.77.0] note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[opencv 0.77.0] thread '<unnamed>' panicked at 'Failed to run the bindings generator', C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.77.0\build\generator.rs:103:21
[opencv 0.77.0] thread 'main' panicked at 'Generator thread panicked: Any { .. }', C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.77.0\build\generator.rs:112:28
error: failed to run custom build command for `opencv v0.77.0`

Caused by:
process didn't exit successfully: `C:\HTML\rust_helloworld\hello-wasm\target\debug\build\opencv-85b50f007e9a3fb1\build-script-build` (exit code: 101)
--- stdout
=== Running: "\\\\?\\C:\\Users\\User123\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\bin\\cargo.exe" "build" "--release" "--package" "opencv-binding-generator" "--bin" "binding-generator"     
cargo:rustc-cfg=ocvrs_opencv_branch_4
cargo:rerun-if-env-changed=OPENCV_PACKAGE_NAME
cargo:rerun-if-env-changed=OPENCV_PKGCONFIG_NAME
cargo:rerun-if-env-changed=OPENCV_CMAKE_NAME
cargo:rerun-if-env-changed=OPENCV_CMAKE_BIN
cargo:rerun-if-env-changed=OPENCV_VCPKG_NAME
cargo:rerun-if-env-changed=OPENCV_LINK_LIBS
cargo:rerun-if-env-changed=OPENCV_LINK_PATHS
cargo:rerun-if-env-changed=OPENCV_INCLUDE_PATHS
cargo:rerun-if-env-changed=OPENCV_DISABLE_PROBES
cargo:rerun-if-env-changed=CMAKE_PREFIX_PATH
cargo:rerun-if-env-changed=OpenCV_DIR
cargo:rerun-if-env-changed=PKG_CONFIG_PATH
cargo:rerun-if-env-changed=VCPKG_ROOT
cargo:rerun-if-env-changed=VCPKGRS_DYNAMIC
cargo:rerun-if-env-changed=OCVRS_DOCS_GENERATE_DIR
cargo:rerun-if-env-changed=DOCS_RS
cargo:rerun-if-changed=C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.77.0\src_cpp\alphamat.hpp
cargo:rerun-if-changed=C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.77.0\src_cpp\aruco.hpp
cargo:rerun-if-changed=C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.77.0\src_cpp\bioinspired.hpp
cargo:rerun-if-changed=C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.77.0\src_cpp\ccalib.hpp
cargo:rerun-if-changed=C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.77.0\src_cpp\core.hpp
cargo:rerun-if-changed=C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.77.0\src_cpp\dnn.hpp
cargo:rerun-if-changed=C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.77.0\src_cpp\face.hpp
cargo:rerun-if-changed=C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.77.0\src_cpp\gapi.hpp
cargo:rerun-if-changed=C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.77.0\src_cpp\hdf.hpp
cargo:rerun-if-changed=C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.77.0\src_cpp\manual-core.cpp
cargo:rerun-if-changed=C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.77.0\src_cpp\manual-dnn.cpp
cargo:rerun-if-changed=C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.77.0\src_cpp\manual-features2d.cpp
cargo:rerun-if-changed=C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.77.0\src_cpp\ocvrs_common.hpp
cargo:rerun-if-changed=C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.77.0\src_cpp\photo.hpp
cargo:rerun-if-changed=C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.77.0\src_cpp\sfm.hpp
cargo:rerun-if-changed=C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.77.0\src_cpp\videoio.hpp
cargo:rerun-if-changed=C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.77.0\src_cpp\xfeatures2d.hpp
cargo:rerun-if-changed=Cargo.toml

--- stderr
=== Using environment job server with the the amount of available jobs: 10
=== Crate version: Some("0.77.0")
=== Environment configuration:
===   OPENCV_PACKAGE_NAME = None
===   OPENCV_PKGCONFIG_NAME = None
===   OPENCV_CMAKE_NAME = None
===   OPENCV_CMAKE_BIN = None
===   OPENCV_VCPKG_NAME = None
===   OPENCV_LINK_LIBS = Some("opencv_world460")
===   OPENCV_LINK_PATHS = Some("C:\\tools\\opencv\\build\\x64\\vc15\\lib")
===   OPENCV_INCLUDE_PATHS = Some("C:\\tools\\opencv\\build\\include")
===   OPENCV_DISABLE_PROBES = None
===   CMAKE_PREFIX_PATH = None
===   OpenCV_DIR = None
===   PKG_CONFIG_PATH = None
===   VCPKG_ROOT = None
===   VCPKGRS_DYNAMIC = None
===   OCVRS_DOCS_GENERATE_DIR = None
===   DOCS_RS = None
===   PATH = Some("C:\\HTML\\rust_helloworld\\hello-wasm\\target\\debug\\deps;C:\\HTML\\rust_helloworld\\hello-wasm\\target\\debug;C:\\Users\\User123\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib;C:\\Users\\User123\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\bin;C:\\Program Files\\Common Files\\Oracle\\Java\\javapath;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\Python38\\Scripts\\;C:\\Python38\\;C:\\Program Files (x86)\\Common Files\\Intel\\Shared Libraries\\redist\\intel64_win\\compiler;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Intel\\WiFi\\bin\\;C:\\Program Files\\Common Files\\Intel\\WirelessCommon\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C:\\Program Files (x86)\\Autodesk\\Backburner\\;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\dotnet\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\Microsoft SQL Server\\120\\Tools\\Binn\\;C:\\Program Files\\Common Files\\Autodesk Shared\\;D:\\User123-Alex\\Python;C:\\Program Files\\Go\\bin;C:\\Program Files\\nodejs\\;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\Program Files\\CMake\\bin;C:\\vcpkg;C:\\Program Files\\Git\\cmd;C:\\Users\\User123\\AppData\\Roaming\\npm;C:\\Program Files (x86)\\GnuWin32\\bin;C:\\Program Files\\Ninja;C:\\Program Files\\LLVM\\bin;C:\\Users\\User123\\.cargo\\bin;C:\\Program Files\\Common Files\\Oracle\\Java\\javapath;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\Python38\\Scripts\\;C:\\Python38\\;C:\\Program Files (x86)\\Common Files\\Intel\\Shared Libraries\\redist\\intel64_win\\compiler;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Intel\\WiFi\\bin\\;C:\\Program Files\\Common Files\\Intel\\WirelessCommon\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C:\\Program Files (x86)\\Autodesk\\Backburner\\;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\dotnet\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\Microsoft SQL Server\\120\\Tools\\Binn\\;C:\\Program Files\\Common Files\\Autodesk Shared\\;D:\\User123-Alex\\Python;C:\\Program Files\\Go\\bin;C:\\Program Files\\nodejs\\;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\Program Files\\CMake\\bin;C:;C:\\Users\\User123\\AppData\\Local\\Programs\\Microsoft VS Code\\bin")
=== Enabled features:
===   IMGCODECS
===   IMGPROC
=== Detected probe priority based on environment vars: pkg_config: false, cmake: false, vcpkg: true
=== Probing the OpenCV library in the following order: environment, vcpkg_cmake, vcpkg, pkg_config, cmake
=== Configuring OpenCV library from the environment:
===   include_paths: C:\tools\opencv\build\include
===   link_paths: C:\tools\opencv\build\x64\vc15\lib
===   link_libs: opencv_world460
=== Successfully probed using: environment
=== OpenCV library configuration: Library {
   include_paths: [
       "C:\\tools\\opencv\\build\\include",
   ],
   version: Version {
       major: 4,
       minor: 6,
       patch: 0,
   },
   cargo_metadata: [
       "cargo:rustc-link-search=C:\\tools\\opencv\\build\\x64\\vc15\\lib",
       "cargo:rustc-link-lib=opencv_world460",
   ],
}
=== Detected OpenCV module header dir at: C:\tools\opencv\build\include\opencv2
=== Found OpenCV version: 4.6.0 in headers located at: C:\tools\opencv\build\include
=== Generating code in: C:\HTML\rust_helloworld\hello-wasm\target\debug\build\opencv-482ad472dedc0d13\out
=== Placing generated bindings into: C:\HTML\rust_helloworld\hello-wasm\target\debug\build\opencv-482ad472dedc0d13\out\opencv
=== Using OpenCV headers from: C:\tools\opencv\build\include
=== Clang: clang version 15.0.5
=== Clang command line args: [
   "-isystemC:\\Program Files\\LLVM\\lib\\clang\\15.0.5\\include",
   "-IC:\\tools\\opencv\\build\\include",
   "-FC:\\tools\\opencv\\build\\include",
   "-IC:\\Users\\User123\\.cargo\\registry\\src\\github.com-1ecc6299db9ec823\\opencv-0.77.0\\src_cpp",
   "-FC:\\Users\\User123\\.cargo\\registry\\src\\github.com-1ecc6299db9ec823\\opencv-0.77.0\\src_cpp",
   "-DOCVRS_PARSING_HEADERS",
   "-includeocvrs_ephemeral.hpp",
   "-std=c++14",
]
=== Building binding-generator binary:
===     Finished release [optimized] target(s) in 0.26s
=== Running: "C:\\HTML\\rust_helloworld\\hello-wasm\\target\\debug\\build\\opencv-482ad472dedc0d13\\out\\release/binding-generator" "C:\\tools\\opencv\\build\\include" "C:\\Users\\User123\\.cargo\\registry\\src\\github.com-1ecc6299db9ec823\\opencv-0.77.0\\src_cpp" "C:\\HTML\\rust_helloworld\\hello-wasm\\target\\debug\\build\\opencv-482ad472dedc0d13\\out" "core" ""
=== Running: "C:\\HTML\\rust_helloworld\\hello-wasm\\target\\debug\\build\\opencv-482ad472dedc0d13\\out\\release/binding-generator" "C:\\tools\\opencv\\build\\include" "C:\\Users\\User123\\.cargo\\registry\\src\\github.com-1ecc6299db9ec823\\opencv-0.77.0\\src_cpp" "C:\\HTML\\rust_helloworld\\hello-wasm\\target\\debug\\build\\opencv-482ad472dedc0d13\\out" "imgcodecs" ""
=== Running: "C:\\HTML\\rust_helloworld\\hello-wasm\\target\\debug\\build\\opencv-482ad472dedc0d13\\out\\release/binding-generator" "C:\\tools\\opencv\\build\\include" "C:\\Users\\User123\\.cargo\\registry\\src\\github.com-1ecc6299db9ec823\\opencv-0.77.0\\src_cpp" "C:\\HTML\\rust_helloworld\\hello-wasm\\target\\debug\\build\\opencv-482ad472dedc0d13\\out" "imgproc" ""
=== WARNING: 1 diagnostic messages
===    C:\tools\opencv\build\include\opencv2/core/cvdef.h:185:10: fatal error: 'limits' file not found
thread 'main' panicked at '=== Errors during header parsing', C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-binding-generator-0.56.0\src\generator.rs:512:17
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
=== WARNING: 1 diagnostic messages
===    C:\tools\opencv\build\include\opencv2/core/cvdef.h:185:10: fatal error: 'limits' file not found
thread 'main' panicked at '=== Errors during header parsing', C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-binding-generator-0.56.0\src\generator.rs:512:17
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread '<unnamed>' panicked at 'Failed to run the bindings generator', C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.77.0\build\generator.rs:103:21
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread '<unnamed>' panicked at 'Failed to run the bindings generator', C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.77.0\build\generator.rs:103:21
=== WARNING: 1 diagnostic messages
===    C:\tools\opencv\build\include\opencv2/core/cvdef.h:185:10: fatal error: 'limits' file not found
thread 'main' panicked at '=== Errors during header parsing', C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-binding-generator-0.56.0\src\generator.rs:512:17
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread '<unnamed>' panicked at 'Failed to run the bindings generator', C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.77.0\build\generator.rs:103:21
thread 'main' panicked at 'Generator thread panicked: Any { .. }', C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.77.0\build\generator.rs:112:28
warning: build failed, waiting for other jobs to finish...

Please let me know if you need to gather more information of my machine. I will provide as much as I can.

@PikabobAlex
Copy link
Author

And also I already check this issue and still no luck. I installed VS2019 build tool, libstdc++-12-dev on Ubuntu.

@twistedfall
Copy link
Owner

Hi, can you please try searching for file names literally limits (with no extension) and tell me where it is located? You might find several of those files. Additionally can you please run clang.exe -E -x c++ - -v (supply full path to clang.exe if needed) and paste it’s output here?

@PikabobAlex
Copy link
Author

Thanks for reply!
Here are the list of directory of the file named limits
C:\Users\User123\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu22.04LTS_79rhkp1fndgsc\LocalState\rootfs\usr\include
C:\vcpkg\packages\opencv4_x86-windows\include\opencv2\core
C:\vcpkg\buildtrees\opencv4\src\4.6.0-9a95a1b699.clean\modules\dnn\src\cuda
This is after I wrote the clang.exe -E -x c++ - -v command

clang version 15.0.5
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: C:\Program Files\LLVM\bin
 (in-process)
 "C:\\Program Files\\LLVM\\bin\\clang.exe" -cc1 -triple x86_64-pc-windows-msvc19.20.0 -E -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name - -mrelocation-model pic -pic-level 2 -mframe-pointer=none -fmath-errno -ffp-contract=on -fno-rounding-math -mconstructor-aliases -funwind-tables=2 -target-cpu x86-64 -tune-cpu generic -v "-fcoverage-compilation-dir=C:\\HTML\\rust_helloworld\\hello-wasm" -resource-dir "C:\\Program Files\\LLVM\\lib\\clang\\15.0.5" -internal-isystem "C:\\Program Files\\LLVM\\lib\\clang\\15.0.5\\include" -internal-isystem "C:/Program Files/Microsoft Visual Studio 10.0/VC/include" -internal-isystem "C:/Program Files/Microsoft Visual Studio 9.0/VC/include" -internal-isystem "C:/Program Files/Microsoft Visual Studio 9.0/VC/PlatformSDK/Include" -internal-isystem "C:/Program Files/Microsoft Visual Studio 8/VC/include" -internal-isystem "C:/Program Files/Microsoft Visual Studio 8/VC/PlatformSDK/Include" -fdeprecated-macro "-fdebug-compilation-dir=C:\\HTML\\rust_helloworld\\hello-wasm" -ferror-limit 19 -fmessage-length=201 -fno-use-cxa-atexit -fms-extensions -fms-compatibility -fms-compatibility-version=19.20 -std=c++14 -fdelayed-template-parsing -fcxx-exceptions -fexceptions -fcolor-diagnostics -faddrsig -o - -x c++ -
clang -cc1 version 15.0.5 based upon LLVM 15.0.5 default target x86_64-pc-windows-msvc
ignoring nonexistent directory "C:/Program Files/Microsoft Visual Studio 10.0/VC/include"
ignoring nonexistent directory "C:/Program Files/Microsoft Visual Studio 9.0/VC/include"
ignoring nonexistent directory "C:/Program Files/Microsoft Visual Studio 9.0/VC/PlatformSDK/Include"
ignoring nonexistent directory "C:/Program Files/Microsoft Visual Studio 8/VC/include"
ignoring nonexistent directory "C:/Program Files/Microsoft Visual Studio 8/VC/PlatformSDK/Include"
#include "..." search starts here:
#include <...> search starts here:
 C:\Program Files\LLVM\lib\clang\15.0.5\include

@PikabobAlex
Copy link
Author

Here are the additional I found

 Directory of C:\$Recycle.Bin\S-1-5-21-3389027540-57283395-1383752379-1001\$RFHCR9N\opencv2\core\cuda

28/12/2022  11:45 PM             4,958 limits.hpp
               1 File(s)          4,958 bytes

 Directory of C:\HTML\emsdk\upstream\emscripten\cache\sysroot\include

19/12/2022  05:49 PM             4,179 limits.h
               1 File(s)          4,179 bytes

 Directory of C:\HTML\emsdk\upstream\emscripten\cache\sysroot\include\bits

19/12/2022  05:49 PM               318 limits.h
               1 File(s)            318 bytes

 Directory of C:\HTML\emsdk\upstream\emscripten\cache\sysroot\include\c++\v1

19/12/2022  05:49 PM            41,033 limits
19/12/2022  05:49 PM             1,473 limits.h
               2 File(s)         42,506 bytes

 Directory of C:\HTML\emsdk\upstream\emscripten\cache\sysroot\include\c++\v1\__support\win32

19/12/2022  05:49 PM             2,634 limits_msvc_win32.h

               1 File(s)          2,634 bytes

 Directory of C:\HTML\emsdk\upstream\emscripten\system\lib\libc\musl\arch\emscripten\bits

19/12/2022  05:49 PM               318 limits.h
               1 File(s)            318 bytes

 Directory of C:\HTML\emsdk\upstream\emscripten\system\lib\libc\musl\arch\generic\bits

19/12/2022  05:49 PM                 0 limits.h
               1 File(s)              0 bytes

 Directory of C:\HTML\emsdk\upstream\emscripten\system\lib\libc\musl\include

19/12/2022  05:49 PM             4,179 limits.h
               1 File(s)          4,179 bytes

 Directory of C:\HTML\emsdk\upstream\emscripten\system\lib\libcxx\include

19/12/2022  05:49 PM            41,033 limits
19/12/2022  05:49 PM             1,473 limits.h
               2 File(s)         42,506 bytes

 Directory of C:\HTML\emsdk\upstream\emscripten\system\lib\libcxx\include\__support\win32

19/12/2022  05:49 PM             2,634 limits_msvc_win32.h
               1 File(s)          2,634 bytes

 Directory of C:\HTML\emsdk\upstream\lib\clang\16\include


19/12/2022  05:49 PM             3,603 limits.h
               1 File(s)          3,603 bytes

 Directory of C:\HTML\jsartoolkit5\emscripten\artoolkit5\include\linux-i686\opencv2\gpu\device

03/11/2022  11:20 AM             4,887 limits.hpp
               1 File(s)          4,887 bytes

 Directory of C:\HTML\jsartoolkit5\emscripten\artoolkit5\include\linux-x86_64\opencv2\gpu\device

03/11/2022  11:20 AM             4,887 limits.hpp
               1 File(s)          4,887 bytes

 Directory of C:\HTML\jsartoolkit5\emscripten\artoolkit5\include\macosx-universal\opencv2\core\cuda

03/11/2022  11:20 AM             4,970 limits.hpp
               1 File(s)          4,970 bytes

 Directory of C:\HTML\jsartoolkit5\emscripten\artoolkit5\include\win32-i386\opencv2\gpu\device

03/11/2022  11:20 AM             4,887 limits.hpp
               1 File(s)          4,887 bytes

 Directory of C:\HTML\Pangolin\scripts\vcpkg\ports\qt5-base\patches

03/01/2023  11:05 AM               310 limits_include.patch
               1 File(s)            310 bytes

 Directory of C:\HTML\Pangolin\scripts\vcpkg\ports\qt5-declarative


03/01/2023  11:05 AM               620 limits_include.patch
               1 File(s)            620 bytes

 Directory of C:\HTML\vcpkg\buildtrees\opencv4\src\4.7.0-34a2240496.clean\modules\core\include\opencv2\core\cuda

28/12/2022  10:31 PM             4,830 limits.hpp
               1 File(s)          4,830 bytes

 Directory of C:\HTML\vcpkg\buildtrees\opencv4\src\4.7.0-34a2240496.clean\modules\dnn\src\cuda

28/12/2022  10:31 PM             1,121 limits.hpp
               1 File(s)          1,121 bytes

 Directory of C:\HTML\vcpkg\downloads\opencv-4.7.0\modules\core\include\opencv2\core\cuda

28/12/2022  10:31 PM             4,830 limits.hpp
               1 File(s)          4,830 bytes

 Directory of C:\HTML\vcpkg\downloads\opencv-4.7.0\modules\dnn\src\cuda

28/12/2022  10:31 PM             1,121 limits.hpp
               1 File(s)          1,121 bytes

 Directory of C:\HTML\vcpkg\installed\x86-windows\include\opencv2\core\cuda

28/12/2022  10:31 PM             4,830 limits.hpp
               1 File(s)          4,830 bytes

 Directory of C:\HTML\vcpkg\packages\opencv4_x86-windows\include\opencv2\core\cuda


28/12/2022  10:31 PM             4,830 limits.hpp
               1 File(s)          4,830 bytes

 Directory of C:\Program Files\Blender Foundation\Blender 3.2\3.2\python\lib\site-packages\Cython\Includes\libc

28/01/2022  04:08 PM               621 limits.pxd
               1 File(s)            621 bytes

 Directory of C:\Program Files\Blender Foundation\Blender 3.2\3.2\python\lib\site-packages\Cython\Includes\libcpp

28/01/2022  04:08 PM             1,661 limits.pxd
               1 File(s)          1,661 bytes

 Directory of C:\Program Files\Git\usr\share\vim\vim82\ftplugin

21/12/2022  02:18 PM               436 limits.vim
               1 File(s)            436 bytes

 Directory of C:\Program Files\Git\usr\share\vim\vim82\syntax

21/12/2022  02:18 PM             1,317 limits.vim
               1 File(s)          1,317 bytes

 Directory of C:\Program Files\LLVM\lib\clang\15.0.5\include

16/11/2022  02:28 PM             3,498 limits.h
               1 File(s)          3,498 bytes

 Directory of C:\Program Files\Unity\Hub\Editor\2020.3.32f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\system\include\libc


16/03/2022  09:46 AM             3,974 limits.h
               1 File(s)          3,974 bytes

 Directory of C:\Program Files\Unity\Hub\Editor\2020.3.32f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\system\include\libcxx

16/03/2022  09:46 AM            40,572 limits
16/03/2022  09:46 AM             1,459 limits.h
               2 File(s)         42,031 bytes

 Directory of C:\Program Files\Unity\Hub\Editor\2020.3.32f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\system\include\libcxx\support\ibm

16/03/2022  09:46 AM             3,597 limits.h
               1 File(s)          3,597 bytes

 Directory of C:\Program Files\Unity\Hub\Editor\2020.3.32f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\system\include\libcxx\support\win32

16/03/2022  09:46 AM             2,619 limits_msvc_win32.h
               1 File(s)          2,619 bytes

 Directory of C:\Program Files\Unity\Hub\Editor\2020.3.32f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\system\lib\libc\musl\arch\emscripten\bits

16/03/2022  09:46 AM               254 limits.h
               1 File(s)            254 bytes

 Directory of C:\Program Files\Unity\Hub\Editor\2021.3.12f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emscripten\cache\sysroot\include

14/12/2021  02:49 AM             4,128 limits.h
               1 File(s)          4,128 bytes


 Directory of C:\Program Files\Unity\Hub\Editor\2021.3.12f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emscripten\cache\sysroot\include\bits

14/12/2021  02:49 AM               262 limits.h
               1 File(s)            262 bytes

 Directory of C:\Program Files\Unity\Hub\Editor\2021.3.12f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emscripten\cache\sysroot\include\c++\v1

14/12/2021  02:49 AM            41,477 limits
14/12/2021  02:49 AM             1,536 limits.h
               2 File(s)         43,013 bytes

 Directory of C:\Program Files\Unity\Hub\Editor\2021.3.12f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emscripten\cache\sysroot\include\c++\v1\support\ibm

14/12/2021  02:49 AM             3,708 limits.h
               1 File(s)          3,708 bytes

 Directory of C:\Program Files\Unity\Hub\Editor\2021.3.12f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emscripten\cache\sysroot\include\c++\v1\support\win32

14/12/2021  02:49 AM             2,703 limits_msvc_win32.h
               1 File(s)          2,703 bytes

 Directory of C:\Program Files\Unity\Hub\Editor\2021.3.12f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emscripten\cache\sysroot\include\libc

14/12/2021  02:49 AM                22 limits.h
               1 File(s)             22 bytes

 Directory of C:\Program Files\Unity\Hub\Editor\2021.3.12f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emscripten\system\lib\libc\musl\arch\emscripten\bits


14/12/2021  02:49 AM               262 limits.h
               1 File(s)            262 bytes

 Directory of C:\Program Files\Unity\Hub\Editor\2021.3.12f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emscripten\system\lib\libc\musl\include

14/12/2021  02:49 AM             4,128 limits.h
               1 File(s)          4,128 bytes

 Directory of C:\Program Files\Unity\Hub\Editor\2021.3.12f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emscripten\system\lib\libc\musl\include\libc

14/12/2021  02:49 AM                22 limits.h
               1 File(s)             22 bytes

 Directory of C:\Program Files\Unity\Hub\Editor\2021.3.12f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emscripten\system\lib\libcxx\include

14/12/2021  02:49 AM            41,477 limits
14/12/2021  02:49 AM             1,536 limits.h
               2 File(s)         43,013 bytes

 Directory of C:\Program Files\Unity\Hub\Editor\2021.3.12f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emscripten\system\lib\libcxx\include\support\ibm

14/12/2021  02:49 AM             3,708 limits.h
               1 File(s)          3,708 bytes

 Directory of C:\Program Files\Unity\Hub\Editor\2021.3.12f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emscripten\system\lib\libcxx\include\support\win32


14/12/2021  02:49 AM             2,703 limits_msvc_win32.h
               1 File(s)          2,703 bytes

 Directory of C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include

14/02/2023  06:11 PM            31,453 limits
14/02/2023  06:11 PM             1,969 limits.h
               2 File(s)         33,422 bytes

 Directory of C:\tools\opencv\build\include\opencv2\core\cuda

11/05/2022  06:40 AM             4,958 limits.hpp
               1 File(s)          4,958 bytes

 Directory of C:\tools\opencv\sources\modules\core\include\opencv2\core\cuda

14/05/2022  03:14 AM             4,958 limits.hpp
               1 File(s)          4,958 bytes

 Directory of C:\tools\opencv\sources\modules\dnn\src\cuda

14/05/2022  03:14 AM             1,157 limits.hpp
               1 File(s)          1,157 bytes

 Directory of C:\Users\User123\.cargo\registry\src\github.com-1ecc6299db9ec823\winapi-0.3.9\src\vc

19/03/2020  03:02 PM               397 limits.rs
               1 File(s)            397 bytes


 Directory of C:\Users\User123\.rustup\toolchains\stable-x86_64-pc-windows-gnu\share\doc\rust\html\reference\attributes

14/02/2023  06:13 PM            28,270 limits.html
               1 File(s)         28,270 bytes

 Directory of C:\Users\User123\.rustup\toolchains\stable-x86_64-pc-windows-msvc\share\doc\rust\html\reference\attributes

10/02/2023  12:14 PM            28,270 limits.html
               1 File(s)         28,270 bytes

 Directory of C:\Users\User123\AppData\Local\Google\Cloud SDK\google-cloud-sdk\platform\gsutil\gslib\vendored\boto\boto\ec2\autoscale

01/01/1980  04:00 PM             1,958 limits.py
               1 File(s)          1,958 bytes

 Directory of C:\Users\User123\AppData\Local\Google\Cloud SDK\google-cloud-sdk\platform\gsutil\gslib\vendored\boto\boto\ec2\autoscale\__pycache__

26/01/2022  06:43 PM             1,191 limits.cpython-38.pyc
               1 File(s)          1,191 bytes

 Directory of C:\Users\User123\AppData\Local\Google\Cloud SDK\google-cloud-sdk\platform\gsutil_py2\gslib\vendored\boto\boto\ec2\autoscale

01/01/1980  04:00 PM             1,958 limits.py
               1 File(s)          1,958 bytes

 Directory of C:\Users\User123\AppData\Local\Google\Cloud SDK\google-cloud-sdk\platform\gsutil_py2\gslib\vendored\boto\boto\ec2\autoscale\__pycache__

26/01/2022  06:43 PM             1,195 limits.cpython-38.pyc
               1 File(s)          1,195 bytes


 Directory of C:\Users\User123\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu22.04LTS_79rhkp1fndgsc\LocalState\rootfs\etc\security

24/03/2022  09:43 AM             2,161 limits.conf
24/03/2022  09:43 AM    <DIR>          limits.d
               1 File(s)          2,161 bytes

 Directory of C:\Users\User123\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu22.04LTS_79rhkp1fndgsc\LocalState\rootfs\home\pikabobalex\.cargo\registry\src\github.com-1ecc6299db9ec823\wasmparser-0.59.0\src

13/07/2020  10:18 PM             1,671 limits.rs
               1 File(s)          1,671 bytes

 Directory of C:\Users\User123\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu22.04LTS_79rhkp1fndgsc\LocalState\rootfs\home\pikabobalex\.cargo\registry\src\github.com-1ecc6299db9ec823\wasmparser-0.77.0\src

01/01/1970  08:00 AM             1,808 limits.rs
               1 File(s)          1,808 bytes

 Directory of C:\Users\User123\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu22.04LTS_79rhkp1fndgsc\LocalState\rootfs\home\pikabobalex\.cargo\registry\src\github.com-1ecc6299db9ec823\winapi-0.3.9\src\vc

19/03/2020  03:02 PM               397 limits.rs
               1 File(s)            397 bytes

 Directory of C:\Users\User123\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu22.04LTS_79rhkp1fndgsc\LocalState\rootfs\home\pikabobalex\.rustup\toolchains\stable-x86_64-unknown-linux-gnu\share\doc\rust\html\reference\attributes

10/02/2023  12:26 PM            28,270 limits.html

               1 File(s)         28,270 bytes

 Directory of C:\Users\User123\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu22.04LTS_79rhkp1fndgsc\LocalState\rootfs\usr\include

07/07/2022  07:23 AM             5,706 limits.h
               1 File(s)          5,706 bytes

 Directory of C:\Users\User123\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu22.04LTS_79rhkp1fndgsc\LocalState\rootfs\usr\include\c++\11

01/05/2022  04:29 AM            71,674 limits
               1 File(s)         71,674 bytes

 Directory of C:\Users\User123\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu22.04LTS_79rhkp1fndgsc\LocalState\rootfs\usr\include\c++\11\tr1

01/05/2022  04:29 AM             1,214 limits.h
               1 File(s)          1,214 bytes

 Directory of C:\Users\User123\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu22.04LTS_79rhkp1fndgsc\LocalState\rootfs\usr\include\c++\12

13/05/2022  07:11 PM            71,724 limits
               1 File(s)         71,724 bytes

 Directory of C:\Users\User123\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu22.04LTS_79rhkp1fndgsc\LocalState\rootfs\usr\include\c++\12\tr1

13/05/2022  07:11 PM             1,214 limits.h
               1 File(s)          1,214 bytes

 Directory of C:\Users\User123\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu22.04LTS_79rhkp1fndgsc\LocalState\rootfs\usr\include\linux


22/11/2022  11:08 PM               937 limits.h
               1 File(s)            937 bytes

 Directory of C:\Users\User123\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu22.04LTS_79rhkp1fndgsc\LocalState\rootfs\usr\include\opencv4\opencv2\core\cuda

09/10/2021  11:48 PM             4,830 limits.hpp
               1 File(s)          4,830 bytes

 Directory of C:\Users\User123\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu22.04LTS_79rhkp1fndgsc\LocalState\rootfs\usr\lib\gcc\x86_64-linux-gnu\11\include

01/05/2022  04:29 AM             6,355 limits.h
               1 File(s)          6,355 bytes

 Directory of C:\Users\User123\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu22.04LTS_79rhkp1fndgsc\LocalState\rootfs\usr\lib\gcc\x86_64-linux-gnu\12\include

13/05/2022  07:11 PM             6,355 limits.h
               1 File(s)          6,355 bytes

 Directory of C:\Users\User123\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu22.04LTS_79rhkp1fndgsc\LocalState\rootfs\usr\lib\llvm-14\lib\clang\14.0.0\include

24/03/2022  09:24 PM             3,533 limits.h
               1 File(s)          3,533 bytes

 Directory of C:\Users\User123\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu22.04LTS_79rhkp1fndgsc\LocalState\rootfs\usr\share\man\man5

24/03/2022  09:43 AM             2,893 limits.conf.5.gz
               1 File(s)          2,893 bytes

 Directory of C:\Users\User123\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu22.04LTS_79rhkp1fndgsc\LocalState\rootfs\usr\share\vim\vim82\ftplugin


13/09/2022  05:35 PM               436 limits.vim
               1 File(s)            436 bytes

 Directory of C:\Users\User123\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu22.04LTS_79rhkp1fndgsc\LocalState\rootfs\usr\share\vim\vim82\syntax

13/09/2022  05:35 PM             1,317 limits.vim
               1 File(s)          1,317 bytes

 Directory of C:\Users\User123\Downloads\FFmpeg-n4.3.1\FFmpeg-n4.3.1\compat\float

10/07/2020  03:26 PM               872 limits.h
               1 File(s)            872 bytes

 Directory of C:\Users\User123\scoop\apps\git\2.31.0.windows.1\usr\share\vim\vim82\ftplugin

16/03/2021  05:39 AM               436 limits.vim
               1 File(s)            436 bytes

 Directory of C:\Users\User123\scoop\apps\git\2.31.0.windows.1\usr\share\vim\vim82\syntax

16/03/2021  05:39 AM             1,317 limits.vim
               1 File(s)          1,317 bytes

 Directory of C:\Users\User123\scoop\apps\git\current\usr\share\vim\vim82\ftplugin

16/03/2021  05:39 AM               436 limits.vim
               1 File(s)            436 bytes

 Directory of C:\Users\User123\scoop\apps\git\current\usr\share\vim\vim82\syntax


16/03/2021  05:39 AM             1,317 limits.vim
               1 File(s)          1,317 bytes

 Directory of C:\vcpkg\buildtrees\ffmpeg\src\n4.4.3-cb3716883a.clean\compat\float

10/10/2022  01:56 AM               872 limits.h
               1 File(s)            872 bytes

 Directory of C:\vcpkg\buildtrees\opencv4\src\4.6.0-9a95a1b699.clean\modules\core\include\opencv2\core\cuda

05/06/2022  11:32 PM             4,830 limits.hpp
               1 File(s)          4,830 bytes

 Directory of C:\vcpkg\buildtrees\opencv4\src\4.6.0-9a95a1b699.clean\modules\dnn\src\cuda

05/06/2022  11:32 PM             1,121 limits.hpp
               1 File(s)          1,121 bytes

 Directory of C:\vcpkg\downloads\tools\git-2.7.4-windows\usr\share\vim\vim82\ftplugin

02/02/2022  12:04 AM               436 limits.vim
               1 File(s)            436 bytes

 Directory of C:\vcpkg\downloads\tools\git-2.7.4-windows\usr\share\vim\vim82\syntax

02/02/2022  12:04 AM             1,317 limits.vim
               1 File(s)          1,317 bytes

 Directory of C:\vcpkg\installed\x86-windows\include\opencv2\core\cuda


05/06/2022  11:32 PM             4,830 limits.hpp
               1 File(s)          4,830 bytes

 Directory of C:\vcpkg\packages\opencv4_x86-windows\include\opencv2\core\cuda

05/06/2022  11:32 PM             4,830 limits.hpp
               1 File(s)          4,830 bytes

 Directory of C:\xampp\example-app\vendor\guzzlehttp\psr7\src

26/10/2022  10:07 PM             4,297 LimitStream.php
               1 File(s)          4,297 bytes

 Directory of C:\xampp\MercuryMail

21/12/2011  09:46 AM           121,528 limits.exe
07/08/2010  01:04 AM               575 limits.exe.manifest
               2 File(s)        122,103 bytes

 Directory of C:\xampp\vendor\guzzlehttp\psr7\src

26/10/2022  10:07 PM             4,297 LimitStream.php
               1 File(s)          4,297 bytes

 Directory of C:\xampp_old\MercuryMail

21/12/2011  09:46 AM           121,528 limits.exe
07/08/2010  01:04 AM               575 limits.exe.manifest
               2 File(s)        122,103 bytes


     Total Files Listed:
              98 File(s)        913,281 bytes
               1 Dir(s)  36,195,905,536 bytes free

@twistedfall
Copy link
Owner

Can you please try installing Visual Studio 2019 Build Tools (visualstudio2019buildtools package in chocolatey) and try again?

@PikabobAlex
Copy link
Author

Hi, I don't know why it panic but at least some new error...
Now it says it found version 0.0.0 of OpenCV
I tried reinstall the opencv with choco install llvm opencv but the problem is still there 🤧

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

Caused by:
  process didn't exit successfully: `c:\HTML\rust_helloworld\hello-wasm\target\debug\build\opencv-85b50f007e9a3fb1\build-script-build` (exit code: 101)
  --- stdout
  === Running: "\\\\?\\C:\\Users\\user123\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\bin\\cargo.exe" "build" "--release" "--package" "opencv-binding-generator" "--bin" "binding-generator"

  --- stderr
  === Using environment job server with the the amount of available jobs: 11
  === Crate version: Some("0.77.0")
  === Environment configuration:
  ===   OPENCV_PACKAGE_NAME = None
  ===   OPENCV_PKGCONFIG_NAME = None
  ===   OPENCV_CMAKE_NAME = None
  ===   OPENCV_CMAKE_BIN = None
  ===   OPENCV_VCPKG_NAME = None
  ===   OPENCV_LINK_LIBS = Some("opencv_world460")
  ===   OPENCV_LINK_PATHS = Some("C:\\tools\\opencv\\build\\x64\\vc15\\lib")
  ===   OPENCV_INCLUDE_PATHS = Some("C:\\tools\\opencv\\build\\include\\opencv2")
  ===   OPENCV_DISABLE_PROBES = None
  ===   CMAKE_PREFIX_PATH = None
  ===   OpenCV_DIR = None
  ===   PKG_CONFIG_PATH = None
  ===   VCPKG_ROOT = None
  ===   VCPKGRS_DYNAMIC = None
  ===   OCVRS_DOCS_GENERATE_DIR = None
  ===   DOCS_RS = None
  ===   PATH = Some("c:\\HTML\\rust_helloworld\\hello-wasm\\target\\debug\\deps;c:\\HTML\\rust_helloworld\\hello-wasm\\target\\debug;C:\\Users\\user123\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib;C:\\Users\\user123\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\bin;C:\\Program Files\\Common Files\\Oracle\\Java\\javapath;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\Python38\\Scripts\\;C:\\Python38\\;C:\\Program Files (x86)\\Common Files\\Intel\\Shared Libraries\\redist\\intel64_win\\compiler;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Intel\\WiFi\\bin\\;C:\\Program Files\\Common Files\\Intel\\WirelessCommon\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C:\\Program Files (x86)\\Autodesk\\Backburner\\;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\dotnet\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\Microsoft SQL Server\\120\\Tools\\Binn\\;C:\\Program Files\\Common Files\\Autodesk Shared\\;D:\\user123-Alex\\Python;C:\\Program Files\\Go\\bin;C:\\Program Files\\nodejs\\;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\Program Files\\CMake\\bin;C:\\vcpkg;C:\\Program Files\\Git\\cmd;C:\\Users\\user123\\AppData\\Roaming\\npm;C:\\Program Files (x86)\\GnuWin32\\bin;C:\\Program Files\\Ninja;C:\\Program Files\\LLVM\\bin;C:\\Users\\user123\\.cargo\\bin;C:\\Program Files\\Common Files\\Oracle\\Java\\javapath;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\Python38\\Scripts\\;C:\\Python38\\;C:\\Program Files (x86)\\Common Files\\Intel\\Shared Libraries\\redist\\intel64_win\\compiler;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\Intel\\WiFi\\bin\\;C:\\Program Files\\Common Files\\Intel\\WirelessCommon\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C:\\Program Files (x86)\\Autodesk\\Backburner\\;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\dotnet\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\Microsoft SQL Server\\120\\Tools\\Binn\\;C:\\Program Files\\Common Files\\Autodesk Shared\\;D:\\user123-Alex\\Python;C:\\Program Files\\Go\\bin;C:\\Program Files\\nodejs\\;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\Program Files\\CMake\\bin;C:;C:\\Users\\user123\\AppData\\Local\\Programs\\Microsoft VS Code\\bin")
  === Enabled features:
  ===   IMGCODECS
  ===   IMGPROC
  === Detected probe priority based on environment vars: pkg_config: false, cmake: false, vcpkg: true
  === Probing the OpenCV library in the following order: environment, vcpkg_cmake, vcpkg, pkg_config, cmake
  === Configuring OpenCV library from the environment:
  ===   include_paths: C:\tools\opencv\build\include\opencv2
  ===   link_paths: C:\tools\opencv\build\x64\vc15\lib
  ===   link_libs: opencv_world460
  === Successfully probed using: environment
  === OpenCV library configuration: Library {
      include_paths: [
          "C:\\tools\\opencv\\build\\include\\opencv2",
      ],
      version: Version {
          major: 0,
          minor: 0,
          patch: 0,
      },
      cargo_metadata: [
          "cargo:rustc-link-search=C:\\tools\\opencv\\build\\x64\\vc15\\lib",
          "cargo:rustc-link-lib=opencv_world460",
      ],
  }
  thread 'main' panicked at 'Unsupported OpenCV version: 0.0.0, must be from 3.2, 3.4 or 4.x branch', C:\Users\user123\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.77.0\build.rs:362:9
  stack backtrace:
     0: rust_begin_unwind
               at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library\std\src/panicking.rs:575:5
     1: core::panicking::panic_fmt
               at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library\core\src/panicking.rs:64:14
     2: build_script_build::main
               at .\build.rs:362:3
     3: core::ops::function::FnOnce::call_once
               at /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483\library\core\src\ops/function.rs:507:5
  note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.```

@PikabobAlex
Copy link
Author

I'm wasn't sure am I off tracking, because I'm current installing MSYS2 to get the gcc and rebuild and install it.

@twistedfall
Copy link
Owner

BTW, I've just noticed that your initial Cargo.toml is likely a WASM build. Such builds are currently not supported for this crate. I've got plans to implement it at some point, but it requires considerable work.

@PikabobAlex
Copy link
Author

Awww.... it's alright then. I am closing down this issue. And thanks for you help!

@PikabobAlex PikabobAlex closed this as not planned Won't fix, can't repro, duplicate, stale Feb 16, 2023
@JPGygax68
Copy link

I'm also having no luck install 0.77. Here's what I think is the relevant excerpt of my output:

=== Clang command line args: [
      "-isystemD:\\Libraries\\include",
      "-isystemC:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\Llvm\\x64\\lib\\clang\\15.0.1\\include",
      "-isystemd:\\source\\vcpkg\\installed\\x64-windows\\include",
      "-ID:\\Source\\vcpkg\\installed\\x64-windows-static-md\\include",
      "-FD:\\Source\\vcpkg\\installed\\x64-windows-static-md\\include",
      "-IC:\\Users\\gygax\\.cargo\\registry\\src\\github.com-1ecc6299db9ec823\\opencv-0.77.0\\src_cpp",
      "-FC:\\Users\\gygax\\.cargo\\registry\\src\\github.com-1ecc6299db9ec823\\opencv-0.77.0\\src_cpp",
      "-DOCVRS_PARSING_HEADERS",
      "-includeocvrs_ephemeral.hpp",
      "-std=c++14",
  ]
  === Building binding-generator binary:
  ===     Finished release [optimized] target(s) in 2.69s
  === Running: "D:\\Projects\\locsim\\imagetracker-rs\\target\\debug\\build\\opencv-9a140ab286a78e62\\out\\release/binding-generator" "D:\\Source\\vcpkg\\installed\\x64-windows-static-md\\include" "C:\\Users\\gygax\\.cargo\\registry\\src\\github.com-1ecc6299db9ec823\\opencv-0.77.0\\src_cpp" "D:\\Projects\\locsim\\imagetracker-rs\\target\\debug\\build\\opencv-9a140ab286a78e62\\out" "aruco" ""
  === Running: "D:\\Projects\\locsim\\imagetracker-rs\\target\\debug\\build\\opencv-9a140ab286a78e62\\out\\release/binding-generator" "D:\\Source\\vcpkg\\installed\\x64-windows-static-md\\include" "C:\\Users\\gygax\\.cargo\\registry\\src\\github.com-1ecc6299db9ec823\\opencv-0.77.0\\src_cpp" "D:\\Projects\\locsim\\imagetracker-rs\\target\\debug\\build\\opencv-9a140ab286a78e62\\out" "barcode" ""
  === Running: "D:\\Projects\\locsim\\imagetracker-rs\\target\\debug\\build\\opencv-9a140ab286a78e62\\out\\release/binding-generator" "D:\\Source\\vcpkg\\installed\\x64-windows-static-md\\include" "C:\\Users\\gygax\\.cargo\\registry\\src\\github.com-1ecc6299db9ec823\\opencv-0.77.0\\src_cpp" "D:\\Projects\\locsim\\imagetracker-rs\\target\\debug\\build\\opencv-9a140ab286a78e62\\out" "bgsegm" ""
  === WARNING: 1 diagnostic messages
  ===    D:\Source\vcpkg\installed\x64-windows-static-md\include\opencv2/core/cvdef.h:185:10: fatal error: 'limits' file not found
  thread 'main' panicked at '=== Errors during header parsing', C:\Users\gygax\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-binding-generator-0.56.0\src\generator.rs:512:17
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
  thread '<unnamed>' panicked at 'Failed to run the bindings generator', C:\Users\gygax\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.77.0\build\generator.rs:103:21
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
  === Running: "D:\\Projects\\locsim\\imagetracker-rs\\target\\debug\\build\\opencv-9a140ab286a78e62\\out\\release/binding-generator" "D:\\Source\\vcpkg\\installed\\x64-windows-static-md\\include" "C:\\Users\\gygax\\.cargo\\registry\\src\\github.com-1ecc6299db9ec823\\opencv-0.77.0\\src_cpp" "D:\\Projects\\locsim\\imagetracker-rs\\target\\debug\\build\\opencv-9a140ab286a78e62\\out" "bioinspired" ""
  === WARNING: 1 diagnostic messages
  ===    D:\Source\vcpkg\installed\x64-windows-static-md\include\opencv2/core/cvdef.h:185:10: fatal error: 'limits' file not found

The immediate problem is <limits>, which does not exist in the path - limits.h does.

@JPGygax68
Copy link

JPGygax68 commented Feb 28, 2023

Update: I worked around my problem by leaving out llvm from the vcpkg install, and specifying the full triplet when installing opencv: vcpkg install opencv4:x64-windows-static-md. I also installed LLVM via its installer (from https://releases.llvm.org/download.html) since trying to install it with vcpkg failed after several hours of filling up my harddisk.

EDIT: the above only worked on one of my machines, so it cannot be the real answer.
EDIT #2: it seems like my having set the INCLUDE environment variable to inside the vcpkg tree led clang down the wrong rabbit hole of inclusions.

@vladaman
Copy link

I am having the same issue on ubuntu 22.04 - is this related?

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

4 participants