Home > English, Tech stuff, iPhone > Toolchain & UIKit ready

Toolchain & UIKit ready

August 23rd, 2007

Ok guys this is warning. Lots of iPhone related posts will follow. I know it’s sick and you’re not interested but there’s just too much fun going on here, sorry. This is your chance to unsubscribe this feed or drop this blog.

This post is dedicated to João Pavão and João Pedro. These two (img1, img2) images are self-explanatory. :p

Two nights struggling with pre-alpha software, sparse docs and a couple of problems due to my “non 10.4/10.3 environment”, and I finally managed to get the iPhone toolchain, cross-compiler and frameworks working, after which compiling “my” first native application for the iPhone was easy.

For those interested (again note that I’m not using 10.4 or 10.3), I used the MacPorts version of the toolchain. You’ll need XCode installed, of course. Then just follow these two simple steps:

1. cd /opt/local/arm-apple-darwin/include/;rm -fr CoreGraphics;ln -s /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreGraphics.framework/Headers CoreGraphics

2. Place this specs file in /opt/local/arm-apple-darwin/etc

That’s it. Enjoy.

mbpcelsini:helloworld celso$ make
arm-apple-darwin-cc -c hello.m -o hello.o
arm-apple-darwin-cc -c HelloApplication.m -o HelloApplication.o
arm-apple-darwin-ld -lobjc -framework CoreFoundation -framework Foundation -framework UIKit -framework LayerKit -syslibroot /opt/local/arm-apple-darwin/heavenly /opt/local/arm-apple-darwin/csu/crt1.o -lSystem -lgcc_s_v6.1 -lm -L/opt/local/arm-apple-darwin/lib -larmfp -o Hello hello.o HelloApplication.o

English, Tech stuff, iPhone

  • Uzakbay
    Hi.
    I have problem with inheritance from NSObject.

    @interface Test : NSObject
    {
    }

    when I'm trying to run my code :

    ........ _test = [[Test alloc] init];

    my iPhone is crashing.Also,I cant use any SDK objects are dyrectly inherits from the NSObject,like AVRecorder.

    Anybody have any idea what i should to do?Thanks.
  • Gus
    Crap. There goes my gadget lust from 0 to 110% in one freakin' screenshot.

    You nasty lil'e man :)

    btw, you seem to be missing an apostrophe in the comments.
  • GRUMPFFF -_-
  • I'm currently not a MAC owner but thank you for this post :o)

    It's always useful to find detailed information for something that isn't very obvious at first ;o)

    Keep sharing!

    Hugz,
    Luís
blog comments powered by Disqus