[Fwd: Re: [fltk.development] Re: [Library] r5178-inbranches/branch-1.1:. src]

Hello !

It is not possible to do this - as I’ve mentioned in several other
posts in this thread, only the Intel installs of MacOS X include
Universal libraries and frameworks, so you have to build on Intel
and then test/validate on PPC.

This will change in MacOS X 10.5…

Is this correct ?

CU

Le 7 juin 06 ? 23:13, Torsten Giebl a ?crit :

Hello !

It is not possible to do this - as I’ve mentioned in several other
posts in this thread, only the Intel installs of MacOS X include
Universal libraries and frameworks, so you have to build on Intel
and then test/validate on PPC.

This will change in MacOS X 10.5…

Is this correct ?

I think this is wrong – but I didn’t try – if you have xcode 2.3.
See this page [1], under ‘General issues’ and ‘Installation notes’.
You’ll need to install the CrossDevelopment.mpkg (which is done
by default iirc).

Daniel

[1] http://developer.apple.com/tools/xcode/update.html

Hello !

It is not possible to do this - as I’ve mentioned in several other
posts in this thread, only the Intel installs of MacOS X include
Universal libraries and frameworks, so you have to build on Intel
and then test/validate on PPC.

This will change in MacOS X 10.5…

Is this correct ?

No it is incorrect. I am looking at my PPC g5’s developer directory
and I see the 10.4u SDK installed and useable. The ‘u’ stands for
’universal’.
Of course you cannot test the Intel branch on PPC :wink:

Daniel

“Few people are capable of expressing with equanimity opinions which
differ from the prejudices of their social environment. Most people
are not even capable of forming such opinions.”

  • EinsteinOn Jun 7, 2006, at 14:13, Torsten Giebl wrote:

It is not possible to do this - as I’ve mentioned in several other
posts in this thread, only the Intel installs of MacOS X include
Universal libraries and frameworks, so you have to build on Intel
and then test/validate on PPC.

This will change in MacOS X 10.5…

Is this correct ?

No, this is not correct. (There would have been riots by Mac
developers if this was the case.) Xcode 2.1+ ships with the tool set
you need to build Universal Binaries. They basically modified gcc to
access its cross compiler features and leveraged the dormant fat
binaries features left over from the NeXT days. Xocde includes the
10.4 Universal SDK which basically contains copies of all the standard
OS X frameworks, but built as Universal binaries so you can build
against them to produce your own Universal binaries. If you don’t
believe me, check out
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks and you’ll
see the same list of frameworks as in your /System/Library/Frameworks.
But if you examine the binaries in the frameworks (using Get Info or
lipo), you’ll see they are all built as Universal.

Testing is another matter though. You can’t really “test” if the i386
code works correctly from using only a PPC machine. If your code is at
a high level where none of your code is architecture/endian dependent,
you can try “trusting” that the underlying frameworks got stuff right
, in which case testing on just PPC might be sufficient for you if you
have a huge amount of faith in everything. If you have an Intel
machine, you have the possibility of running through Rosetta to test
PPC, but you have to have faith that Rosetta behaves exactly like
running on a real PPC.

-Eric