shekohex / flutterust

Flutter + Rust = :heart:
Apache License 2.0
699 stars 56 forks source link

dyld: Library not loaded: @rpath/libclang.dylib #9

Closed hadilq closed 4 years ago

hadilq commented 4 years ago

I had the following problem after running cargo make.

error: failed to run custom build command for `adder-ffi v0.1.0 (flutterust/native/adder-ffi)`

Caused by:
  process didn't exit successfully: `flutterust/target/debug/build/adder-ffi-b63e74a431e464b0/build-script-build` (signal: 6, SIGABRT: process abort signal)
  --- stderr
  dyld: Library not loaded: @rpath/libclang.dylib
    Referenced from: flutterust/target/debug/build/adder-ffi-b63e74a431e464b0/build-script-build
    Reason: image not found

To solve it I had to install llvm on my mac via brew install llvm, so it would be great to add this requirement in the README.md file.

shekohex commented 4 years ago

Thanks for reporting that, and yes we use clang to convert the C Header file into dart code.

I will update the README.