Creating universal binary(ppc/i386) with XCode 3.1.2

Member
Posts: 29
Joined: 2008.10
Post: #1
I've been struggling to create a universal binary with XCode 3.1.2 on a specific rather large project but failed. All of my libraries included in the project are for two architectures ppc and i386. Whenever i build the project and use file on it i get:

myproject (for architecture i386): Mach-O executable i386
myproject (for architecture ppc7400): Mach-O executable ppc

Notice there is ppc7400 not ppc. This won't work on Mac os X Tiger for example and support for that os is a must for me.

Looking at project properties i can read this:

Architectures: Standard (32-bit Universal)
Base SDK : Mac OS X 10.4

I compiled other libraries(i did not do the setup for them, it was already done) on the same mac for architectures: ppc and i386. I'm wondering what am i missing that a receive ppc7400 and not ppc.
Quote this message in a reply
DoG
Moderator
Posts: 869
Joined: 2003.01
Post: #2
You have to do a bit of manual lipo'ing if you want to build for 10.3, as building against the 10.3 SDK is only supported for PPC, but you need 10.4 for Intel targets. So you need to build the 10.3 PPC target, the 10.4 Intel target, and merge the two into a UB. I'm sure google/cocoadev can help you further.
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  stdlib and i386/ppc NelsonMandella 7 4,868 May 28, 2009 02:46 PM
Last Post: AnotherJake
  Universal Binary on PPC : a few questions frozax 6 3,694 Mar 7, 2008 04:02 PM
Last Post: frozax
  Universal Binary skyhawk 3 2,945 Feb 4, 2008 11:52 PM
Last Post: sohta
  Universal binary? mac_girl 9 4,822 Jan 13, 2007 11:02 PM
Last Post: Frank C.
  Universal Binary Problems DesertPenguin 1 2,227 Aug 3, 2006 07:37 PM
Last Post: OneSadCookie