Re: [Gimp-developer] webp format?
Message: 1 Date: Tue, 23 Aug 2016 15:26:57 -0400 From: Elle Stone To: gimp-developer-list@gnome.org Subject: Re: [Gimp-developer] webp format? Message-ID: <2b28be7d-55c0-e4c4-1519-d1bef39b4...@ninedegreesbelow.com> Content-Type: text/plain; charset=windows-1252; format=flowed Ben, thanks! I finally got GIMP to compile with webp support. You're welcome and good :) Originally I had installed libwebp in /usr/local, without the above-listed options. But even after enabling the above-listed options and reinstalling, GIMP wouldn't compile - the build would fail when it got to the webp-save code, with the following terminal output: file-webp-save.o: In function `WebPAnimEncoderOptionsInit': /usr/local/include/webp/mux.h:454: undefined reference to `WebPAnimEncoderOptionsInitInternal' file-webp-save.o: In function `save_animation': build/gimp/plug-ins/file-webp/file-webp-save.c:494: undefined reference to `WebPAnimEncoderAdd' build/gimp/plug-ins/file-webp/file-webp-save.c:512: undefined reference to `WebPAnimEncoderAdd' build/gimp/plug-ins/file-webp/file-webp-save.c:514: undefined reference to `WebPAnimEncoderAssemble' build/gimp/plug-ins/file-webp/file-webp-save.c:551: undefined reference to `WebPAnimEncoderDelete' build/gimp/plug-ins/file-webp/file-webp-save.c:516: undefined reference to `WebPAnimEncoderGetError' file-webp-save.o: In function `WebPAnimEncoderNew': /usr/local/include/webp/mux.h:471: undefined reference to `WebPAnimEncoderNewInternal' Uninstalling libwebp from /usr/local and installing it directly in the prefix in which GIMP is built allowed the build to finish, and now GIMP indeed can open and save webp files. Does anyone know why GIMP couldn't find WebPAnimEncoder when libwebp was installed in /usr/local? Maybe I needed to tell GIMP to include /usr/local/lib or some such? Maybe something like this? export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig" I never noticed because my .bashrc includes custom paths set for PATH, PKG_CONFIG_PATH and LD_LIBRARY_PATH not sure why GIMP didn't pick them up. I usually add the custom path prior to appending the variable back on itself though not that it should make much of a difference in most instances unless it was finding another older version prior in the search path. What i usually do: export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH Ben ___ gimp-developer-list mailing list List address:gimp-developer-list@gnome.org List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list List archives: https://mail.gnome.org/archives/gimp-developer-list
Re: [Gimp-developer] webp format?
Thanks, that did the trick. I built into /usr/local and I can now open webp format images. The path in this debian based system includes /usr/local/bin. OWEN > Sent: Tuesday, August 23, 2016 at 3:13 AM > From: Ben > To: gimp-developer-list@gnome.org > Subject: Re: [Gimp-developer] webp format? > > Hi Elle, > > Yes all the libs are required to make webp work and animation on works > properly from 0.5.1+ and i used this to test builds for the plugin: > > ./configure --enable-libwebpmux --enable-libwebpdemux > --enable-libwebpdecoder --enable-libwebpextras > > Only the first three should be really required. > > Ben > > > On 08/22/2016 08:00 AM, gimp-developer-list-requ...@gnome.org wrote: > > > >> libwebp-0.5.1: > >> > >> WebP Configuration Summary > >> -- > >> > >> Shared libraries: yes > >> Static libraries: yes > >> Threading support: yes > >> libwebp: yes > >> libwebpdecoder: no > >> libwebpdemux: no > >> libwebpmux: no > >> libwebpextras: no > >> > >> > > Hmm, there is the problem: > > 0050-INSTALL-libwebp-must-be-built-with-enable-libwebpmux.patch > > > > For whatever reason libwebp wasn't built with webpmux. Perhaps that's an > > option that can be configured when installing libwebp. > > > > ___ > gimp-developer-list mailing list > List address:gimp-developer-list@gnome.org > List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list > List archives: https://mail.gnome.org/archives/gimp-developer-list > ___ gimp-developer-list mailing list List address:gimp-developer-list@gnome.org List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list List archives: https://mail.gnome.org/archives/gimp-developer-list
Re: [Gimp-developer] webp format?
On 08/22/2016 01:13 PM, Ben wrote: Hi Elle, Yes all the libs are required to make webp work and animation on works properly from 0.5.1+ and i used this to test builds for the plugin: ./configure --enable-libwebpmux --enable-libwebpdemux --enable-libwebpdecoder --enable-libwebpextras Only the first three should be really required. Ben Ben, thanks! I finally got GIMP to compile with webp support. Originally I had installed libwebp in /usr/local, without the above-listed options. But even after enabling the above-listed options and reinstalling, GIMP wouldn't compile - the build would fail when it got to the webp-save code, with the following terminal output: file-webp-save.o: In function `WebPAnimEncoderOptionsInit': /usr/local/include/webp/mux.h:454: undefined reference to `WebPAnimEncoderOptionsInitInternal' file-webp-save.o: In function `save_animation': build/gimp/plug-ins/file-webp/file-webp-save.c:494: undefined reference to `WebPAnimEncoderAdd' build/gimp/plug-ins/file-webp/file-webp-save.c:512: undefined reference to `WebPAnimEncoderAdd' build/gimp/plug-ins/file-webp/file-webp-save.c:514: undefined reference to `WebPAnimEncoderAssemble' build/gimp/plug-ins/file-webp/file-webp-save.c:551: undefined reference to `WebPAnimEncoderDelete' build/gimp/plug-ins/file-webp/file-webp-save.c:516: undefined reference to `WebPAnimEncoderGetError' file-webp-save.o: In function `WebPAnimEncoderNew': /usr/local/include/webp/mux.h:471: undefined reference to `WebPAnimEncoderNewInternal' Uninstalling libwebp from /usr/local and installing it directly in the prefix in which GIMP is built allowed the build to finish, and now GIMP indeed can open and save webp files. Does anyone know why GIMP couldn't find WebPAnimEncoder when libwebp was installed in /usr/local? Maybe I needed to tell GIMP to include /usr/local/lib or some such? Maybe something like this? export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig" Best, Elle ___ gimp-developer-list mailing list List address:gimp-developer-list@gnome.org List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list List archives: https://mail.gnome.org/archives/gimp-developer-list
Re: [Gimp-developer] webp format?
Hi Elle, Yes all the libs are required to make webp work and animation on works properly from 0.5.1+ and i used this to test builds for the plugin: ./configure --enable-libwebpmux --enable-libwebpdemux --enable-libwebpdecoder --enable-libwebpextras Only the first three should be really required. Ben On 08/22/2016 08:00 AM, gimp-developer-list-requ...@gnome.org wrote: libwebp-0.5.1: WebP Configuration Summary -- Shared libraries: yes Static libraries: yes Threading support: yes libwebp: yes libwebpdecoder: no libwebpdemux: no libwebpmux: no libwebpextras: no Hmm, there is the problem: 0050-INSTALL-libwebp-must-be-built-with-enable-libwebpmux.patch For whatever reason libwebp wasn't built with webpmux. Perhaps that's an option that can be configured when installing libwebp. ___ gimp-developer-list mailing list List address:gimp-developer-list@gnome.org List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list List archives: https://mail.gnome.org/archives/gimp-developer-list
Re: [Gimp-developer] webp format?
On 08/21/2016 04:15 PM, Elle Stone wrote: In case it's relevant, here's the configuration summary from compiling libwebp-0.5.1: WebP Configuration Summary -- Shared libraries: yes Static libraries: yes Threading support: yes libwebp: yes libwebpdecoder: no libwebpdemux: no libwebpmux: no libwebpextras: no Tools: cwebp : yes Input format support JPEG : yes PNG : yes TIFF : yes WIC : no dwebp : yes Output format support = PNG : yes WIC : no GIF support : yes anim_diff : no gif2webp: no webpmux : no vwebp : no Hmm, there is the problem: 0050-INSTALL-libwebp-must-be-built-with-enable-libwebpmux.patch For whatever reason libwebp wasn't built with webpmux. Perhaps that's an option that can be configured when installing libwebp. Best, Elle ___ gimp-developer-list mailing list List address:gimp-developer-list@gnome.org List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list List archives: https://mail.gnome.org/archives/gimp-developer-list
Re: [Gimp-developer] webp format?
Elle, Works fine here on my Mac McGimp latest build as available on my website. I got the sample images from https://developers.google.com/speed/webp/gallery1 Thanks, Partha On Sun, Aug 21, 2016 at 4:15 PM, Elle Stone wrote: > On 08/21/2016 06:01 AM, Owen Cook wrote: > >> I noticed in the latest git a lot of stuff which suggests that gimp >> should open webp, and export to webp. >> >> Is this correct, and if so how do you activate it. Currently I get >> "Unknown file type" on opening, and webp is not in the list of export >> formats. >> >> > On a possibly related note, libwebp-0.4.2 is installed on my system > (Gentoo Linux), but when configuring GIMP this message is printed to the > terminal: WebP: no (WebP not found) > > Thinking 0.4.2 might be too old, I downloaded libwebp-0.5.1 from > https://developers.google.com/speed/webp/docs/compiling#building, and > installed it in /usr/local, and then re-installed babl/gegl/libmypaint/gimp > starting from "./autogen.sh". But GIMP still isn't finding WebP. GEGL finds > WebP, but GIMP doesn't. > > Is there some other library that might be required before GIMP can find > WebP on the system? Or a magic command that says "look here"? > > Best, > Elle > > In case it's relevant, here's the configuration summary from compiling > libwebp-0.5.1: > > WebP Configuration Summary > -- > > Shared libraries: yes > Static libraries: yes > Threading support: yes > libwebp: yes > libwebpdecoder: no > libwebpdemux: no > libwebpmux: no > libwebpextras: no > > Tools: > cwebp : yes >Input format support > >JPEG : yes >PNG : yes >TIFF : yes >WIC : no > dwebp : yes >Output format support >= >PNG : yes >WIC : no > GIF support : yes > anim_diff : no > gif2webp: no > webpmux : no > vwebp : no > > ___ > gimp-developer-list mailing list > List address:gimp-developer-list@gnome.org > List membership: https://mail.gnome.org/mailman > /listinfo/gimp-developer-list > List archives: https://mail.gnome.org/archives/gimp-developer-list > ___ gimp-developer-list mailing list List address:gimp-developer-list@gnome.org List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list List archives: https://mail.gnome.org/archives/gimp-developer-list
Re: [Gimp-developer] webp format?
On 08/21/2016 06:01 AM, Owen Cook wrote: I noticed in the latest git a lot of stuff which suggests that gimp should open webp, and export to webp. Is this correct, and if so how do you activate it. Currently I get "Unknown file type" on opening, and webp is not in the list of export formats. On a possibly related note, libwebp-0.4.2 is installed on my system (Gentoo Linux), but when configuring GIMP this message is printed to the terminal: WebP: no (WebP not found) Thinking 0.4.2 might be too old, I downloaded libwebp-0.5.1 from https://developers.google.com/speed/webp/docs/compiling#building, and installed it in /usr/local, and then re-installed babl/gegl/libmypaint/gimp starting from "./autogen.sh". But GIMP still isn't finding WebP. GEGL finds WebP, but GIMP doesn't. Is there some other library that might be required before GIMP can find WebP on the system? Or a magic command that says "look here"? Best, Elle In case it's relevant, here's the configuration summary from compiling libwebp-0.5.1: WebP Configuration Summary -- Shared libraries: yes Static libraries: yes Threading support: yes libwebp: yes libwebpdecoder: no libwebpdemux: no libwebpmux: no libwebpextras: no Tools: cwebp : yes Input format support JPEG : yes PNG : yes TIFF : yes WIC : no dwebp : yes Output format support = PNG : yes WIC : no GIF support : yes anim_diff : no gif2webp: no webpmux : no vwebp : no ___ gimp-developer-list mailing list List address:gimp-developer-list@gnome.org List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list List archives: https://mail.gnome.org/archives/gimp-developer-list