Page 2 of 2 FirstFirst 12
Results 21 to 40 of 40

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


Thread: For Windows iPhone Would-Be Developers: Does this interest you?

  1. #21
    wow amazing job! hasnt tried it yet but i already tried to make the toolchain and failed in the last step- I hope it will work now!

    anyway, dont put too much work for it my friend, as in 2 mounts the official SDK will be release anyway.

    but i saw both of your windows-apps and they both very impressive... gg!

  2. #22
    Okay! First off I have to thank you so much for pulling these tools together! I have been so lost with any kind of Windows toolchain so far!

    However, when I try to 'make' my app I get an error in cygwin: "make: *** No rule to make target '/iphone-apps/FirstApp/Info.plist', needed by '/FirstApp.app'. Stop."

    Any ideas?
    Last edited by jvoni; 12-05-2007 at 02:38 AM. Reason: Automerged Doublepost

  3. #23
    @jvoni: Happens to me too... Are you sure you put all the files in "/iphone-apps/FirstApp"? If you can't figure it out, try moving the Info.plist somewhere temporarily, building, and then copying it to "/FirstApp.app". Also, editing the Makefile can probably fix this somehow. I'll look into it.


    Anshu Chimala
    Follow @anshuchimala on Twitter
    Visit http://www.airpoke.com, my latest project for iPhone/iPod touch.

  4. The Following User Says Thank You to Drakenza For This Useful Post:

    michelkenny (12-30-2007)

  5. #24
    Hey Drakenza do you have any idea about the "no wifi" issue that many users have?
    I personnaly ( and many many others) tried ALL the posible solution guides with no luck!

    Thanks in advance!

  6. #25
    Can you post your Makefile? Where did it come from?

  7. #26
    @NetMage: This is my makefile for a Hello World application I wrote.

    Code:
    INFOPLIST_FILE=Info.plist
    SOURCES=
    	main.m 
    	TestApp.m
    
    CC=arm-apple-darwin-gcc
    CFLAGS=-g -O2 -Wall
    LD=$(CC)
    #LDFLAGS=-Wl,-syslibroot,/usr/local/arm-apple-darwin/heavenly -I/usr/local/arm-apple-darwin/include -lobjc -ObjC -framework CoreFoundation -framework Foundation -framework CoreGraphics -framework GraphicsServices -framework UIKit -framework LayerKit
    LDFLAGS=-lobjc -framework CoreFoundation -framework Foundation -framework UIKit -framework LayerKit
    
    # DEFINE THESE
    PRODUCT_NAME=TestApp
    SRCROOT=/iphone-apps/Test
    
    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)/
    
    $(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)


    Anshu Chimala
    Follow @anshuchimala on Twitter
    Visit http://www.airpoke.com, my latest project for iPhone/iPod touch.

  8. The Following 2 Users Say Thank You to Drakenza For This Useful Post:

    michelkenny (12-30-2007), quocanh001 (12-07-2007)

  9. #27
    Gosh - a little complicated, no?

    In any case, if you have Info.plist in your /iphone-apps/Test directory, this works for me:

    Code:
    INFOPLIST_FILE=Info.plist
    SOURCES= \
    	main.m \ 
    	TestApp.m
    
    CC=arm-apple-darwin-gcc
    CFLAGS=-g -O2 -Wall
    LD=$(CC)
    #LDFLAGS=-Wl,-syslibroot,/usr/local/arm-apple-darwin/heavenly -I/usr/local/arm-apple-darwin/include -lobjc -ObjC -framework CoreFoundation -framework Foundation -framework CoreGraphics -framework GraphicsServices -framework UIKit -framework LayerKit
    LDFLAGS=-lobjc -framework CoreFoundation -framework Foundation -framework UIKit -framework LayerKit
    
    # DEFINE THESE
    PRODUCT_NAME=TestApp
    SRCROOT=/iphone-apps/Test
    BUILT_PRODUCTS_DIR=$(SRCROOT)
    CONFIGURATION_TEMP_DIR=$(SRCROOT)/Temp
    
    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)/
    
    $(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; 12-08-2007 at 12:35 AM. Reason: replace backslashes

  10. #28
    You are the God, Drakenza. This is exactly what I have been looking for. THANKSSSSSS

  11. #29
    Yeah I've just gotta say thanks! I've been waiting for this so I don't have to emulate osx.

  12. #30
    Green Apple
    Join Date
    Nov 2007
    Location
    Glendale CA
    Posts
    62
    Thanks
    30
    Thanked 1 Time in 1 Post
    is anyone else getting

    "makefile:3: *** commands commence before first target. Stop."

  13. #31
    Quote Originally Posted by ybahman View Post
    is anyone else getting

    "makefile:3: *** commands commence before first target. Stop."
    You get that because line 2 does not end with a backslash. A few lines in the file should have a backslash on the end to indicate they continue to the next line.

    See my post above - I added in the backslashes.
    Last edited by NetMage; 12-08-2007 at 12:37 AM.

  14. #32
    I'm definitely interested. If you can't find a site, I can upload it.

  15. #33
    Yes, NetMage is right, you need the backslashes (these are generated with the project generator properly, so I assume they just disappeared when I pasted the stuff onto the site.)

    Anyway, glad you all like it.


    Anshu Chimala
    Follow @anshuchimala on Twitter
    Visit http://www.airpoke.com, my latest project for iPhone/iPod touch.

  16. The Following User Says Thank You to Drakenza For This Useful Post:

    michelkenny (12-30-2007)

  17. #34
    Green Apple
    Join Date
    Nov 2007
    Location
    Glendale CA
    Posts
    62
    Thanks
    30
    Thanked 1 Time in 1 Post
    I see, that was probably part of the problem. I managed to fix it this morning.

    Here's what happens so i can hopefully save others some time.
    It's was a pretty simple and stupid problem, apparently when i unrared the prebuilttoolchain.rar to my desktop some of the files were not extracted because the filename would end up being greater than 260 characters. so i just reextracted it to my C drive

  18. #35
    This is Great i wish the Rar was smaller cause i have 28:53:05( Elapsed: 16:57:32 and counting) hours left
    well i will be enjoying snow during this time But over all this is going to be awesome

  19. #36
    @budm: Can't do much about the RAR size, other than shaving off some files in there that are precautionary but probably unnecessary. All that would do would reduce it by maybe 30-40 MB but may cause instability... Are you using the torrent, btw, or the Megaupload link?


    Anshu Chimala
    Follow @anshuchimala on Twitter
    Visit http://www.airpoke.com, my latest project for iPhone/iPod touch.

  20. The Following User Says Thank You to Drakenza For This Useful Post:

    michelkenny (12-30-2007)

  21. #37
    Developer
    Join Date
    Nov 2007
    Posts
    12
    Thanks
    0
    Thanked 4 Times in 1 Post
    Well I managed to get the toolchain started (kind of), and I get this error

    The procedure entry point _impure_ptr could not be located in the dynamic link library cygwin1.dll

    any ideas on that one ?


    In the end, I had to make a few changes to the makefile so I hope it isn't that that is the problem. It couldn't find the compiler, so I had to change it to

    CC=../../usr/local/bin/arm-apple-darwin-gcc

    as the path was up from my build directory. I also had to change the source directory to current, and add the lines shown by NetMage

    SRCROOT=.
    BUILT_PRODUCTS_DIR=$(SRCROOT)
    CONFIGURATION_TEMP_DIR=$(SRCROOT)/Temp


    So is it because I am trying to compile the template App, or should the template app compile just fine and I have a problem somewhere ? I suspect it is a path issue, as it couldn't find the compiler.

    The absolute path should be /cygwin/usr/local/bin/arm-apple-darwin-gcc but using that doesn't work either..... :-(

    anyone got any ideas ?

  22. #38
    Developer
    Join Date
    Nov 2007
    Posts
    12
    Thanks
    0
    Thanked 4 Times in 1 Post
    Hmmm, in response to my post above, I have to say that I don't think Cygwin is installed properly. I also had a previous version of Msys installed, and I think one was upsetting the other. I removed Msys, and used the Winchain installer to re-install cygwin from scratch (from the pre-compiled toolchain)

    However, using winchain, it never highlights the install cygwin dialog button, which I was hoping would set up my environment variables properly. What is wrong with the application ? I don't know. Still can't get it to work, and now can't even get it as far in building as it used to get (which was a bad fatal error as far as I can tell)

    My makefile is now this, and it still doesn't work

    INFOPLIST_FILE=Info.plist
    SOURCES=\
    main.m \
    TestApp.m

    CC=/cygwin/usr/local/bin/arm-apple-darwin-gcc
    CFLAGS=-g -O2 -Wall
    LD=$(CC)
    LDFLAGS=-lobjc -framework CoreFoundation -framework Foundation -framework UIKit -framework LayerKit
    PRODUCT_NAME=TestApp
    SRCROOT=/cygwin/iphone-apps/TestApp
    BUILT_PRODUCTS_DIR=$(SRCROOT)
    CONFIGURATION_TEMP_DIR=$(SRCROOT)/Temp

    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)/

    $(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)


    I now get as a result of my clean re-installation

    mkdir -p /cygwin/iphone-apps/TestApp/Temp/
    /cygwin/usr/local/bin/arm-apple-darwin-gcc -g -O2 -Wall -c /cygwin/iphone-apps/TestApp/main.m -o /cygwin/iphone-apps/TestApp/Temp/main.o
    make: *** [/cygwin/iphone-apps/TestApp/Temp/main.o] Error 57


    I can see me giving up on this precompiled toolchain malarky and doing it myself from scratch. I am fairly certain it doesn't work ....

  23. #39
    What's Jailbreak?
    Join Date
    Jan 2011
    Posts
    4
    Thanks
    0
    Thanked 2 Times in 1 Post
    Has anyone compiled anything on this yet? Or a link to another toolchain would be nice.

  24. #40
    Post Change Platform
    Hi,
    This is Very Nice, First Tell Me Is this Possible In Window 7 ?.
    If Yes the How Please Give me Step of the How I can use this Winchain Because of I familiar with Mac Os now I want to try on window ? IF Possible then How?
    Different coding style is there ?. If yes Then How i can use Mac OS Code in WinChain ?

    Give me Reply Please Hurry........?


    Thanks,
    Dhaval Patel

Page 2 of 2 FirstFirst 12
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •