Just want to say thank you to Eric Albert for the coding, and Isaac
Wankerl for the site maintenance for making it so easy to move
PowerPlant programs from Metrowerks Codewarrior, to Xcode and Universal
Binaries.
If you go to the PowerPlant web page on
http://sourceforge.net/projects/open-powerplant
and use the anonymous CVS http://sourceforge.net/cvs/?group_id=156508
to
download the latest version, you get a PowerPlant that compiles for PPC
or Intel x86, and an example:
Constructor.
To get it to build with Xcode and the MacOSX10.4u.sdk, you'll need to
adjust the project to point to your copy of MoreFiles (included with
Codewarrior, downloadable from Apple.): Adjust some paths, and make sure
the type is source.c.c on the Get Info panel for those MoreFiles source
..c files.
The PPC version appears complete, from the few seconds of testing I gave
it. the Intel version runs, but doesn't appear to completely parse all
its data. Still, a very good, painless start at getting set up with
PowerPlant, Xcode, intel.
The project as it stands has in its build settings:
Architectures: ${NATIVE_ARCH}
Pressing the [Edit] button, then clicking the checkbox so that both are
on, gives you a Universal Binary.
Richard Buckle on http://www.sailmaker.co.uk/ubi_notes.html
links to
Chris Espinosa's example of building a Universal Binary that will run
under 10.3 PPC (because the PPC side uses gcc 3.3.) while the Intel side
uses the MacOSX10.4u.sdk and gcc 4.0.
With all of their work, it looks like it will be a reasonable job to
move PowerPlant programs to Mac on Intel.


|