01-30-2009, 09:10 PM #1Compiling for Release on PPC Architecture
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.
01-30-2009, 10:08 PM #2
- Member Since
- Mar 15, 2007
- 17" MacBook Pro, 2.33GHz C2D, 2GB RAM
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.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By Rossatron in forum OS X - Operating SystemReplies: 8Last Post: 11-12-2012, 06:33 PM
By gomicego in forum Switcher HangoutReplies: 3Last Post: 04-21-2012, 03:49 AM
By Wing Lam in forum Apple DesktopsReplies: 2Last Post: 05-06-2010, 05:50 PM
By corbs92 in forum OS X - Apps and GamesReplies: 1Last Post: 02-13-2008, 10:22 AM
By jo5ephedward5 in forum OS X - Apps and GamesReplies: 2Last Post: 11-22-2006, 07:47 PM