Re: updating libwebp

Bob Friesenhahn <[email protected]>
Newsgroups gmane.comp.video.graphicsmagick.help
Message-ID <[email protected]>
On Fri, 20 Jul 2018, Shane D. Bishop wrote:

> Hi all, I have a question regarding the WebP support in GM, specifically as to whether it is possible to get my existing copy of GM to use a newer build of libwebp.
> I have a Debian 9 box with the stock versions of php-gmagick, libgraphicsmagick, and libwebp, 2.0.4-rc1, 1.3.25-8, and 0.5.2-1 respectively.
> Alongside that, I also have version 0.6.1 of libwebp compiled from source, soon to be updated to version 1.0.0.
>
> The newer version of libwebp is installed in /usr/local/lib/ whereas the system-installed one is in /usr/lib/x86_64-linux-gnu/
>
> If I install/copy the newer libraries for libwebp into 
> /usr/lib/x86_64-linux-gnu/ will GM automatically use the newer 
> version of libwebp?

You do not necessarily need to copy the library into a system 
directory.  The directories used depend on the 'ldconfig' 
configuration.  Some systems look in /usr/local/lib/ by default as 
well.

The 1.0.0 version is claimed to be ABI compatible with 0.6.1/0.6.0 so 
it should be a drop-in upgrade for 0.6.0.  However 0.6.0 is not ABI 
compatible with earlier versions so it is not a drop-in upgrade for 
earlier versions.

> I suspect the best solution long-term is to compile GM from scratch, 
> but I'm not quite ready to make that jump at the moment, so I'm 
> hoping that a simple update of the libraries is sufficient here.

It is not difficult to compile GM from scratch on a Debian system. 
You just need to add various -dev packages.

Bob
-- 
Bob Friesenhahn
[email protected], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.