[PyKDE] deploying universal binaries

Patrick Stinson patrickkidd.lists at gmail.com
Wed Dec 20 22:54:22 GMT 2006

This will help.

If you are building a universal sip binary (only on ppc? not sure) you
need to run configure with this command line: (Phil, maybe you can
take note to add a flag...)

python configure.py -k CFLAGS+="-arch ppc -arch i386" LFLAGS+="-arch
ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk

On 12/8/06, V. Armando Sole <sole at esrf.fr> wrote:
> Hi,
> At 07:55 15/11/2006 -0800, Adam Tenderholt wrote:
> >I too want to make univeral binaries, but I had trouble finding the
> >recent thread about building universal binaries.
> >
> >My plan is the following. Sip can be made into a univeral binary by
> >editing the siplib/Makefile and adding -arch i386 -arch ppc to the
> >CXXFLAGS AND LFLAGS. I also did this to the sipgen/Makefile, but I
> >suspect it's not really necessary. Next backup the macx-g++ directory
> >located in the mkspecs directory of your Qt4 installation, and add
> >-arch i386 -arch ppc to the CFLAGS and LFLAGS of the qmake.conf in the
> >macx-g++ directory. This should cause the PyQt4 configure script to
> >generate the Makefiles with the correct flags.
> >
> >Hope this helps.
> It helped :)
> Thanks for the hint. I have been able to generate a py2app frozen universal
> MacPython PyQt4 application.
> I did not modify the sip makefile but the .py generating the Makefile.
> Thanks,
> Armando
> _______________________________________________
> PyKDE mailing list    PyKDE at mats.imk.fraunhofer.de
> http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Patrick Kidd Stinson

More information about the PyQt mailing list