PDA

View Full Version : Universal Binary Problems


DesertPenguin
2006.08.03, 11:19 PM
I am having difficulties creating a Universal Binary for my app.

In "Edit Project Settings" on the General Tab, I set the Target SDK to Mac OSX 10.4 (Universal).

On the Build Tab, I also set the Architectures to ppc and i386.

Everything builds ok, but the resulting app is still (Intel).


I am statically linking to two librarires (Lua and Glew). Could this be my problem? I don't understand how it could compile for ppc while statically linking with a i386 library.

Should I try to build a Framework for Lua?

Thanks for any advice
:blink:

OneSadCookie
2006.08.03, 11:37 PM
Static libraries can be universal too. There's no need to make a framework.

Check the detailed build log -- chances are there's a message in there saying exactly what went wrong. But if, as you say, you've got intel-only libraries, that's probably the reason.

In debug mode, by default, Xcode will only build for the native architecture. Make sure you're making a release build.

You may find the information here: http://tips.onesadcookie.net/tips/published/Building+Autotooled+Projects+with+Xcode+SDKs useful for building the universal libraries (yes, I know neither are autotooled, but the GCC options are still relevant).