kaganege / rust-opencv-yolov8

0 stars 0 forks source link

dyld[23676]: Library not loaded: @rpath/libclang.dylib #1

Closed phial3 closed 4 days ago

phial3 commented 3 weeks ago

cargo run error:

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

Caused by:
  process didn't exit successfully: `/Users/admin/code/github.com/rust-opencv-yolov8/target/debug/build/opencv-75a6e656fcb9db6a/build-script-build` (signal: 6, SIGABRT: process abort signal)
  --- stderr
  dyld[23676]: Library not loaded: @rpath/libclang.dylib
    Referenced from: <59C99DBD-EBFA-3977-9FCE-78F35716A51E> /Users/admin/code/github.com/rust-opencv-yolov8/target/debug/build/opencv-75a6e656fcb9db6a/build-script-build
    Reason: tried: '/Users/admin/code/github.com/rust-opencv-yolov8/target/debug/deps/libclang.dylib' (no such file), '/Users/admin/code/github.com/rust-opencv-yolov8/target/debug/libclang.dylib' (no such file), '/Users/admin/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libclang.dylib' (no such file), '/Users/admin/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/libclang.dylib' (no such file), '/Users/admin/lib/libclang.dylib' (no such file), '/usr/local/lib/libclang.dylib' (no such file), '/usr/lib/libclang.dylib' (no such file, not in dyld cache)
kaganege commented 3 weeks ago

Which operating system do you use?

You can have a look at the opencv-rust TROUBLESHOOTING guide.

phial3 commented 3 weeks ago

Which operating system do you use?

You can have a look at the opencv-rust TROUBLESHOOTING guide.

Mac Apple M2

kaganege commented 2 weeks ago

Have you followed this instruction?