It is currently Sun Jun 21, 2026 11:02 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 54 posts ]  Go to page Previous  1, 2, 3
Author Message
 Post subject: Re: Small Windows compilation environment for Gimp 2.8 32-bit
PostPosted: Sat Aug 24, 2013 5:43 pm  (#41) 
Offline
GimpChat Member

Joined: May 09, 2012
Posts: 914
@Rod

Your solution is good, the main thing is to have an environment of "msys" type with a good setup.

*****

I advanced on the new version of the environment.
With the compiler "i686-w64-mingw32-gcc.exe" I compiles fine GIT versions BABL and GEGL.

I have a problem with the GIT version of Gimp with "gdbus-codegen" file :
File "c:/petit-msys-mingw-gimp28/base/c/bin/gdbus-codegen", line 39, in <module> from codegen import codegen_main
ImportError: cannot import name codegen_main


I think there was a bug. I'll try to find out. If anyone has a solution I would be happy to know this solution :)


Tomorrow I will test on a O.S. 32-bit with "mingw32-gcc.exe".
If compiling GEGL and BABL is good in the 32-bit environment (Win 7 32-bit) I put in download version 4 of the small environment.


Top
 Post subject: Re: Small Windows compilation environment for Gimp 2.8 32-bit
PostPosted: Sat Aug 24, 2013 11:33 pm  (#42) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16038
samj wrote:
@Rod

Your solution is good, the main thing is to have an environment of "msys" type with a good setup.

*****

I advanced on the new version of the environment.
With the compiler "i686-w64-mingw32-gcc.exe" I compiles fine GIT versions BABL and GEGL.

I have a problem with the GIT version of Gimp with "gdbus-codegen" file :
File "c:/petit-msys-mingw-gimp28/base/c/bin/gdbus-codegen", line 39, in <module> from codegen import codegen_main
ImportError: cannot import name codegen_main


I think there was a bug. I'll try to find out. If anyone has a solution I would be happy to know this solution :)


Tomorrow I will test on a O.S. 32-bit with "mingw32-gcc.exe".
If compiling GEGL and BABL is good in the 32-bit environment (Win 7 32-bit) I put in download version 4 of the small environment.

Perhaps you need these? :)
Image

_________________
Image


Top
 Post subject: Re: Small Windows compilation environment for Gimp 2.8 32-bit
PostPosted: Sun Aug 25, 2013 4:33 pm  (#43) 
Offline
GimpChat Member

Joined: May 09, 2012
Posts: 914
Thank you Rod for your search :tyspin

My trials continue because I still have some small problems.

Things that work well :
- The two compilers.
- Compiling BABL and GEGL (stable releases) and Gimp 2.8.6 with the latest Glib.

Small problems :
- Compiling GEGL (beta version) is a problem with the latest Glib.
- Compiling Gimp 2.9.1 remains to be seen.

For now I have to find a good version of Glib for my tests with the beta versions.

I will continue my tests tomorrow.


Top
 Post subject: Re: Small Windows compilation environment for Gimp 2.8 32-bit
PostPosted: Sun Aug 25, 2013 7:06 pm  (#44) 
Offline
GimpChat Member

Joined: May 09, 2012
Posts: 914
I could compile the beta version of GEGL (gegl-0.3) from GIT with glib-2.37.6
I modified a file automatically generated after the "autogen.sh" phase : \gegl\gegl\gegl-enums.c
I have attached the corrected file in the archive "gegl-enums.zip"
I continue my tests.


Attachments:
gegl-enums.zip [1.18 KiB]
Downloaded 176 times
Top
 Post subject: Re: Small Windows compilation environment for Gimp 2.8 32-bit
PostPosted: Sun Aug 25, 2013 11:09 pm  (#45) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16038
samj wrote:
I could compile the beta version of GEGL (gegl-0.3) from GIT with glib-2.37.6
I modified a file automatically generated after the "autogen.sh" phase : \gegl\gegl\gegl-enums.c
I have attached the corrected file in the archive "gegl-enums.zip"
I continue my tests.


Thanks Sam. I haven't tried to compile Gimp-2.9 yet. :lol I will wait to see how things go for you. :)

_________________
Image


Top
 Post subject: Re: Small Windows compilation environment for Gimp 2.8 32-bit
PostPosted: Tue Aug 27, 2013 6:47 am  (#46) 
Offline
GimpChat Member

Joined: May 09, 2012
Posts: 914
Bonjour,

Version 4 of the environment is achieved.
Download link:
http://www.aljacom.com/~gmic/petit-msys-mingw-gimp28.7z
( 301 710 942 bytes) / MD5 b323fca08bd315a5cce6d0b009aae5f6
You need to unpack "petit-msys-mingw-gimp28.7z" in C:\
The instructions are in the file : "Readme_petit-msys-mingw-gimp28.txt".

This new version allows you to retrieve program sources by GIT and start the compilation using "autogen".

Remarks:
The volume is about 1700Mb unzipped.
I have not been able to compile Gimp 2.9 (problems from a serie of Python scripts from glib).
I have kept glib Version 2.36.3

*****

GIT : Here is an example to compile the beta version of BABL
This example can be adapted to compile other sources from GIT.
You can set environment variables.
Configuration options can be added to "autogen" (--disable-docs , --enable-introspection=no , ... ).

- Open Terminal ( start_MSYS.bat )
mkdir /env/foo
cd /env/foo
git clone git://git.gnome.org/babl
export CC=/w32/bin/mingw32-gcc.exe
cd /env/foo/babl
./autogen.sh --prefix=/env/foo/
make
make install
export PKG_CONFIG_PATH=/env/foo/lib/pkgconfig:$PKG_CONFIG_PATH
cd /env/foo
ls

...


Top
 Post subject: Re: Small Windows compilation environment for Gimp 2.8 32-bit
PostPosted: Tue Aug 27, 2013 10:49 am  (#47) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16038
Thank you Sam this is great news! :)
I am going to just go ahead and update mine also. I am saving the OLD version just in case.

_________________
Image


Top
 Post subject: Re: Small Windows compilation environment for Gimp 2.8 32-bit
PostPosted: Tue Aug 27, 2013 11:17 am  (#48) 
Offline
GimpChat Member

Joined: May 09, 2012
Posts: 914
:tyspin Rod

I am saving the OLD version just in case.
The old version 3 is still available from this link : http://www.aljacom.com/~gmic/petit-msys-mingw-gimp28(v3).7z


Top
 Post subject: Re: Small Windows compilation environment for Gimp 2.8 32-bit
PostPosted: Tue Aug 27, 2013 12:31 pm  (#49) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16038
Windows - Vista - 32 bit
Compiling latest BABL, GEGL, GIMP GIT versions now. I will let you know about my progress.
BABL and GEGL compiled and linked nicely. Autogen.sh setup is working great!

So far so good Sam.
I love the way you set this environment up for autogen files. :)

_________________
Image


Top
 Post subject: Re: Small Windows compilation environment for Gimp 2.8 32-bit
PostPosted: Tue Aug 27, 2013 3:09 pm  (#50) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16038
Sam i am having a problem with pygtk for adding python to the GIMP build.

_________________
Image


Top
 Post subject: Re: Small Windows compilation environment for Gimp 2.8 32-bit
PostPosted: Tue Aug 27, 2013 5:59 pm  (#51) 
Offline
GimpChat Member

Joined: May 09, 2012
Posts: 914
@ Rod
I'm not bored with all that is Python. It's too complicated for my little brain :oops:
You can compile Gimp with the option --disable-python
When the build is complete you can add Python.
This is what is done on Gimp (installed on the small environment).


Top
 Post subject: Re: Small Windows compilation environment for Gimp 2.8 32-bit
PostPosted: Tue Aug 27, 2013 11:54 pm  (#52) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16038
samj wrote:
@ Rod
I'm not bored with all that is Python. It's too complicated for my little brain :oops:
You can compile Gimp with the option --disable-python
When the build is complete you can add Python.
This is what is done on Gimp (installed on the small environment).


:lol Okay Sam i get you. I will add it later - been there done that as they say. :) :bigthup

_________________
Image


Top
 Post subject: Re: Small Windows compilation environment for Gimp 2.8 32-bit
PostPosted: Thu Aug 29, 2013 7:20 am  (#53) 
Offline
GimpChat Member

Joined: May 09, 2012
Posts: 914
Bonjour

Here 2 methods to compile the plug-in "Deskew" created by Karl Chen for Gimp 32-bit Win.
These two methods will work on the version of Gimp 64/32bits SourceForge, Partha 32bit, ...

You must use version 4 (or more) of the small environment.

Changes plugin by Alexandre Prokoudine :
- cleanup of the code, much less old template code
- autogen.sh patched by Steve Lessard to support automake 1.11
- Layer > Transform > Deskew (origine Filters > Misc > Deskew)

Download https://github.com/prokoudine/gimp-desk ... master.zip in the directory C:\petit-msys-mingw-gimp28

Open the terminal by clicking on "C:\petit-msys-mingw-gimp28\start_MSYS.bat"

*****

Windows 32-bit

Type the following lines of commands with "Enter" key at the end of each line :
cd /env
export CC=/w32/bin/mingw32-gcc.exe
export CXX=/w32/bin/mingw32-g++.exe
export CFLAGS="-I/w32/include -I/mingw/include -I/python/include -pipe -O3 -mms-bitfields -march=i686 -s"
export CXXFLAGS="-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"
unzip gimp-deskew-plugin-master.zip
cd /env/gimp-deskew-plugin-master
./autogen.sh
make
exit



The plugin "deskew.exe" is available in the directory "C:\petit-msys-mingw-gimp28\gimp-deskew-plugin-master\src".
Copy the DLL "C:\petit-msys-mingw-gimp28\compilers_win32\MinGW\bin\libstdc++-6.dll" in "C:\petit-msys-mingw-gimp28\gimp-deskew-plugin-master\src"
Declare that directory "C:\petit-msys-mingw-gimp28\gimp-deskew-plugin-master\src" in the preferences of Gimp 2.8

*****

Windows 64 bits

Type the following lines of commands with "Enter" key at the end of each line :
cd /env
export CC=/mingw/bin/i686-w64-mingw32-gcc.exe
export CXX=/mingw/bin/i686-w64-mingw32-c++.exe
export CFLAGS="-I/mingw/include -I/python/include -pipe -O3 -mms-bitfields -march=i686 -s"
export CXXFLAGS="-I/mingw/include -I/python/include -pipe -O3 -mms-bitfields -march=i686 -s"
export LDFLAGS="-L/mingw/lib -mwindows -lpthread"
unzip gimp-deskew-plugin-master.zip
cd /env/gimp-deskew-plugin-master
./autogen.sh
make
exit



The plugin "deskew.exe" is available in the directory "C:\petit-msys-mingw-gimp28\gimp-deskew-plugin-master\src".
Copy the DLL "C:\petit-msys-mingw-gimp28\base\c\bin\libstdc++-6.dll" in "C:\petit-msys-mingw-gimp28\gimp-deskew-plugin-master\src"
Declare that directory "C:\petit-msys-mingw-gimp28\gimp-deskew-plugin-master\src" in the preferences of Gimp 2.8


*****


Top
 Post subject: Re: Small Windows compilation environment for Gimp 2.8 32-bit
PostPosted: Thu Aug 29, 2013 12:51 pm  (#54) 
Offline
GimpChat Member

Joined: May 09, 2012
Posts: 914
Bonjour,

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 (attached at the end of this message) "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" ).


Attachments:
Makefile_plug-in_WebP_Gimp_32-bit.zip [86.02 KiB]
Downloaded 153 times
Top
Post new topic Reply to topic  [ 54 posts ]  Go to page Previous  1, 2, 3

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group