re-compiling the GIF plugin

Tor Lillqvist <[email protected]>
Newsgroups gmane.comp.video.gimp.windows.devel
Message-ID <[email protected]>
cameron2 writes:
 > I'd like to recompile the gif plugin with the changes
 > that I made to the unix version (RLE/uncompressed gif's)

 > but even just recompiling with the old code, it doens't seem to work.
 > (crashes - windows version of null ptr exception).

 > gcc -mpentium -fnative-struct -o gif.exe -DHAVE_CONFIG_H
 > -DGTK_DISABLE_COMPAT_H gif.c -I ../.. -I ../../../include
 > -I ../../../include/glib-2.0 -I ../../../lib/glib-2.0/include
 > -I ../../../lib/gtk+/include -L/Progra~1/Gimp/lib
 >   -lintl -liconv -lgimp-1-2-0 -lgimpui-1-2-0
 >   -lgtk-0 -lgdk-0 -lglib-2.0-0

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).

 > 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?

--tml
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.