At 10:35 AM 3/27/2002 -0500, you wrote:
>Hrm. It seems to only be building .a files, not .dll (or .pyd, or
>anything else).
Ok, let's say it created lib_gtk.a (a static library built using ar). To
create the corresponding dll (or pyd) file, do this
1. create a _gtk.def file that contains the following text
EXPORTS
init_gtk
2. type 'ar x lib_gtk.a'. You'll get a bunch of .o files
3. dllwrap -o _gtk.dll --def _gtk.def *.o 'python, gtk+ and X11 linker flag'
where *.o are the object files extracted with the ar command
'python, gtk+ and X11 linker flag' are a set of linker options like
"-L/usr/lib -lpython22 -L/usr/local/lib -lgtk -lgdk ...", depending on you
local system. It's the same as linking a gtk+ executable on linux !
For more information 'dllwrap --help'
You might have to rename the dll to the pyd extension (I don't know what
cygwin uses for its python extensions).
Good luck
Cedric
P.S. : libtool (which is used by the pygtk distribution) SHOULD be able to
create the dll by itself but it requires the
AC_LIBTOOL_WIN32_DLL macro to be called in configure.in. This is not the
case in pygtk-0.6.9 -> only a static library is created.
______________________________________________________________________________
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/