[PyKDE] deploying universal binaries

Adam Tenderholt atenderholt at gmail.com
Wed Nov 15 15:55:57 GMT 2006


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.

Adam


On 11/14/06, Phil Thompson <phil at riverbankcomputing.co.uk> wrote:
> > I want to deploy my pyqt4 app on all ppc and i386 macs. I was just going
> > to
> > use BuildApplet that comes with OS to put together the app bundle, but I
> > need all of the shared libraries to be universal binaries. I built qt as a
> > universal binary, but I don't see a flag for building the sip and pyqt
> > modules as universal bins. What obstacles will I run into here? Is this
> > even
> > possible using the MacPython-2.3 that comes with OS X 10.4 (seems like it
> > would be)?
>
> The build system doesn't currently support the creation of universal
> binaries. There was a recent message on the list from somebody who has
> done it though.
>
> Phil
>
> _______________________________________________
> PyKDE mailing list    PyKDE at mats.imk.fraunhofer.de
> http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
>




More information about the PyQt mailing list