Trying in install Pygame on Lion, following the instructions from illume here: https://bitbucket.org/pygame/pygame/issue/82/homebrew-on-leopard-fails-to-install
I have the homebrew installation of Python as my default one.
$ which python
/usr/local/bin/python
Using the following commands:
brew install sdl sdl_image sdl_mixer sdl_ttf smpeg portmidi
pip install hg+http://bitbucket.org/pygame/pygame
(First of all portmidi fails to install from homebrew because a hash discrepancy, but I disregarded this for now.)
When building Pygame, I get warnings of the following kind:
building 'pygame.mixer' extension
/usr/bin/llvm-gcc -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -O3 -w -pipe -march=core2 -msse4.1 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Ddarwin -D_THREAD_SAFE -I/usr/X11R6/include -I/usr/local/include/SDL -I/usr/local/include/SDL -I/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/mixer.c -o build/temp.macosx-10.5-intel-2.7/src/mixer.o
/usr/bin/llvm-gcc -bundle -undefined dynamic_lookup -arch i386 -arch x86_64 -isysroot / -L/usr/local/Cellar/readline/6.2.2/lib build/temp.macosx-10.5-intel-2.7/src/mixer.o -L/usr/local/lib -L/usr/local/lib -lSDLmain -lSDL -lSDL_mixer -o build/lib.macosx-10.5-intel-2.7/pygame/mixer.so -Wl,-framework,Cocoa
ld: warning: ignoring file /usr/local/lib/libSDLmain.a, file was built for archive which is not
the architecture being linked (i386)
ld: warning: ignoring file /usr/local/lib/libSDL.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: ignoring file /usr/local/lib/libSDL_mixer.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
This happens to all extensions using SDL. Pygame does build despite the warnings, but functionality is lost. Spent a while with Google trying to figure out what to do about it, but couldn't find any solution.
Edit: separated the output lines for legibility.