Page 1 of 1

Building a Universal Binary

Posted: 18.05.2006, 04:39
by BlindedByTheLight
Any one have any idea how to build a universal binary with Xcode for OS X? I know how to build on PPC...and figured it was just as simple as checking the "Build Universal" check-box... but that appears not to be the case. I can build an Intel version just fine...but I want to make my build (with all the OS X patches) available for PPC users, too.


Thanks.

Posted: 18.05.2006, 11:36
by ElChristou
Steven, only our Celestial Dirkpitt can answer your question... :wink:

Posted: 18.05.2006, 14:07
by dirkpitt
To compile a Universal build, you must be running the latest Xcode on Tiger 10.4+, and also have the Mac OS X 10.2.8 and 10.4 Universal SDK's installed (use the Xcode installer to install these if you haven't already).

In the xcodeproj, select Universal_Release as your active build configuration (from the toolbar, or Project > Set Active Build Configuration).
The build will take nearly twice as long on single core machines but this is normal.

Posted: 19.05.2006, 05:43
by Orac
In general, you can make any build configuration generate universal binaries by changing its 'architectures' settings. Double click a target to bring up its target info and go to the build tab. Select 'Release' in the configuration option (or whichever build configuration you want to change). From 'Collection' select 'Architectures' (under 'General'). You should now see an architectures setting. Double click on this and you should see check boxes that let you select 'PowerPC' and/or 'Intel'.

Of course, as dirkpitt says, you need the 10.4 sdk installed.

You can use the 'file' command from the Terminal to verify wether an application is a universal binary or not. You need to apply it to the exectuable in the app bundle, not the bundle itself as follows:

file myApplication.app/Contents/MacOS/myApplication

Glad to hear this is happening

Posted: 18.06.2006, 11:37
by Startyger
I've been using celestia onon my macs for a couple of years now 1.4.1 now (isn't there a 1.4.2?) I would love to still be able to use it when i upgrade to theh next Pro desktop version with a much better video card. i have a 466GHz with a 128MB card... slow but beaautiful... now a 1.25GHz mini with a 32MB card....... fast but.... not as beautiful. I don't want to upgrade to a consumer machine again.... yeesh that was stupidtz! lol I want my fast... but i want pretty too LOL! ok.. i'll be keeping an eye out.