This is the error I’m getting
Compiling opencv v0.91.3
error: failed to run custom build command for `opencv v0.91.3`
Caused by:
process didn't exit successfully: `/Users/baguma/Desktop/vkrust/target/debug/build/opencv-24a3479338500f97/build-script-build` (signal: 6, SIGABRT: process abort signal)
--- stderr
dyld[16064]: Library not loaded: '@rpath/libclang.dylib'
Referenced from: '/Users/baguma/Desktop/vkrust/target/debug/build/opencv-24a3479338500f97/build-script-build'
Reason: tried: '/Users/baguma/Desktop/vkrust/target/debug/deps/libclang.dylib' (no such file), '/Users/baguma/Desktop/vkrust/target/debug/libclang.dylib' (no such file), '/Users/baguma/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libclang.dylib' (no such file), '/Users/baguma/.rustup/toolchains/stable-x86_64-apple-darwin/lib/libclang.dylib' (no such file), '/Users/baguma/lib/libclang.dylib' (no such file), '/usr/local/lib/libclang.dylib' (no such file), '/usr/lib/libclang.dylib' (no such file)
I done understand the meaning of all the gibberish. I installed opencv on my system using home-brew but I guess I needed to do a specific installation for rust so I went to the crates.io
and pasted the opencv version in my cargo.toml
Then tried to run cargo build, all the other packages built successfully except this one.