[PyQt] Can't build sip as universal binary on Leopard
kw at codebykevin.com
Tue Jan 1 23:55:55 GMT 2008
Kevin Walzer wrote:
> This message on Apple's mailing list sheds some insight:
> Essentially, the '-mmacosx-version-min=10.4' flag needs to be passed in
> somewhere. This is necessary because the current OS is now 10.5.
> I'm not sure how to patch the toplevel configure.py to obtain the
> correct argument parsing, however. Running the script with the invocation
> python configure.py CFLAGS+='-isysroot /Developer/SDKs/MacOSX10.4u.sdk
> builds a single-platform (i386) binary, not a universal binary.
> Any hints?
I've gotten things working, in a somewhat tedious way:
1. For sip, I ran "python configure.py -n" to generate a universal
binary makefile, then manually edited the makefile and added
"-mmacosx-version-min=10.4'" to CFLAGS, CXXFLAGS and LFLAGS.
2. For PyQt, I ran "python configure.py" and then manually edited every
makefile in the directory tree to add "-mmacosx-version-min=10.4'" to
CFLAGS, CXXFLAGS and LFLAGS.
Things appear to have built as a universal binary. Still, if someone
could suggest how to patch the main configure.py files to avoid all this
manual hacking, that would be much appreciated. :-)
Code by Kevin
More information about the PyQt