Closed kyakuno closed 4 months ago
opencvを0.76.1から0.91.3にしてみる。 https://github.com/twistedfall/opencv-rust
改善しなかったので、rustをupdateすると、下記のエラー。
error: failed to run custom build command for clang-sys v1.7.0
brew install llvmが必要そう。
下記と同じでopencv 0.8.0がいるみたい。 https://github.com/axinc-ai/ailia_yolox_rust/issues/1 https://github.com/twistedfall/opencv-rust/issues/462
llvmを入れても、 error: failed to run custom build command for clang-sys v1.7.0 は改善せず。
llvmを入れて、opencv 0.80.0にすると動いた。
っと思ったら、libcでエラー。
=== Building binding-generator binary:
=== Compiling libc v0.2.139
=== Compiling glob v0.3.0
=== Compiling memchr v2.5.0
=== error: failed to run custom build command for `libc v0.2.139`
===
=== Caused by:
=== process didn't exit successfully: `/Users/kyakuno/Desktop/ailia/ailia-models-rust/detic/target/debug/build/opencv-db232869378350f7/out/release/build/libc-8f3459b16eeb531b/build-script-build` (signal: 9, SIGKILL: kill)
=== warning: build failed, waiting for other jobs to finish...
Error: "Failed to build the bindings generator"
warning: build failed, waiting for other jobs to finish...
昔ビルドできていた、ailia_yolox_rustでも同じエラーになる。
opencv v0.91.3だと下記のエラーになる。
a libclang
shared library is not loaded on this thread
これは下記のPoint.8である。 https://github.com/twistedfall/opencv-rust/blob/master/TROUBLESHOOTING.md
opencvのdependenciesのfeaturesにclang-runtimeを入れろと書いている。 opencv = {version = "*", features = [ "clang-runtime"]} https://qiita.com/higumachan725/items/25198370ce6b8603356e
opencvをv0.91.3にアップデートして、clang-runtimeを入れたらailia-sysはビルドできた。
アプリもビルドできた。
OpenCVのビルドエラーが発生する。