Compiling Gimp 1.2.4 for Win32 on NT and Debian.

Cyrille Grange <[email protected]>
Newsgroups gmane.comp.video.gimp.windows.devel
Message-ID <[email protected]>
Hi the list,

I compiled gimpwin on WinNT with cygwin and mingw32. It work great but
compilation process is long and difficult.
I'm trying the same but on Debian Woody with "stable" mingw32.

My problem is the following :
Either with WinNt or with Debian, compilation always stop with the
following error :

...
i586-mingw32msvc-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../intl
-I/home/mingw/usr/include -I/home/mingw/usr/lib/gtk+/include
-I/home/mingw/usr/include/glib-2.0
-I/home/mingw/usr/lib/glib-2.0/include   -I/home/mingw/gimpTarg/include
-DLIBDIR=\""/home/mingw/gimpTarg/lib/gimp/1.2"\"
-DLOCALEDIR=\""/home/mingw/gimpTarg/lib/locale"\" -DREGEX_MALLOC
-DG_LOG_DOMAIN=\"Gimp\"  -I/home/mingw/usr/include
-DGTK_DISABLE_COMPAT_H  -g -O2 -Wall -fnative-struct -c `test -f 'xcf.c'
|| echo './'`xcf.c
make[2]: *** Pas de règle pour fabriquer la cible `gimp.def', nécessaire
pour `gimp.exp'. Arrêt.
make[2]: Leaving directory `/homeDsk/home/mingw/src/gimp-1.2.4/app'
make[1]: *** [all-recursive] Erreur 1
make[1]: Leaving directory `/homeDsk/home/mingw/src/gimp-1.2.4'
make: *** [all] Erreur 2

As you can see, i'm french, but in two words, compilation process stop
because the Makefile doesn't own a rule that define 'gimp.def' needed
for 'gimp.exp'. This is THE problem. It appear in both environment
(winnt and debian).
I'm not strong enough in configure.in and others theory to solve this
problem.
The only solution i found is to copy rules from the makefile.mingw, that
the './configure ...' process create, in the main Makefile.

Here my environment variables and configure script (i'm using Bash). Did 
i miss something ?

mingw@F5000030:~/src/gimp$ export
declare -x AR="i586-mingw32msvc-ar"
declare -x AS="i586-mingw32msvc-as"
declare -x CC="i586-mingw32msvc-gcc"
declare -x COLORTERM=""
declare -x DISPLAY=":0.0"
declare -x DLLTOOL="i586-mingw32msvc-dlltool"
declare -x GNUSTEP_USER_ROOT="/home/cyrille/GNUstep"
declare -x HOME="/home/mingw"
declare -x HUSHLOGIN="FALSE"
declare -x HZ="100"
declare -x LANG="fr_FR@euro"
declare -x LD="i586-mingw32msvc-ld"
declare -x LOGNAME="cyrille"
declare -x 
LS_COLORS="no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.jpg=01;35:*.jpeg=01;35:*.png=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.mpg=01;35:*.mpeg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.ogg=01;35:*.mp3=01;35:"
declare -x MAIL="/var/mail/cyrille"
declare -x NM="i586-mingw32msvc-nm"
declare -x OBJDUMP="i586-mingw32msvc-objdump"
declare -x OLDPWD="/home/mingw/src/gimp/intl"
declare -x 
PATH="/usr/i586-mingw32msvc/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games"
declare -x PKG_CONFIG_PATH="/home/mingw/lib/pkgconfig"
declare -x PREFIX="/usr/i586-mingw32msvc"
declare -x PWD="/home/mingw/src/gimp"
declare -x RANLIB="i586-mingw32msvc-ranlib"
declare -x SHELL="/bin/bash"
declare -x SHLVL="5"
declare -x STRIP="i586-mingw32msvc-strip"
declare -x TERM="linux"
declare -x USER="mingw"
declare -x WMAKER_BIN_NAME="/usr/bin/WindowMaker"
declare -x WRASTER_COLOR_RESOLUTION0="4"
declare -x XAUTHORITY="/home/cyrille/.Xauthority"

Here my configure script :
mingw@F5000030:~/src/gimp$ cat ../myConfigure
#!/bin/bash
#export PREFIX=/usr/i586-mingw32msvc
export CPPFLAGS='-I/home/mingw/usr/include'
#export CFLAGS=-O4
export LDFLAGS='-L/home/mingw/usr/lib'
#export CC='i586-mingw32msvc-gcc'
export PKG_CONFIG_PATH=/home/mingw/usr/lib/pkgconfig
cd gimp
./configure --without-libpng --disable-static --disable-perl 
--disable-print --prefix=/home/mingw/gimpTarg --host=i386-pc-mingw32
cd ..

And after, only a make command.
Does somebody have an idea ?
Thank's.
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.