Building apps for PPC or Universal Binary

I’m having a hard time wrapping my head around how to build an OF app that will run on a PowerPC Mac. I tried with an empty example and opened the target info. I changed the GCC version to 4.0 so that I could build to 10.4. I removed x86_64 from the valid architectures because I seemed to remember that being strictly GCC 4.2 and that you can’t have 64 bit apps that are universal binary. Anyway… I might be totally off base with that. In any case, for the “Architectures” option, I specified 32-bit Universal.

When I build, I get some errors…

the first chunk seem GLUT related:

  "ofAppGlutWindow::ofAppGlutWindow()", referenced from:  
  "ofSetupOpenGL(ofAppBaseWindow*, int, int, int)", referenced from:  
  "vtable for ofAppGlutWindow", referenced from:  
  "ofRunApp(ofBaseApp*)", referenced from:  

and then these more cryptic errors…

  "___stack_chk_guard", referenced from:  
  "_usleep$UNIX2003", referenced from:  
  "___stack_chk_fail", referenced from:  

If I remove i386 from “Valid Architectures”, the second set of errors goes away. Still, there is probably a way to make a UB instead of a PPC-only app, but I’m probably going about this in the entirely wrong way.

If anyone can point me in the right direction, I’d greatly appreciate it.


perhaps I should mention that I am on an Intel mac running Xcode 3.2.2 / Snow Leopard / OF 0061