olxgroup-oss / libvips-rust-bindings

Rust bindings for libvips
MIT License
96 stars 39 forks source link

note: ld: library 'vips' not found #107

Open Codename-404 opened 5 months ago

Codename-404 commented 5 months ago

Hi, when I try to use the package and build the project, it says, note: ld: library 'vips' not found clang: error: linker command failed with exit code 1 (use -v to see invocation)

Can you please let me know if there are any additional setup required? Looking forward to hearing from you ~

menzil commented 4 months ago

if you are using ubuntu, test isntall libvips-dev plz. sudo apt-get install libvips-dev

zignis commented 3 months ago

facing the same issue, using macos sonoma, libvips 8.15.2 installed via homebrew.

Edit:

Fixed by adding library path to profile:

echo 'export LIBRARY_PATH=$LIBRARY_PATH:/opt/homebrew/opt/vips/lib/' >> ~/.zshrc