-
-
Notifications
You must be signed in to change notification settings - Fork 145
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
Build fails on M2 Mac with brew opencv and 0.77.0 #428
Comments
and M1 pro |
@wangm23456 are you seeing the same error message that I reported above? |
yes, both 0.77 and 0.78 |
May be here: opencv-rust/build/generator.rs Lines 90 to 93 in 557ae34
|
"bindings-generator" is actually at Line 35 in 5aade51
HOST_TRIPLE.as_ref() may be None |
Thanks for the followup! Let me investigate this asap. Although the error you're getting is different from the one from the topic starter. |
I am not able to build. but the build fails. I am on macbook air M2 |
Can you please attach the output of |
Forgive me if I have done something stupid but here Is the output of the
|
Can you show the contents of the |
Contents of the dir. we are connected via two difference threads.
|
This issue has been fixed on macOSI've also shared my updated zsh file just use that. It is general.Visit this thread : #493 |
I've created a gist about how to set it up properly step by stephttps://gist.github.com/aaqidmasoodi/da698ab103e4fbb180ed965988bea734 |
cargo-build-output.txt
Anyone have an idea about what I'm doing wrong?
Here's a snippet from compile output file:
[opencv 0.77.0] === Compiling opencv-binding-generator v0.56.0
[opencv 0.77.0] === Finished release [optimized] target(s) in 9.21s
[opencv 0.77.0] === Running: "/Users/hans/Rust/vision/target/debug/build/opencv-f393635b647aecd4/out/release/binding-generator" "/usr/local/opt/opencv/include/opencv4" "/Users/hans/.cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.77.0/src_cpp" "/Users/hans/Rust/vision/target/debug/build/opencv-f393635b647aecd4/out" "alphamat" ""
[opencv 0.77.0] === Running: "/Users/hans/Rust/vision/target/debug/build/opencv-f393635b647aecd4/out/release/binding-generator" "/usr/local/opt/opencv/include/opencv4" "/Users/hans/.cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.77.0/src_cpp" "/Users/hans/Rust/vision/target/debug/build/opencv-f393635b647aecd4/out" "aruco" ""
[opencv 0.77.0] === Running: "/Users/hans/Rust/vision/target/debug/build/opencv-f393635b647aecd4/out/release/binding-generator" "/usr/local/opt/opencv/include/opencv4" "/Users/hans/.cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.77.0/src_cpp" "/Users/hans/Rust/vision/target/debug/build/opencv-f393635b647aecd4/out" "barcode" ""
[opencv 0.77.0] === Running: "/Users/hans/Rust/vision/target/debug/build/opencv-f393635b647aecd4/out/release/binding-generator" "/usr/local/opt/opencv/include/opencv4" "/Users/hans/.cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.77.0/src_cpp" "/Users/hans/Rust/vision/target/debug/build/opencv-f393635b647aecd4/out" "bgsegm" ""
[opencv 0.77.0] === Running: "/Users/hans/Rust/vision/target/debug/build/opencv-f393635b647aecd4/out/release/binding-generator" "/usr/local/opt/opencv/include/opencv4" "/Users/hans/.cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.77.0/src_cpp" "/Users/hans/Rust/vision/target/debug/build/opencv-f393635b647aecd4/out" "bioinspired" ""
[opencv 0.77.0] === Running: "/Users/hans/Rust/vision/target/debug/build/opencv-f393635b647aecd4/out/release/binding-generator" "/usr/local/opt/opencv/include/opencv4" "/Users/hans/.cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.77.0/src_cpp" "/Users/hans/Rust/vision/target/debug/build/opencv-f393635b647aecd4/out" "ccalib" ""
[opencv 0.77.0] === Running: "/Users/hans/Rust/vision/target/debug/build/opencv-f393635b647aecd4/out/release/binding-generator" "/usr/local/opt/opencv/include/opencv4" "/Users/hans/.cargo/registry/src/github.com-1ecc6299db9ec823/opencv-0.77.0/src_cpp" "/Users/hans/Rust/vision/target/debug/build/opencv-f393635b647aecd4/out" "calib3d" ""
[opencv 0.77.0] === WARNING: 5 diagnostic messages
[opencv 0.77.0] === /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/chrono:1583:12: error: reference to unresolved using declaration
[opencv 0.77.0] === /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/chrono:1584:35: error: reference to unresolved using declaration
[opencv 0.77.0] === /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/chrono:2951:10: error: reference to unresolved using declaration
[opencv 0.77.0] === /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/chrono:2958:33: error: reference to unresolved using declaration
[opencv 0.77.0] === /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__threading_support:277:28: error: incomplete result type '__libcpp_timespec_t' (aka 'timespec') in function definition
[opencv 0.77.0] thread 'main' panicked at '=== Errors during header parsing', /Users/hans/.cargo/registry/src/github.com-1ecc6299db9ec823/opencv-binding-generator-0.56.0/src/generator.rs:512:17
The text was updated successfully, but these errors were encountered: