>>>>> "Rick" == Rick Muller <[EMAIL PROTECTED]> writes:
Rick> Did you include the profile.bat file? I didn't find it, but
Rick> I'm feeling particularly bone-headed today.
I think I screwed up my attachment.
Rick> I have now included both the GTK Dev and Runtime libraries,
Rick> as you suggested. But I'm getting largely the same error. I
Rick> can't find gnome-config.
Last time it was gobject.pc. What is the exact message?
Rick> Is this stuff (i.e. getting a linux-like program running on
Rick> Windows) easier using cygwin? I eventually took that path on
Rick> Mac OS X (I used fink there). I really do want to support
Rick> multiple platforms, but I'm not a professional software
Rick> engineer, and I'm finding this is taxing my build
Rick> abilities. I had wanted to use the normal python rather than
Rick> cygwin since I'm trying to convince people how simple and
Rick> easy it is to install and use Python, but I've been bumping
Rick> up against this windows port for a couple of weeks without
Rick> getting anything to work.
Once you solve it the first time it gets a lot easier. I definitely
suffered a lot too. As for ease of use, once you get your binary
built your users will never know whether you use pygtk or a microsoft
compiler. They'll just run a windows installer. It is pretty easy to
install and use python. However, once you have a bunch of required
packages, as it appears you do, it gets harder and you may want to use
py2exe which will cause you a new round of pain :-)
I just remembered that last time I compiled pygtk-2.0.0 I had to patch
dsextras.py. I'm at home now so I can't check this or send you the
patch. Cedric, does this ring a bell with you?
Here are my compile notes the first time I compiled pygtk - sorry but
the links are screwed up
http://nitace.bsd.uchicago.edu:8080/Wikis/Leo/CompilingPythonWin
Here is a condensation of that:
Getting the cygwin environment set up:
Download MinGW-3.1.0-1.exe and MSYS-1.0.10.exe
from http://sourceforge.net/project/showfiles.php?group_id=2435&package_id=82721
and install both in their default locations
Download pexports-0.42h
from http://starship.python.net/crew/kernr/mingw32/pexports-0.42h.zip
and extract it to C:\Program Files\pexports-0.42h
The import importlib23.bat script is used to build the python23
import lib for cygwin.
###begin import23.bat script
copy c:\windows\system\python23.dll .
c:\progra~1\pexports-0.42h\bin\pexports python23.dll > python23.def
c:\MinGW\bin\dlltool --dllname python23.dll --def python23.def --output-lib
libpython23.a
copy libpython23.a c:\python23\libs
del python23.dll
del libpython23.a
###end import23.bat script
Take a look at this, edit it to reflect paths on your system, and then
run it from a DOS prompt.
As for GTK, download GTK-Development-Environment-2.2.4.1.exe and
GTK-Runtime-Environment-2.2.4.1.exe from
http://sourceforge.net/project/showfiles.php?group_id=71914&package_id=71737
and install both to C:\GTK. Do not put them in their default
locations since it is hard to handle spaces properly in PATH.
The following profile23.bat script will set up your build environment
(paths etc)
### begin profile23.bat script
SET
PATH=C:\GTK\bin;C:\GTK\lib;C:\WINDOWS;C:\WINDOWS\COMMAND;c:\Python23;c:\mingw\bin;c:\mingw\mingw32\bin;c:\msys\1.0\bin
set LDD=gcc
set CC=gcc
set CXX=g++
set CFLAGS=-mms-bitfields
### end profile23.bat script
The build command I use is
c:> python setup.py build --compiler=mingw32 bdist_wininst --install-script
postinstall.py > build23.out
On some systems, doing the build and binary installer separately in two
commands does not work, but this one seems to work everywhere I've
tried it.
I'm sure there is something I've left out, so let me know. When we
get a good set of working notes I'll add it to the FAQ!
JDH
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/