New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

Start a Discussion

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

Compiling for Release on PPC Architecture

Post Reply New Thread Subscribe

Thread Tools

MichiganDavid's Avatar
Member Since: Jan 21, 2009
Location: Midland, Michigan
Posts: 9
MichiganDavid is on a distinguished road
Mac Specs: MB Pro, 17", 2.5 GHz Intel

MichiganDavid is offline
I have just completed a C++ utility (no gui). I would now like to compile it for use on other computers. I set the Xcode "active build configuration" for "release", but the application that was in the "Release" folder did not run properly. The copy in the "debug" folder did run, however.

I copied this application from the debug folder to a different computer with a different architecture. The program was developed on an Intel mac and I want to run it on a PPC G3. When I launched the application, it exited with a complaint about being the wrong processor. The build settings are set for "32-bit universal" and the valid architectures are VALID_ARCHS = i386 ppc ppc64 ppc7400 ppc970 x86_64, according to build settings.

I would appreciate any help you can provide.

QUOTE Thanks

Member Since: Mar 15, 2007
Posts: 161
mystic_fm will become famous soon enough
Mac Specs: 17" MacBook Pro, 2.33GHz C2D, 2GB RAM

mystic_fm is offline
For problem 1 (release build doesn't run right): when a release build doesn't work right even though the debug build does, it is often a bug with some variable that is uninitialized. Release builds may not initialize things by default the same way that debug builds do.

For problem 2 (debug build not working on a PPC): check which configuration those build settings were for, and check if the "Build for Active Architecture Only" option is selected (which I believe it is by default for debug builds). I'd guess the latter is giving you an Intel-only debug build.
QUOTE Thanks

Post Reply New Thread Subscribe

« Using gettimeofday to compute reaction times | Default path changed »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Starter
Last Post
PPC Software End of Life? Mr. Swillis OS X - Apps and Games 8 02-06-2010 07:21 AM
Problems compiling a library Guandalug OS X - Development and Darwin 2 11-20-2008 03:57 PM
PPC software compatability on Intel Macs GWR OS X - Apps and Games 4 01-28-2007 02:36 PM
Intel, PPC & Apple RobHague Apple Rumors and Reports 9 09-27-2005 10:09 AM
PPC 970 Timeline schweb Apple Rumors and Reports 9 05-14-2003 02:57 PM

All times are GMT -4. The time now is 05:44 PM.

Powered by vBulletin
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.

Welcome to

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!

(4 digit year)

Already a member?