[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [pygame] Compiling Pygame from CVS
Leonardo Santagada wrote:
How do I compile pygame from cvs? do I need VC or mingw32? what other
libs will I need? I suppose SDL and what else?
building with VC is the easiest way on windows. grab the source and also
grab the "win32 dependencies" package which will go into a subdirectory
named 'prebuilt'. from there you just run the config.py and setup.py and
you are all built and installed.
http://www.pygame.org/ftp/win32-dependencies.zip
building python extensions is also well supported with cygwin and
borland's free compiler. the tricky part with these compilers is that
all compiler .LIB files are incompatable, so linking gets a little
tricky. the borland compiler comes with a tool called COFF2OMF
(something like that) which converts a VC .LIB to a borland .LIB. once
that is done you are all set to compile. if you are using cygwin, you
may need to actually recompile all the dependencies yourself? i'm not
really sure.
also, with borland, if you name the new LIB files "*_bcpp.lib" instead
of overwriting the original, the python setup tools will find those and
use them instead.
ah, peeking at the cygwin docs, there is a tool similar to borland's,
here's the info..
# dlltool --dllname python15.dll --def python15.def \
# --output-lib libpython15.a
i believe you can also use "--export-all-symbols", since there are no
.def files for the sdl dependencies.
SDL has good support for mingw, but the python extension build tools
currently to not.
here's another link that may help,
http://starship.python.net/crew/kernr/mingw32/Notes.html
oh, here's one more link i found
http://www.python.org/doc/current/inst/non-ms-compilers.html
pygame does come with docs for help on compiling. scroll down to the
"windows from source" section. i just updated this information now with
some of these windows tips, along with needed updates for the other
sections :]
http://pygame.org/install.html
____________________________________
pygame mailing list
pygame-users@seul.org
http://pygame.seul.org