View Full Version : Creating universal binary

20th November 2006, 15:57
I tried searching for tutorials on how to create universal binary, but could not find anything solid.

Can someone please point me to the right direction ?

Thanks a lot.

20th November 2006, 18:40
Try looking at this wiki page - http://wiki.qtcentre.org/index.php?title=Compiling_Qt4_apps_with_CMake - I know that Matt (the author of the Mac section) creates universial binaries using cmake.

20th November 2006, 20:52
If you are using qmake, look at the "qmake Platform Notes" page in Assistant. Also see the page "Deploying an Application on Qt/Mac. In a nutshell, you need the line "CONFIG += x86 ppc" in your project file. If building on a PPC platform, there is some other stuff you need to do.

p.s. Your Qt also needs to be built as a universal binary.

p.p.s. This is for Qt 4. Qt 3 doesn't directly support universal binaries. You can do it, but it's a lot of work. If this is your situation, I would build just the PPC version, then hope that it works on x86 with Rosetta.