Re: re-compiling the GIF plugin
cameron2 <[email protected]>
| Newsgroups | gmane.comp.video.gimp.windows.devel |
|---|---|
| Message-ID | <[email protected]> |
G'Day Tor, Tor Lillqvist wrote: > Seems fine to me (except that I would use the import libraries, not > the DLLs when linking. I.e. specify -lgimp -lgimpui -lgtk -lgdk > -lglib-2.0). Okay, cool. This makes me feel a little more comfortable with the linking, but unforunately it didn't work. > > then copy gif.exe into the lib/gimp/1.2/plug-ins dir. > > I tried with -mpentiumpro and also without -fnative-struct (which didn't > > seem right, but I thought I'd try since tor didn't mention that in his > > last "how I configure" ...) > > What version of gcc are you using? Are you sure it recognizes the > -fnative-struct switch? Not that I think that would matter for the gif > plug-in. Your problem seems like a mystery to me... Hmm, you do use > the mingw version of gcc, not the one in Cygwin? $ which gcc /cygdrive/c/mingw/bin/gcc $ gcc --version 2.95.3-5 I have removed cygwin gcc to make sure that I don't get the wrong one. I actually started again (again), and here is what I did ... compile gif plugin ================== Set up I: drive as c:\yyy which holds /src in cygwin I created the symlink from /src to /cygdrive/c/yyy/src mkdir /src/plugins extract desktop/gimp-1.2.3.tar.bz2 into /src/plugins (tml patched source) rename /src/plugins/gimp-1.2.3 to /src/plugins/gimp cd /src/plugins/gimp cp config.h.win32 config.h extract into /src/plugins libintl-0.10.40-20020310.zip (-lintl) libiconv-dev-1.7.zip (-lconv) gimp-dev-1.2.3-20020527.zip (-lgimp and -lgimpui) gtk+-dev-1.3.0-20020310.zip (-lgtk -lgdk) glib-dev-2.0.3-20020525.zip (-lglib-2.0) I extract gimp-1.2.3-2002057.zip to c:\program files\test cd /src/plugins/gimp/plug-ins/common create program "go" --start go-- #!/bin/sh set -x LIBS=" -L../../../lib -lintl -liconv -lgimp -lgimpui -lgtk -lgdk -lglib-2.0" gcc -mpentium -fnative-struct -o gif.exe -DHAVE_CONFIG_H -DGTK_DISABLE_COMPAT_H gif.c -I ../../../include -I ../../../include/glib-2.0 -I ../../../lib/glib-2.0/include -I ../../../lib/gtk+/include -I ../.. $LIBS cp gif.exe /cygdrive/c/Progra~1/Test/lib/gimp/1.2/plug-ins --end go-- run: sh go run gimp new blank image save as c:\a.gif bang :-( (it doesn't show up in the list of options, I guess indicating that the registration didn't work either) ideas? thanks.... Cameron > --tml > > > To Post a message, send it to: [email protected] > To Unsubscribe, send a blank message to: [email protected] > > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/