SDL, MacOSX, Universal Apps, Problem!

Started by
5 comments, last by Cubed3 17 years, 12 months ago
Ok so Im nearly finished with my Tetris game in SDL. Ive been working with XCode and Mac OS X on an Intel iMac to make this game. My problem comes from the fact that the app will not compile as a universal binary. It only compiles to Intel even though I tell it to compile ppc and i386. Im using the latest SDL Framework and latest SDL_Mixer framework. [Edited by - Cubed3 on April 15, 2006 12:51:22 PM]
Advertisement
Open your project in XCode, and 'Get Info' on the project itself (not the target, so the topmost entry in 'groups and files'). Somewhere in the Get Info window is a dropdown menu labeled 'Target SDK' or similar, and change this to '10.4 Universal' (something like that anyway, not at my Mac this minute), and that should do the trick.
Of course, this pre-supposes that you installed the Universal SDK when you installed the devel tools [smile]

Tristam MacDonald. Ex-BigTech Software Engineer. Future farmer. [https://trist.am]

Let me know if that worked for you, it now seems it doesn't work on my ppc Mac [grin]

Also check if the SDL frameworks you are linking against are universal binaries, might not work if they are x86 only.

Tristam MacDonald. Ex-BigTech Software Engineer. Future farmer. [https://trist.am]

Yah both my SDL and SDL_mixer are universal binaries however it doesn't want to make my game universal >_<
You might want to dig through Apple's documentation on the topic, I don't have time right now, but I would be interested in hearing how it is done.

Tristam MacDonald. Ex-BigTech Software Engineer. Future farmer. [https://trist.am]

I've never tried to create a universal binary, but I thought it was just as simple as going to "Get Info" on the project file, and under the General Tab, setting the target platform as 10.4 Universal.

What do you mean it "compiles to Intel" even though you tell it to compile "ppc and i386." Are two binaries supposed to show up? I thought for some reason only one binary showed up, which could run on either platform.

I dunno. I haven't read up much on it.
Well I've done all that, setting priject settings to use Mac OS X.4(Universal) and setting the architecture to i386/ppc however when I do getinfo on the compiled .app file It says Falling Blocks.app (Intel)...

Universal apps say (Universal)

Its weird and annoying :-/

This topic is closed to new replies.

Advertisement