pygame is
Python
Simple DirectMedia Layer
 
 
pygame.org is
Site Swing
Wiki

MingW

      
Search:  
 
 
sections
pygame dependencies on windows
build tools
python requirements
building the dependencies
Python 2.6 dependency instructions
building and installing pygame
making prebuilt directories
building by hand
additional links
vista notes

Due to g++/VC++ incompatibilities, MinGW support is unavailable for Pygame 1.9.2

These instructions are for Pygame 1.9.0, revision 1673 and up. For earlier Pygames, 1.8.0 and 1.8.1, look at the msys_build_deps.py document string for the list of relevant Pygame dependency versions and Msys/MinGW build tools.

Note that a source bundle and precompiled binaries of the Pygame 1.8 dependecies are available on the download page.

pygame dependencies on windows

This list of libraries shows the version tested with Pygame 1.8 as well as a link to the actual source bundle used. *note* We should have a download with everything included. As well as patches for each one that we need.

SDL 1.2(.13) revision 4114 from SVN svn co -r 4114 http://svn.libsdl.org/branches/SDL-1.2
zlib 1.2.3 zlib-1.2.3.tar.gz
libpng 1.2.32 PNG reference library: libpng at SourceForge.net
libjpeg 6b jpegsrc.v6b.tar.gz
libtiff 3.8.2 tiff-3.8.2.tar.gz
SDL_image 1.2.6 SDL_image-1.2.6.zip
freetype 2.3.7 The FreeType Project at SourceForge.net
SDL_ttf 2.0.9 SDL_ttf-2.0.9.zip
libvorbis 1.2.0 libvorbis-1.2.0.zip
libogg 1.1.3 libogg-1.1.3.zip
FLAC 1.2.1 flac-1.2.1-src.tar.gz at SourceForge.net
SDL_mixer (1.2.8) revision 3942 from SVN svn co -r 3942 http://svn.libsdl.org/trunk/SDL_mixer SDL_mixer-1.2
smpeg revision 370 from SVN svn co -r 370 svn://svn.icculus.org/smpeg/trunk smpeg
PortMidi release 82 portmidi-src-82.zip at SourceForge.net

Choose, or create, a directory having a path with no spaces in it (Some library build scripts, and Msys's mount, fail when spaces are present.) Place all the dependency source code directories, along with the Pygame SVN trunk directory, in the directory. All build steps will be done from the Pygame trunk directory, where the necessary scripts are located.

Note that FLAC or ogg-vorbis audio support is not necessary for Pygame to function. The relate libraries can be omitted from the SDL_mixer build by using the msys_build_deps.py exclude option -e.

build tools

python requirements

building the dependencies

Python 2.6 dependency instructions

building and installing pygame

making prebuilt directories

building by hand

The older instructions for hand building the dependencies are here. These go back to Pygame 1.8.0 and so are outdated.

additional links

Simple Direct Media (SDL) home page

Minimalist GNU for Windows (MinGW) home page

Compiling python extensions at the MinGW Wiki. (Note 05/20/2010: MinGW Wiki has moved to here. Compiling Python Extensions has been moved to the FAQ, see topic Other: How do I create Python Extensions. At the top of the FAQ page there is a link to the old wiki, which has also changed addresses.)

SDL build instructions for Tux Paint.

vista notes

spotlight

 
our projects
pygame.org welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
 
recent releases
Jul 28, 2014

Jul 22, 2014

Jul 21, 2014

Jul 20, 2014

Jul 19, 2014

Jul 15, 2014

Jul 10, 2014

Jul 9, 2014

Jun 27, 2014



Jun 24, 2014

... more!
 
for pygame related questions, comments, and suggestions, please see help (lists, irc)