Closed calthejuggler closed 2 months ago
clang.dylib
is not required in runtime, only during building phase. It looks like it can't dynamically link to OpenCV itself. Usually homebrew is taking care of this, but in your case it's not happening for some reason. Try running otool -L ./target/release/opencv-test
to make sure it links to OpenCV and then try setting up the DYLD_LIBRARY_PATH
/DYLD_FALLBACK_LIBRARY_PATH
to point to the directory where OpenCV's *.dylib
s are located.
Description
Hello there 🙂
I'm having an issue where I'm able to build the opencv crate, but running the binary fails with the following output:
cargo run
gives the same output.cargo run --verbose
combines the two outputs above.I installed opencv with Homebrew and pointed the DYLD_FALLBACK variable to the
libclang.dylib
directory (Xcode version).I'm almost certain this is caused by the Public Beta version of MacOS that I'm on, but I thought I'd post it here to see if anybody else has had the same experience (or some ideas for how to get past it 😅).
Update
Tried the extra steps from this PR, but unfortunately, the same error occurs.
Details
Operating System: MacOS Sonoma 14.3 (Public Beta) Installed OpenCV With:
brew install opencv
OpenCV Version: 4.9.0 (This was harder to find than I thought it would be 😅) rustc Version: 1.75.0 (82e1608df 2023-12-21) Build Command Output:After
cargo clean
: