-
03-27-2008, 05:09 PM #1
Windows Cygwin Binary Toolchain and 1.1.4
Hi,
because of some problems with my syncML tool, I would like to create my first iphone app (I just started some days ago with jiggy, but now I try to change to ObjectiveC). I have found an article for installing a cygwin toolchain on iphonegameover and have done the installation strictly as described, but if I try to compile a simple HelloWorld I got linking errors
I have also tried a downloaded prebuild toolchain with an already included old iphone filesystem, here it works. When I change the iphone filesystem to my 1.1.4, the same linker error happened.
##
arm-apple-darwin-gcc -c -Wall -pipe -ansi -O3 main.m -o main.o
arm-apple-darwin-gcc -c -Wall -pipe -ansi -O3 helloWorld.m -o helloWorld.o
arm-apple-darwin-gcc -lobjc -framework CoreFoundation -framework Foundation -framework UIKit -framework LayerKit -framework CoreGraphics -o helloWorld main.o helloWorld.o
/usr/local/bin/arm-apple-darwin-ld: can't locate file for: -lcrt1.o
collect2: ld returned 1 exit status
make: *** [helloWorld] Error 1
##
What's the reason? Maybe someone can help me?
Or is it not necessary to change the toolchain to the 1.1.4 filesystem for developing?
Thanks in advantage
Frank
-
03-27-2008, 06:33 PM #2
I did not change the toolchain for 1.1.3 development except adding some headers when I needed them. It is working fine.
I don't think we will be so lucky with firmware 2.0
-
The Following User Says Thank You to NetMage For This Useful Post:
betonmoewe (03-28-2008)
-
03-28-2008, 05:22 AM #3
And how can I do that (only changing headerfiles)???
-
03-28-2008, 02:29 PM #4
When you say you changed the 'iphone filesystem', what do you mean?
When building, the toolchain uses headers, and then links against a combination of basic libraries and the frameworks included from the filesystem you provide. You can swap out the frameworks from 102, 111, 113, 114, etc, if you like, but as you found, you should not swap the entire linker path or you will have other problems (crt1...)
-
The Following User Says Thank You to Cobra For This Useful Post:
betonmoewe (03-28-2008)
-
03-28-2008, 04:15 PM #5
-
The Following User Says Thank You to NetMage For This Useful Post:
betonmoewe (03-28-2008)
-
05-04-2008, 02:30 AM #6
Succeed on Cygwin under Windows XP & Vista. (iPhone 1.1.4)
<<Windows Cygwin Binary Toolchain Installation>>
Solution for the problem: <<... /usr/local/bin/arm-apple-darwin-ld: can't locate file for: -lcrt1.o >>
..is... (step by step installation)
1)Do all the steps from the official page... (http://wiki.iphonegameover.com/Windo...n_Installation)
When asked 'Do you wish to connect to your device and download the required files?' Press n for No. <<<----
2) Decrypt a firmware ipsw manually and place the extracted filesystem in /usr/local/arm-apple-darwin/filesystem after Cygwin is installed.. (follow the next steps)
For Firmware 1.1.4 (i) get the vfdecrypt.exe from Rapid Share (http://rapidshare.com/files/11240608...crypt.rar.html) (ii) get the Apple's iPhone firmware 1.1.4 and rename it with extension .zip and unzip it (run) vfdecrypt -i 022-3894-4.dmg -o decrypted114.dmg -k d0a0c0977bd4b6350b256d6650ec9eca419b6f961f593e74b7 e5b93e010b698ca6cca1fe
download 30 day eval of TransMac? (google and you will find)
Open decrypted114.dmg with TransMac?
Extract the applications you want and transfer the to /usr/local/arm-apple-darwin/filesystem
Start the installation ..
When you see the <<Your toolchain installation is now complete!>> message...
3) Copy/Replace the lib files of the following attachment to C
cygwin\usr\local\arm-apple-darwin\filesystem\usr\lib http://rapidshare.com/files/66800884/lib.rar (14.2mb) Password for rar file is: aksblog.co.nr
4) Now you are ready to compile the first helloWorld app: http://rapidshare.com/files/11240912...World.rar.html. just decompress it in a folder e.g C
cygwin\Developer\helloWorld and run <<make>> to do the job!
Enjoy
-
05-04-2008, 10:30 PM #7
^^^Nice guide
! Maybe it will help jump start some novices into the iPhone coding scene.
Please hit the thanks button if I helped you out



LinkBack URL
About LinkBacks
Reply With Quote

