Game Development Community

Universal Binary

by Shayaan Siddiqui · in Torque Game Engine · 02/26/2006 (2:32 pm) · 11 replies

Hello

I got Torque finally working on xCode 2.2.1

But now I want to compile as Universal Binary and I can't figure out how to do it.

Any help would be appreciated.

About the author

Recent Threads

  • Torque 3D?

  • #1
    02/26/2006 (8:09 pm)
    Have you checked Apple's developer section on Apple's site?

    Building a Universal Binary

    Hope this helps as I plan on doing the same.

    -Jeff
    #2
    02/26/2006 (10:23 pm)
    I have a book for xCode and followed the directions and it says to change the Architecture to "ppc i386" (beforeit says $(NATIVE_ARCH), which means compile it for the same platform you are using)

    and I did that It still compiles as PPC.

    Anyone?
    #3
    02/27/2006 (12:29 am)
    Modifing the 'architectures' seems to be all that is needed.

    developer.apple.com/documentation/MacOSX/Conceptual/universal_binary/art/build_options.jpg
    Did you set this: MACOSX_DEPLOYMENT_TARGET_i386 to 10.4.

    -Jeff
    #4
    02/27/2006 (1:50 am)
    I dont know why my posts keep reposting.... sorry i think Safari is acting up!

    I can't get that screen to load.

    It makes me type it in manually
    #5
    02/27/2006 (2:25 am)
    I did a quick test using an empty project and all the interface does is change it to "ppc i386', as you stated above, that was what you had done manually.

    -Jeff

    p.s. You may be able to delete the extra posts by clicking the trash can next to the message date.
    #6
    02/27/2006 (2:30 am)
    Yeah but the problem is Toque only compiles for PPC

    I can't make it compile as a UB.

    I've changed the SDK to 10.4
    architecture to ppc i386 (manually)

    cleaned the targets

    and no dice.
    #7
    02/27/2006 (10:33 am)
    What did you do (step by step) to mak a universal binary?
    #8
    02/27/2006 (10:03 pm)
    Last night, I went ahead and moved my code base over to a dual-core based mac and the road block I reached was missing OpenAL symbols. at which point, I went back to developing on my primary windows system.

    What I had to do to reach teh about point was:

    Project Info General tab:
    change 'Cross-Develop Using Target SDK: Mac OS X 10.4 (Universal)
    "/developer/SDKs/MaxOSX10.4u.sdk"

    Project Info Build tab:
    Change Architectures to 'ppc i386'

    Keep in mind that I am building on a dual-core based mac and it might have came with SDKs not available otherwise.

    -Jeff
    #9
    02/28/2006 (4:22 am)
    TGE and T2D will be updated with universal binary builds & build files shortly.
    #10
    03/04/2006 (2:02 am)
    The TGE 1.4.0u SDK and demo are live on the site, as of this morning!
    #11
    03/04/2006 (2:07 am)
    Wow you guys are FAST!

    I am having trouble understanding what exactly I am compiling... Is it a game? an editor? a Game Creator?