
Compilation du plug-in WebP pour Gimp 32 bits Win avec DLL indpendante.

Tlcharger les sources de la bibliothque  partir de ce lien :
https://webp.googlecode.com/files/libwebp-0.3.1.tar.gz

Tlcharger les sources  partir de la page   http://registry.gimp.org/node/25874    partir de ce lien :
http://registry.gimp.org/files/gimp-webp_0.1.1.tar.gz

Faire une double extraction de ces 2 sources dans le rpertoire C:\petit-msys-mingw-gimp28

Dcompresser l'archive "Makefile_plug-in_WebP_Gimp_32-bit.zip".
Copier le fichier Makefile contenu dans l'archive et le coller dans C:\petit-msys-mingw-gimp28\gimp-webp_0.1.1\src

Ouvrir le terminal en cliquant sur  "C:\petit-msys-mingw-gimp28\start_MSYS.bat"
Taper chaque ligne de commande qui suit avec appui de la touche entre  chaque fin de ligne :

export CC=/w32/bin/mingw32-gcc.exe
export CFLAGS="-I/w32/include -I/mingw/include -I/python/include -pipe -O3 -mms-bitfields -march=i686 -s"
export LDFLAGS="-L/w32/lib -L/mingw/lib -mwindows -lpthread"
cd /env/libwebp-0.3.1
./autogen.sh --prefix=/mingw
./configure --prefix=/mingw
make
make install
cd /env/gimp-webp_0.1.1/src
make
exit

Le plug-in "file-webp.exe" est dans le rpertoire "C:\petit-msys-mingw-gimp28\gimp-webp_0.1.1\src".
Copier la DLL "C:\petit-msys-mingw-gimp28\base\c\bin\libwebp-4.dll" dans le rpertoire "C:\petit-msys-mingw-gimp28\gimp-webp_0.1.1\src"
Declarer ce rpertoire "C:\petit-msys-mingw-gimp28\gimp-webp_0.1.1\src" dans les prfrences de Gimp 2.8
Vous pouvez ouvrir et sauvegarder des images au format WebP ( 2 images sont dans l'archive Makefile_plug-in_WebP_Gimp_32-bit.zip ).


_______________________________________________


Compiling the plug-in WebP for Gimp 32-bit Win with a separate DLL.

Download the sources of libwebp library from this link :
https://webp.googlecode.com/files/libwebp-0.3.1.tar.gz

Download the source plug-in from this link :
http://registry.gimp.org/files/gimp-webp_0.1.1.tar.gz

Do a double extraction of these two sources in the directory "C:\petit-msys-mingw-gimp28"

Unzip the archive "Makefile_plug-in_WebP_Gimp_32-bit.zip".
Copy the "Makefile" file in the archive and paste it into "C:\petit-msys-mingw-gimp28\gimp-webp_0.1.1\src"

Open the terminal by clicking on "C:\petit-msys-mingw-gimp28\start_MSYS.bat"
Type the following lines of commands with "Enter" key at the end of each line :

export CC=/w32/bin/mingw32-gcc.exe
export CFLAGS="-I/w32/include -I/mingw/include -I/python/include -pipe -O3 -mms-bitfields -march=i686 -s"
export LDFLAGS="-L/w32/lib -L/mingw/lib -mwindows -lpthread"
cd /env/libwebp-0.3.1
./autogen.sh --prefix=/mingw
./configure --prefix=/mingw
make
make install
cd /env/gimp-webp_0.1.1/src
make
exit

The plugin "file-webp.exe" is available in the directory "C:\petit-msys-mingw-gimp28\gimp-webp_0.1.1\src".
Copy the DLL "C:\petit-msys-mingw-gimp28\base\c\bin\libwebp-4.dll" in "C:\petit-msys-mingw-gimp28\gimp-webp_0.1.1\src"
Declare that directory "C:\petit-msys-mingw-gimp28\gimp-webp_0.1.1\src" in the preferences of Gimp 2.8
You can open and save images to the WebP format ( 2 images are in the archive "Makefile_plug-in_WebP_Gimp_32-bit.zip" ).
























