It is currently Wed Jul 24, 2024 4:20 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 54 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: Small Windows compilation environment for Gimp 2.8 32-bit
PostPosted: Sun Aug 11, 2013 12:38 pm  (#1) 
Offline
GimpChat Member

Joined: May 09, 2012
Posts: 914
Bonjour,

I propose the environment from this link :
http://www.aljacom.com/~gimp/divers.html

Edit 20130827 - Version 4 - ( 301 710 942 bytes) / MD5 b323fca08bd315a5cce6d0b009aae5f6
This version 4 allows you to retrieve program sources by GIT and start the compilation using "autogen".

Edit 20130812 - Version 3 - (291 123 962 bytes) / MD5 9729f430c15e2a6796c571a7d066f4bf

Edit 20130811- Version 2 with compilers for Win 32.
(290 389 400 bytes) / MD5 bd09b5b97d4319a9d3f9369adf2133ef
(Under Win 32, there is a small problem with G'MIC. I will look at this problem later.)


(208 909 595 bytes) / MD5 3aa949870a51eb699720dfe465e59860 - Version 1

You need to unpack the "small-msys-mingw-gimp28.7z" archive in C:\ for C:\petit-msys-mingw-gimp28

The instructions are in the text file : C:\petit-msys-mingw-gimp28\Readme_petit-msys-mingw-gimp28.txt


Last edited by samj on Tue Aug 27, 2013 6:45 am, edited 3 times in total.

Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Small Windows compilation environment for Gimp 2.8 32-bit
PostPosted: Sun Aug 11, 2013 12:54 pm  (#2) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14729
Location: USA
samj wrote:
Bonjour,

I propose the environment from this link :
http://www.aljacom.com/~gimp/divers.html

You need to unpack the "small-msys-mingw-gimp28.7z" archive in C:\ for C:\petit-msys-mingw-gimp28

The instructions are in the text file : C:\petit-msys-mingw-gimp28\Readme_petit-msys-mingw-gimp28.txt

Thank you Sam. I will test it accordingly and get back to you. :bigthup

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Small Windows compilation environment for Gimp 2.8 32-bit
PostPosted: Sun Aug 11, 2013 1:45 pm  (#3) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14729
Location: USA
When running make i get this error Sam. :)


rod@Owner-PC ~
$ make
/mingw/bin/i686-w64-mingw32-gcc.exe -o vignetting.exe -Wall -O3 -Wno-unused-vari
able -Wno-pointer-sign -Wno-parentheses vignetting.c -I/mingw/include -I/mingw/x
86_64-w64-mingw32/include -I/python/include -pipe -O3 -mms-bitfields -march=i686
-s -L/mingw/lib -L/mingw/x86_64-w64-mingw32/lib -mwindows -mms-bitfields -Ic:/p
etit-msys-mingw-gimp28/base/c/include/gimp-2.0 -Ic:/petit-msys-mingw-gimp28/base
/c/include/gtk-2.0 -Ic:/petit-msys-mingw-gimp28/base/c/include/gdk-pixbuf-2.0 -I
c:/petit-msys-mingw-gimp28/base/c/include/cairo -Ic:/petit-msys-mingw-gimp28/bas
e/c/include/libpng16 -Ic:/petit-msys-mingw-gimp28/base/c/include/glib-2.0 -Ic:/p
etit-msys-mingw-gimp28/base/c/lib/glib-2.0/include -Ic:/petit-msys-mingw-gimp28/
base/c/include/pixman-1 -Ic:/petit-msys-mingw-gimp28/base/c/include -Ic:/petit-m
sys-mingw-gimp28/base/c/include/freetype2 -Ic:/petit-msys-mingw-gimp28/base/c/in
clude/libpng15 -Ic:/petit-msys-mingw-gimp28/base/c/lib/gtk-2.0/include -Ic:/peti
t-msys-mingw-gimp28/base/c/include/atk-1.0 -Ic:/petit-msys-mingw-gimp28/base/c/i
nclude/pango-1.0   -Wl,-luuid -Lc:/petit-msys-mingw-gimp28/base/c/lib -lgimpui-2
.0 -lgimpwidgets-2.0 -lgimpmodule-2.0 -lgimp-2.0 -lgimpmath-2.0 -lgimpconfig-2.0
-lgimpcolor-2.0 -lgimpbase-2.0 -lgtk-win32-2.0 -lgdk-win32-2.0 -limm32 -lshell3
2 -lole32 -latk-1.0 -lpangowin32-1.0 -lgdi32 -lpangocairo-1.0 -lgio-2.0 -lgdk_pi
xbuf-2.0 -lpango-1.0 -lcairo -lgobject-2.0 -lglib-2.0 -lintl   -I/mingw/include
-L/mingw/lib -lpcre -DGIMP_DISABLE_DEPRECATED
make: execvp: /mingw/bin/i686-w64-mingw32-gcc.exe: Bad file number
make: *** [make] Error 127

running gcc -v i get the correct version.

$ gcc -v
Using built-in specs.
COLLECT_GCC=c:\petit-msys-mingw-gimp28\base\c\bin\gcc.exe
COLLECT_LTO_WRAPPER=c:/petit-msys-mingw-gimp28/base/c/bin/../libexec/gcc/i686-w6
4-mingw32/4.6.3/lto-wrapper.exe
Target: i686-w64-mingw32
Configured with: ../../../src/gcc-4.6.3/configure --build=i686-w64-mingw32 --tar
get=i686-w64-mingw32 --enable-languages=c,c++,fortran --enable-libgomp --enable-
lto --enable-bootstrap --enable-checking=release --enable-version-specific-runti
me-libs --disable-multilib --disable-nls --disable-win32-registry --disable-werr
or --with-pkgversion='gcc-4.6.3 release with patches [build 20121012 by perlming
w.sf.net]' --with-sysroot=/gccbuild/prefix/mingw32 --with-gmp=/gccbuild/prefix/m
ingw32 --with-mpfr=/gccbuild/prefix/mingw32 --with-mpc=/gccbuild/prefix/mingw32
--with-ppl=/gccbuild/prefix/mingw32 --with-cloog=/gccbuild/prefix/mingw32 --enab
le-cloog-backend=isl --with-bugurl=http://mingwfp.znix.com --with-gnu-ld --prefi
x=/gccbuild/prefix/mingw32 --with-local-prefix=/gccbuild/prefix/mingw32 --with-l
ibiconv-prefix=/gccbuild/prefix/mingw32
Thread model: win32
gcc version 4.6.3 (gcc-4.6.3 release with patches [build 20121012 by perlmingw.s
f.net])
$

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


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

Joined: May 09, 2012
Posts: 914
Bonjour,

@Rod

Compilers :

For C
/mingw/bin/i686-w64-mingw32-gcc.exe

For C++
/mingw/bin/i686-w64-mingw32-c++.exe

Win 32 :
You can download and change compilers :
http://sourceforge.net/projects/mingw/f ... /Version4/


Top
 Post subject: Re: Small Windows compilation environment for Gimp 2.8 32-bit
PostPosted: Sun Aug 11, 2013 5:19 pm  (#5) 
Offline
GimpChat Member

Joined: May 09, 2012
Posts: 914
Bonjour,

I'll edit the archive and include another set of compilers. I will make an announcement.

Edit Version 2 with compilers for Win 32.
(Under Win 32, there is a small problem with G'MIC. I will look at this problem later.)


Top
 Post subject: Re: Small Windows compilation environment for Gimp 2.8 32-bit
PostPosted: Mon Aug 12, 2013 2:24 am  (#6) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14729
Location: USA
samj wrote:
Bonjour,

I'll edit the archive and include another set of compilers. I will make an announcement.

Edit Version 2 with compilers for Win 32.
(Under Win 32, there is a small problem with G'MIC. I will look at this problem later.)


Thanks again Sam. :)

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Small Windows compilation environment for Gimp 2.8 32-bit
PostPosted: Mon Aug 12, 2013 7:52 am  (#7) 
Offline
GimpChat Member

Joined: May 09, 2012
Posts: 914
Bonjour,

Version 3 of the environment is achieved. I added things.
Compiling G'MIC Gimp went smoothly under Windows 7 32-bit (+ other plug-ins).

A few tips:
- Read "Readme_petit-msys-mingw-gimp28.txt" file where examples of compilation.
- Do not forget to declare the compiler via the CC variable (export or in the Makefile).

Windows 32-bit users who want to use the environment can help:
- If you find solutions to problems you can communicate. I do not use Windows 32-bit version to compile (in this case to make some tests).
:tyspin


Top
 Post subject: Re: Small Windows compilation environment for Gimp 2.8 32-bit
PostPosted: Mon Aug 12, 2013 11:31 am  (#8) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14729
Location: USA
samj wrote:
Bonjour,

Version 3 of the environment is achieved. I added things.
Compiling G'MIC Gimp went smoothly under Windows 7 32-bit (+ other plug-ins).

A few tips:
- Read "Readme_petit-msys-mingw-gimp28.txt" file where examples of compilation.
- Do not forget to declare the compiler via the CC variable (export or in the Makefile).

Windows 32-bit users who want to use the environment can help:
- If you find solutions to problems you can communicate. I do not use Windows 32-bit version to compile (in this case to make some tests).
:tyspin

Thanks Sam. :) :bigthup
I am curious about why you re-named the mingw directory to c?

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Small Windows compilation environment for Gimp 2.8 32-bit
PostPosted: Mon Aug 12, 2013 12:52 pm  (#9) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2260
Location: Poland
Thank you SAMJ for your contribution to science compilation!
Vignetting.c tested - it works!

A lot of problems for Win 32 XP for a compilation of Gimp.
Error:
conftest exe - Entry point not Found
The proced _mktemp_s in the library msvcrt.dll

A similar problem (with msvcrt.dll and mktemp) when trying to run Gimp (GIMP_EN.exe and gimp-2.8.exe)

Your environment for Gimp 2.7 does not have this problem - it is the last chance to build Gimp in XP?
Probably the fault of the old system XP 32 - but any suggestions?


Attachments:
_mktemp_s.png
_mktemp_s.png [ 18.96 KiB | Viewed 5186 times ]

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: Small Windows compilation environment for Gimp 2.8 32-bit
PostPosted: Mon Aug 12, 2013 1:18 pm  (#10) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14729
Location: USA
I had errors also trying to compile G'MIC, FocusBlur, and rgb-max 32 bit plugins. :)
Running GIMP_EN.exe and GIMP.exe worked fine though. :)

Image

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Small Windows compilation environment for Gimp 2.8 32-bit
PostPosted: Mon Aug 12, 2013 1:24 pm  (#11) 
Offline
GimpChat Member

Joined: May 09, 2012
Posts: 914
@Rod
For not having redundancy I used program comes with Strawberry Perl. This is ultimately a very small economy. It also explains the structure.
Edit : To compile G'MIC you can use the example Makefile "Win 32 - Exemple / Example Makefile beta G'MIC (C++)" in "Readme_petit-msys-mingw-gimp28.txt".

@MareroQ
This environment was created initially for a w64 architecture (to compile plug-ins).
I added compilers for 32-bit architectures.
Gimp compiles fine with w64.
32-bit Windows should perhaps set a specific environment from mingw32.
If I have time I will use an old computer running XP 32-bit :coolthup and do some tests. XP is still something very old...


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

Joined: May 09, 2012
Posts: 914
@Rod
We must create and use Makefile to compile. I'll post more examples later in the evening.


Top
 Post subject: Re: Small Windows compilation environment for Gimp 2.8 32-bit
PostPosted: Mon Aug 12, 2013 4:46 pm  (#13) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14729
Location: USA
samj wrote:
@Rod
We must create and use Makefile to compile. I'll post more examples later in the evening.


Okay Sam. :) :bigthup
I had assumed we needed to replace the plugins Makefile with our own. Not too sure how to write it out though when there are multiple c++ files to compile. Can you place all the c++ file names in the same command line?
Like this?
################################################################

B_CFLAGS = -I/mingw/include -I/mingw/x86_64-w64-mingw32/include -I/python/include -pipe -O3 -mms-bitfields -march=i686 -s
B_LDFLAGS = -L/mingw/lib -L/mingw/x86_64-w64-mingw32/lib -mwindows
GIMPARGS = $(shell gimptool-2.0 --cflags --libs)
PCREARGS = $(shell pcre-config --cflags --libs)

make:
   /w32/bin/gcc.exe -o gmic.exe -o gmic_gimp.exe -o gmic_lib.exe -Wall -O3 -Wno-unused-variable -Wno-pointer-sign -Wno-parentheses gmic.c++ gmic_gimp.c++ gmic_lib.c++ $(B_CFLAGS) $(B_LDFLAGS) $(GIMPARGS) $(PCREARGS) -DGIMP_DISABLE_DEPRECATED

################################################################

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Small Windows compilation environment for Gimp 2.8 32-bit
PostPosted: Mon Aug 12, 2013 5:22 pm  (#14) 
Offline
GimpChat Member

Joined: May 09, 2012
Posts: 914
@Rod

I had assumed we needed to replace the plugins Makefile with our own...
Yes. Can you put a simple plug-in C + + in an archive, I'll see what I can do.
If I can compile, I would join the Makefile with my result.

*****
FocusBlur
I attach an archive with many sources and some compilations.


Attachments:
focusblur_win+sources.zip [3.13 MiB]
Downloaded 119 times
Top
 Post subject: Re: Small Windows compilation environment for Gimp 2.8 32-bit
PostPosted: Mon Aug 12, 2013 7:25 pm  (#15) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14729
Location: USA
Sam what do i type on the command line for configure if the plug-in i want to compile requires a configure file?

Example-
./configure (linkers)??

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Small Windows compilation environment for Gimp 2.8 32-bit
PostPosted: Mon Aug 12, 2013 8:39 pm  (#16) 
Offline
GimpChat Member

Joined: May 09, 2012
Posts: 914
@Rod

Example if you compile gimp-plugin-template-2.2.0 on Win 32, type :

export CC=/w32/bin/mingw32-gcc.exe
export CFLAGS="-I/mingw/include -I/w32/include -I/python/include -pipe -O3 -mms-bitfields -march=i686 -s"
export LDFLAGS="-L/mingw/lib -L/w32/lib -mwindows -lpthread"
cd /env/gimp-plugin-template-2.2.0
./configure
make


line 1 = compiler

*****

@MareroQ

I took a old IBM ThinkPad from museum (O.S. = Win XP 32) .
I installed Gimp 2.8.6 Sourceforge.
I installed the build environment.
I was able to compile plug-ins.
I am satisfied because these compilations work on Gimp 2.8.6 SourceForge. This was the purpose of my environment.

(The problem msvcrt.dll has nothing to do with the compilation).


Top
 Post subject: Re: Small Windows compilation environment for Gimp 2.8 32-bit
PostPosted: Tue Aug 13, 2013 7:56 am  (#17) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14729
Location: USA
Thank you Sam. :)

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Small Windows compilation environment for Gimp 2.8 32-bit
PostPosted: Fri Aug 16, 2013 3:55 am  (#18) 
Offline
GimpChat Member

Joined: May 09, 2012
Posts: 914
Bonjour,

Liquid Rescale 0.7.2

There is no problem to compile Liquid Rescale GIMP- Version 0.7.2 - Gimp 2.8 with this environment.

First compile the library
http://liblqr.wdfiles.com/local--files/ ... .2.tar.bz2
and plug-in
http://liquidrescale.wdfiles.com/local- ... .2.tar.bz2

Declare the compiler (export CC=xxxxxx)

./configure --prefix=/mingw
make
make install


liblqr-1-0.dll is in C:\petit-msys-mingw-gimp28\base\c\bin
gimp-lqr-plugin.exe is in ...\gimp-lqr-plugin-0.7.2\src


Personally I've never used this plugin, except for writing documentation.


Top
 Post subject: Re: Small Windows compilation environment for Gimp 2.8 32-bit
PostPosted: Fri Aug 16, 2013 8:15 am  (#19) 
Offline
GimpChat Member

Joined: May 09, 2012
Posts: 914
Liquid Rescale 0.7.2 (example compilation XP 32-bit)

Extract sources in C:\petit-msys-mingw-gimp28
Open Terminal ( start_MSYS.bat )
Here is the series of commands that should work on any Win OS (XP ... Win 8)


export CC=/w32/bin/mingw32-gcc.exe
export CFLAGS="-I/mingw/include -I/w32/include -I/python/include -pipe -O3 -mms-bitfields -march=i686 -s"
export LDFLAGS="-L/mingw/lib -L/w32/lib -mwindows -lpthread"
cd /env/liblqr-1-0.4.2
./configure --prefix=/mingw
make
make install
cd /env/gimp-lqr-plugin-0.7.2
./configure --prefix=/mingw
make
exit


I have attached a screenshot XP 32-bit (Gimp 2.8.6 SourceForge) :drum


Attachments:
lqr-winxp32-gimp286-32.png
lqr-winxp32-gimp286-32.png [ 538.38 KiB | Viewed 2327 times ]
Top
 Post subject: Re: Small Windows compilation environment for Gimp 2.8 32-bit
PostPosted: Sat Aug 17, 2013 7:28 pm  (#20) 
Offline
GimpChat Member

Joined: May 09, 2012
Posts: 914
Bonjour

G'MIC Gimp Plugin beta :

If you want to compile the beta version of the G'MIC plug-in for Gimp Windows, here the "Makefile" file to use.
This file is in the attached archive.
The instructions are at the beginning of the Makefile.
Tested with gmic_1.5.7.0_beta.tar.gz


Attachments:
Makefile.zip [5.34 KiB]
Downloaded 103 times
Top
Post new topic Reply to topic  [ 54 posts ]  Go to page 1, 2, 3  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) menus and dropdowns too small

16

No new posts Attachment(s) HELP!!! Keep Project Size Small

1

No new posts Attachment(s) Small Tiles - Big Preview for Gimp-2.10.20

0

No new posts Attachment(s) Playing with masks and other small effects

11

No new posts Issues making non-pixellated small-scale graphics

2



* Login  



Powered by phpBB3 © phpBB Group