-
Hi, I'm attempting to use libvips from C, and it's been going great so far! Thank you for such an easy-to-use API. 🙏 One small issue I've hit is attempting to save GIFs, whereupon I get the error |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Hi @Jacherr, That's strange. Maybe you have two versions of libvips installed, with an older version being picked up by your program at runtime? You can use
Verify which libvips you program is compiling against with:
And finally see which libvips you are picking up at runtime with |
Beta Was this translation helpful? Give feedback.
-
It sounds like you installed with The files in I'd try to clean up with:
There's a chance you'll have damaged your install too badly to fix and you'll have to reinstall the OS :( Hopefully you'll be lucky. When installing from source, there are two usual prefixes to use:
When installing packages from source, there are three things you need to adjust or check in your environment:
I have this in my export VIPSHOME=/home/john/vips
export PATH="$VIPSHOME/bin:$PATH"
export PKG_CONFIG_PATH="$VIPSHOME/lib/pkgconfig:$PKG_CONFIG_PATH"
export LD_LIBRARY_PATH="$VIPSHOME/lib" |
Beta Was this translation helpful? Give feedback.
It sounds like you installed with
--prefix /usr
, which is usually a mistake, though it depends a bit on your platform.The files in
/usr
are managed for you by your package manager. If you start adding and removing files as well, it'll get tangled up and chaos will follow. Package installs will start to fail, updates will not complete successfully, mysterious crashes will begin.I'd try to clean up with:
meson setup build --prefix ~/vips
, then have a look though the~/vips
directory and see what files it created./usr/lib
etc. an…