rust-qt / ritual

Use C++ libraries from Rust
Apache License 2.0
1.22k stars 49 forks source link

libclang version may be the problem, or the path problem #75

Closed tauruswang closed 5 years ago

tauruswang commented 5 years ago

note: #[warn(unused_mut)] on by default

Finished release [optimized] target(s) in 2m 43s
 Running `target/release/qt_generator --help`

dyld: Library not loaded: @rpath/libclang.dylib Referenced from: /Users/jerryw/OpenSourceProjects/cpp_to_rust/qt_generator/qt_generator/target/release/qt_generator Reason: image not found Abort trap: 6

maybe is the version not match the Mac OS

tauruswang commented 5 years ago

JerryWs-MBP:qt_generator jerryw$ export DYLD_LIBRARY_PATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/ it works !!!!