[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[pygame] pygame.event.post doesn't work on PPC OS X



I've been working on tracking down a bug for a while now and only just was able
to attribute it to pygame failing. In my application, calling pygame.event.post
simply does nothing if the binaries have been stripped to only contain the ppc
code. The i386 code works, but the ppc code does not work on an i386 machine or
a ppc machine. I have not yet tried a fat binary on a ppc machine, but I doubt
it will make a difference.

Calling pygame.event.post raises no exception, and the event is not received
from the event queue. The event queue still receives events normally, though. 
My build environment: 
OS: Mac OS 10.5.2 
Python: 2.5.2, built with "-Wall -fno-strict-aliasing -g -O2 -isysroot
/Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc
-mmacosx-version-min=10.3.9" as CFLAGS and LDFLAGS. 
PyObjC: 1.4, built painfully and using the same CFLAGS and LDFLAGS. 
py2app: 0.3.6.

I posted a bug here: http://pygame.motherhamster.org/bugzilla/show_bug.cgi?id=14
Also at that link is a zipfile containing just enough code to demonstrate the bug. You might need to build python and pyobjc linked against the 10.4u SDK. I don't have a PPC machine to test it on, so I haven't been able to try building it that way.