+ Reply
Results 1 to 8 of 8

Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.


Thread: help installing toolchain

is a discussion within the

iPhone / iPod Touch SDK | Development Discussion

forums, a part of the

3rd Party Apps For iPhone | iPod Touch

section;
Hey guys I'm running mac osx 10.5 or whatever the latest is and getting frustrated. Bought a book even on installing/developing iphone apps via toolchain etc (a new pdf book
...
  1. #1
    iPhone? More like MyPhone
    Join Date
    Sep 2007
    Location
    Australia
    Posts
    122
    Thanks
    7
    Thanked 16 Times in 9 Posts

    Default help installing toolchain
    Hey guys

    I'm running mac osx 10.5 or whatever the latest is and getting frustrated.

    Bought a book even on installing/developing iphone apps via toolchain etc (a new pdf book from oreiley) and am getting errors and am getting SOOO confused.
    yes i've doen the iphone-filesystem, the heavenly path setup etc but still a few errors... nab damnit!

    If anyone is available with some free time, (I'm in Aus fyi), please PM me and we can probably chat via msn or whatever to get this going.

    I keep getting errors, and tried xcode, pointing the uikit and framework to the right directory, and i get error code 2 when trying to build...

    if there's a simple solution for this, please let me know as i said.. if not, pl help :-( was getting excited about building, but now am not so... hehe

    thanks in advance...
    Unable to restore signature. Error (1015)

  2. #2
    Developer NetMage's Avatar
    Join Date
    Aug 2007
    Location
    Virginia
    Posts
    1,296
    Thanks
    72
    Thanked 210 Times in 168 Posts

    Can you post some sample error output if you try to run a Makefile?

    (Fair disclosure, I develop on Windows with the toolchain)
    Starlight Computer Wizardry
    Pocket-sized Development
    Follow me on twitter: @NetMage

  3. #3
    iPhone? More like MyPhone
    Join Date
    Sep 2007
    Location
    Australia
    Posts
    122
    Thanks
    7
    Thanked 16 Times in 9 Posts

    thanks.. there r 5 warnings in total.. (btw: I'm just compiling 'FlipACoin' - a sample one to make sure it works.

    yellow triangle: ignoring old commands for target '/users/maccy/untitled'
    yellow triangle: ignoring old commands for target '/users/maccy/untitled'
    yellow triangle: overriding commands for target '/users/maccy/untitled'
    yellow triangle: overriding commands for target '/users/maccy/untitled'
    command /usr/bin/make failed with exit code 2

    hope this helps (from xcode of course)
    Unable to restore signature. Error (1015)

  4. #4
    Developer NetMage's Avatar
    Join Date
    Aug 2007
    Location
    Virginia
    Posts
    1,296
    Thanks
    72
    Thanked 210 Times in 168 Posts

    Where did you get the FlipACoin demo?

    From what I can see on the web, the Makefile is for the old toolchain, not the latest and won't work. I'm not sure about the XCode part.

    Is untitled the name of your XCode project?
    Starlight Computer Wizardry
    Pocket-sized Development
    Follow me on twitter: @NetMage

  5. #5
    iPhone? More like MyPhone
    Join Date
    Sep 2007
    Location
    Australia
    Posts
    122
    Thanks
    7
    Thanked 16 Times in 9 Posts

    it's just called FlipACoin
    Maybe it's an old version or something - all i know is i had a few errors following guides to install/compile toolchain, but read somewher (can't remember where) that errors were not important :-(
    I think i've just stuffed up the install somehow, but havn't done anything :-(

    installing cygwin section for windows xp on my other laptop...
    Do you have much experience with this? as i'd like to develop with this if it works.. just need to know how to compile etc... any good tutorials recommended?
    i'm using the guide to install at iphonegameover (dot) com.
    thanks.

    it's just called FlipACoin
    Maybe it's an old version or something - all i know is i had a few errors following guides to install/compile toolchain, but read somewher (can't remember where) that errors were not important :-(
    I think i've just stuffed up the install somehow, but havn't done anything :-(

    i've followed exact instructions as available on most sites - just got a lot of errors here and there... tried the automatic install etcf etc but still no go... might give up ? :-(

    and no- untitled is just a directory

    UPDATE:
    Installed all iphone toolchains and updated headers no probs... i still get this 'make' error...
    any help appreciated
    Last edited by renzo75; 02-09-2008 at 03:29 AM. Reason: Automerged Doublepost
    Unable to restore signature. Error (1015)

  6. #6
    Developer NetMage's Avatar
    Join Date
    Aug 2007
    Location
    Virginia
    Posts
    1,296
    Thanks
    72
    Thanked 210 Times in 168 Posts

    What's much experience?

    Not sure about tutorials - there's another thread here that discusses resources for developers that lists some good web sites. I suggest buying some Cocoa programming books - or the O'Reilly book that's in PDF right now.

    Here is the Makefile from my FlipACoin working on the cygwin toolchain:
    Code:
    PRODUCT_NAME = FlipACoin
    BUILT_PRODUCTS_DIR=./
    SRCROOT=./
    CONFIGURATION_TEMP_DIR=./obj
    
    INFOPLIST_FILE=Info.plist
    SOURCES=\
    	main.m \
    	FlipACoinApp.m \
    	FCCoinView.m
    
    CC=arm-apple-darwin-gcc
    CFLAGS=-g -O2 -Wall
    LD=$(CC)
    LDFLAGS=-lobjc -framework CoreFoundation -framework Foundation -framework CoreGraphics -framework GraphicsServices -framework UIKit -framework LayerKit
    
    WRAPPER_NAME=$(PRODUCT_NAME).app
    EXECUTABLE_NAME=$(PRODUCT_NAME)
    SOURCES_ABS=$(addprefix $(SRCROOT)/,$(SOURCES))
    INFOPLIST_ABS=$(addprefix $(SRCROOT)/,$(INFOPLIST_FILE))
    OBJECTS=\
    	$(patsubst %.c,%.o,$(filter %.c,$(SOURCES))) \
    	$(patsubst %.cc,%.o,$(filter %.cc,$(SOURCES))) \
    	$(patsubst %.cpp,%.o,$(filter %.cpp,$(SOURCES))) \
    	$(patsubst %.m,%.o,$(filter %.m,$(SOURCES))) \
    	$(patsubst %.mm,%.o,$(filter %.mm,$(SOURCES)))
    OBJECTS_ABS=$(addprefix $(CONFIGURATION_TEMP_DIR)/,$(OBJECTS))
    APP_ABS=$(BUILT_PRODUCTS_DIR)/$(WRAPPER_NAME)
    PRODUCT_ABS=$(APP_ABS)/$(EXECUTABLE_NAME)
    
    all: $(PRODUCT_ABS)
    
    $(PRODUCT_ABS): $(APP_ABS) $(OBJECTS_ABS)
    	$(LD) $(LDFLAGS) -o $(PRODUCT_ABS) $(OBJECTS_ABS)
    
    $(APP_ABS): $(INFOPLIST_ABS)
    	mkdir -p $(APP_ABS)
    	cp $(INFOPLIST_ABS) $(APP_ABS)/
    	cp $(SRCROOT)/$(RESOURCES)/*.png $(APP_ABS)/
    
    $(CONFIGURATION_TEMP_DIR)/%.o: $(SRCROOT)/%.m
    	mkdir -p $(dir $@)
    	$(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
    
    clean:
    	echo rm -f $(OBJECTS_ABS)
    	echo rm -rf $(APP_ABS)
    Last edited by NetMage; 02-09-2008 at 04:52 PM. Reason: fixed backslashes - lost with every edit!
    Starlight Computer Wizardry
    Pocket-sized Development
    Follow me on twitter: @NetMage

  7. #7
    JLA
    JLA is offline
    Developer
    Join Date
    Oct 2007
    Posts
    224
    Thanks
    1
    Thanked 31 Times in 24 Posts

    I would try something else besides flipacoin. There is a bunch of sample source code on Google Code. And I would run it from terminal until you get stuff working...then try XCode.

  8. #8
    iPhone? More like MyPhone
    Join Date
    Sep 2007
    Location
    Australia
    Posts
    122
    Thanks
    7
    Thanked 16 Times in 9 Posts

    Thanks for your advice guys..

    re: or the O'Reilly book that's in PDF right now.
    that's what I have - and errors running things to get toolchain going, but have fixed it thanks to a script i found... hehe...
    i'll hunt around google for some code and give it a go on terminal using 'make' as i've read...
    thanks.
    Unable to restore signature. Error (1015)

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts