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

Can this library really be used on windows? #395

Closed
nanchengjiumeng opened this issue Nov 29, 2022 · 1 comment
Closed

Can this library really be used on windows? #395

nanchengjiumeng opened this issue Nov 29, 2022 · 1 comment

Comments

@nanchengjiumeng
Copy link

No matter how I install llvm or opencv4.
I get this error:

  === WARNING: 1 diagnostic messages
  ===    D:\sources\opencv43064\opencv\build\include\opencv2/core/cvdef.h:171:10: fatal error: 'limits' file not found
  thread 'main' panicked at '=== Errors during header parsing', C:\Users\wang7\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-binding-generator-0.52.0\src\generator.rs:497: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\wang7\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.74.0\build\generator.rs:126:21
  === WARNING: 1 diagnostic messages
  ===    D:\sources\opencv43064\opencv\build\include\opencv2/core/cvdef.h:171:10: fatal error: 'limits' file not found
  thread 'main' panicked at '=== Errors during header parsing', C:\Users\wang7\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-binding-generator-0.52.0\src\generator.rs:497:17
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
  === WARNING: 1 diagnostic messages
  ===    D:\sources\opencv43064\opencv\build\include\opencv2/core/cvdef.h:171:10: fatal error: 'limits' file not found
  thread 'main' panicked at '=== Errors during header parsing', C:\Users\wang7\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-binding-generator-0.52.0\src\generator.rs:497: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\wang7\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.74.0\build\generator.rs:126:21
  thread '<unnamed>' panicked at 'Failed to run the bindings generator', C:\Users\wang7\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.74.0\build\generator.rs:126:21
  thread '<unnamed>' panicked at 'Failed to run the bindings generator', C:\Users\wang7\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.74.0\build\generator.rs:126:21
  thread 'main' panicked at 'Generator thread panicked: Any { .. }', C:\Users\wang7\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-0.74.0\build\generator.rs:135:28
  === WARNING: 1 diagnostic messages
  ===    D:\sources\opencv43064\opencv\build\include\opencv2/core/cvdef.h:171:10: fatal error: 'limits' file not found
  thread 'main' panicked at '=== Errors during header parsing', C:\Users\wang7\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-binding-generator-0.52.0\src\generator.rs:497:17
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
  === WARNING: 1 diagnostic messages
  ===    D:\sources\opencv43064\opencv\build\include\opencv2/core/cvdef.h:171:10: fatal error: 'limits' file not found
  thread 'main' panicked at '=== Errors during header parsing', C:\Users\wang7\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-binding-generator-0.52.0\src\generator.rs:497:17
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
  === WARNING: 1 diagnostic messages
  ===    D:\sources\opencv43064\opencv\build\include\opencv2/core/cvdef.h:171:10: fatal error: 'limits' file not found
  thread 'main' panicked at '=== Errors during header parsing', C:\Users\wang7\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-binding-generator-0.52.0\src\generator.rs:497:17
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
  === WARNING: 1 diagnostic messages
  ===    D:\sources\opencv43064\opencv\build\include\opencv2/core/cvdef.h:171:10: fatal error: 'limits' file not found
  thread 'main' panicked at '=== Errors during header parsing', C:\Users\wang7\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-binding-generator-0.52.0\src\generator.rs:497:17
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
  === WARNING: 1 diagnostic messages
  ===    D:\sources\opencv43064\opencv\build\include\opencv2/core/cvdef.h:171:10: fatal error: 'limits' file not found
  thread 'main' panicked at '=== Errors during header parsing', C:\Users\wang7\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-binding-generator-0.52.0\src\generator.rs:497:17
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
  === WARNING: 1 diagnostic messages
  ===    D:\sources\opencv43064\opencv\build\include\opencv2/core/cvdef.h:171:10: fatal error: 'limits' file not found
  thread 'main' panicked at '=== Errors during header parsing', C:\Users\wang7\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-binding-generator-0.52.0\src\generator.rs:497:17
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
  === WARNING: 1 diagnostic messages
  ===    D:\sources\opencv43064\opencv\build\include\opencv2/core/cvdef.h:171:10: fatal error: 'limits' file not found
  thread 'main' panicked at '=== Errors during header parsing', C:\Users\wang7\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-binding-generator-0.52.0\src\generator.rs:497:17
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
  === WARNING: 1 diagnostic messages
  ===    D:\sources\opencv43064\opencv\build\include\opencv2/core/cvdef.h:171:10: fatal error: 'limits' file not found
  thread 'main' panicked at '=== Errors during header parsing', C:\Users\wang7\.cargo\registry\src\github.com-1ecc6299db9ec823\opencv-binding-generator-0.52.0\src\generator.rs:497:17
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
@nanchengjiumeng nanchengjiumeng closed this as not planned Won't fix, can't repro, duplicate, stale Nov 29, 2022
@twistedfall
Copy link
Owner

It's a known issue on some Windows machines, I can't reproduce it locally unfortunately. You can find some workarounds in the following bugreport: #322

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

2 participants