Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.
Thread: For Windows iPhone Would-Be Developers: Does this interest you?
is a discussion within theOS Apps and Development
forums, a part of theComputer Modding Software
section;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
...-
12-03-2007, 10:29 PM #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!
-
12-05-2007, 12:55 AM #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 01:38 AM. Reason: Automerged Doublepost
-
12-05-2007, 07:52 AM #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.
-
The Following User Says Thank You to Drakenza For This Useful Post:
michelkenny (12-30-2007)
-
12-05-2007, 08:37 AM #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!
-
12-06-2007, 04:03 PM #25
Can you post your Makefile? Where did it come from?
-
12-06-2007, 08:09 PM #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.
-
The Following 2 Users Say Thank You to Drakenza For This Useful Post:
michelkenny (12-30-2007), quocanh001 (12-07-2007)
-
12-06-2007, 11:47 PM #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-07-2007 at 11:35 PM. Reason: replace backslashes
-
12-07-2007, 08:10 AM #28
You are the God, Drakenza. This is exactly what I have been looking for. THANKSSSSSS
-
12-07-2007, 09:42 AM #29
Yeah I've just gotta say thanks! I've been waiting for this so I don't have to emulate osx.
-
12-07-2007, 10:07 PM #30
is anyone else getting
"makefile:3: *** commands commence before first target. Stop."
-
12-07-2007, 11:33 PM #31
-
12-07-2007, 11:40 PM #32
I'm definitely interested. If you can't find a site, I can upload it.
-
12-08-2007, 10:52 AM #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.
-
The Following User Says Thank You to Drakenza For This Useful Post:
michelkenny (12-30-2007)
-
12-08-2007, 11:33 AM #34
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
-
12-09-2007, 07:06 AM #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
-
12-10-2007, 12:07 PM #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.
-
The Following User Says Thank You to Drakenza For This Useful Post:
michelkenny (12-30-2007)
-
01-06-2008, 12:40 PM #37
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 ?
-
01-07-2008, 01:26 PM #38
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 ....
-
01-25-2011, 01:56 PM #39
Has anyone compiled anything on this yet? Or a link to another toolchain would be nice.
-
06-07-2011, 11:10 PM #40
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




LinkBack URL
About LinkBacks
Reply With Quote

