Toolchain for iOS 4.2
#1
Posted 28 January 2011 - 03:57 PM
After succesfully building my toolchain for iOS on Linux, I've found it quite hard to extract the neccessary frameworks and headers from the official SDK. For your convenience, I've whipped up the 4.2 version of "sysxx.tgz" (you know, those random files bouncing on the Net lol).
Here you are (it's almost 1 gig): http://www.2shared.c...d/sys42tar.html
Regards, Arpad
EDIT: I also decided to post the prebuilt toolchain. Confirmed to work on Ubuntu linux x64 with iOS 4. NOTE: because I built it, for your home directory it won't find the sys42 files, so you have to explicitly add -isysroot /home/path/to/sys42 to your Makefile/CFLAGS. Here you go: http://www.2shared.c..._iOS_42tar.html
Edited by H2CO3, 29 January 2011 - 12:59 AM.
#2
Posted 06 February 2011 - 11:52 AM
#3
Posted 14 February 2011 - 09:26 AM
If you have downloaded these tarballs, could you please give me some feedback? I saw that three people have already downloaded it and wanna know whether it works or not. Thank you! :-)
I am currently downloading them...Correct me if I am wrong but can't the frameworks be extracted from the iPhone firmware itself? Oh also what's the significance of the sysxx.tgz file? Thanks.
#4
Posted 14 February 2011 - 09:44 AM
The prebuilt toolchain is only the compiler and the Objective-C runtime library, where the sys42.tgz contains the framework headers/libraries (i. e. UIKit, Foundation, CoreLocation etc.) Without these frameworks, you won't be able to e. g. write an app with a GUI.
#5
Posted 14 February 2011 - 10:39 AM
From iOS 3.1 and on, the binaries of the frameworks are no longer present in the iPhone's filesystem iteself.
The prebuilt toolchain is only the compiler and the Objective-C runtime library, where the sys42.tgz contains the framework headers/libraries (i. e. UIKit, Foundation, CoreLocation etc.) Without these frameworks, you won't be able to e. g. write an app with a GUI.
Oh OK Thanks
#6
Posted 15 February 2011 - 01:33 AM
#7
Posted 15 February 2011 - 09:39 AM
#8
Posted 15 February 2011 - 09:56 AM
#9
Posted 16 February 2011 - 02:12 AM
Forgot to mention that I had migrated domains. The toolchain downloads are now at the following URLs:
http://repo.maliciou..._iOS_4.2.tar.gz
http://repo.maliciou...ls/sys42.tar.gz
Enjoy and don't forget to thank H2CO3 for making such fine utilities available!
Edited by zygh0st, 30 June 2011 - 09:24 PM.
links are dead and user is notified
#10
Posted 17 February 2011 - 04:46 PM
#11
Posted 18 February 2011 - 04:15 AM
Fine, thanx a lot! Did you do somthing already?
Unfortunately, my primary laptop just took a big crap on me. I still have a backup Ubuntu one though so I'm going to drop the toolchain on it and see what I can figure out. I wasn't completely certain whether the toolchain tar was meant to be unzipped to the root to match the filesystem or not, either (simple tasks are my downfall, just can't do it if it's painfully obvious to others); but that's easy enough to figure out. If it doesn't work one way go the other, haha.
#12
Posted 18 February 2011 - 06:07 AM
#13
Posted 22 February 2011 - 11:50 AM
No, if it was meant to be extracted as per the system root, I would have provided it as a deb. You just extract it to e. g. ~/ and then set the sysroot (<DIR_WHERE_YOU_EXTRACTED>/toolchain/sys) in a makefile (except if your username is also H2CO3, because gcc looks for sysroot according ti the build environmrnt.
#14
Posted 28 February 2011 - 03:12 PM
Right on, that makes sense; which is why it wasn't obvious to me haha. Geeze I haven't seen any C based anything in a long time, I feel like a n00b again. It'll be good to relearn since I've never worked with ARM anyway. Kind of off topic here, but I've been wondering if it were possible to build applications using the GTK+ framework if one were to port it to the iOS, but I haven't looked into it at all. It was something I just happened to randomly think of. What are you using for your IDE? Trusty vim?
IDE = Gedit + Terminal + Makefile LOL (TBH it's not worth bothering with GTK, UIKit is much comfortable for devs. And porting to iOS sucks. I mean it sucks. I don't think one will ever be able to compile GTK for iOS.)
Edited by H2CO3, 28 February 2011 - 03:13 PM.
#15
Posted 09 March 2011 - 06:38 PM
Alrighty! Took a bit because I had a network outage (at home not with the server.) There you have it though, go nuts! If you need any other large files mirrored let me know, I'd be happy to help you out any way I can.
prebuilt_toolchain_iOS_4.2.tar.gz Mirrored @ objectivenoeses.com
sys42.tar.gz Mirrored @ objectivenoeses.com
Damn man! Thanks for that mirror, got like 10 mb/s!
#16
Posted 10 March 2011 - 08:27 AM
Thanks man!
I've downloaded the two tarballs and unzipped it in my computer (I'm using Ubuntu 32 bits).
Correct me if I'm wrong but now I just have to modify some Makefile lines to match the toolchain and the headers?
Something like:
CC=/home/personal_folder/prebuilt_toolchain_iOS_4.2/pre/bin/arm-apple-darwin9-gcc ... LDFLAGS += -F"/home/personal_folder/sys42/System/Library/Frameworks"
I'm a noob at this...
Sorry for my bad english
#17
Posted 15 March 2011 - 10:31 AM
Hi,
Thanks man!
I've downloaded the two tarballs and unzipped it in my computer (I'm using Ubuntu 32 bits).
Correct me if I'm wrong but now I just have to modify some Makefile lines to match the toolchain and the headers?
Something like:CC=/home/personal_folder/prebuilt_toolchain_iOS_4.2/pre/bin/arm-apple-darwin9-gcc ... LDFLAGS += -F"/home/personal_folder/sys42/System/Library/Frameworks"
I'm a noob at this...
Sorry for my bad english
Yeah, sure. Just modify the location as per your system configuration. Even LDFLAGS += -F"/home/personal_folder/sys42/System/Library/Frameworks" is unneccesary (gcc automagically looks for the framework headers and binaries in <sysroot>/System/Library/Frameworks).
Good luck!
#18
Posted 16 March 2011 - 09:11 AM
I'm gonna try this tonight.
Edited by heyyo, 17 March 2011 - 04:55 PM.
#19
Posted 17 March 2011 - 05:07 PM
Then I tried to execute only gcc but always the same error:
./arm-apple-darwin9-gcc: 1: ELF: not found
./arm-apple-darwin9-gcc: 2: Syntax error: Unterminated quoted string
Has someone got this error?
#20
Posted 27 May 2011 - 03:19 AM
Bad news
, I've tested with a simple HelloWorld but it throw me an error when I do the make.
Then I tried to execute only gcc but always the same error:
./arm-apple-darwin9-gcc: 1: ELF: not found
./arm-apple-darwin9-gcc: 2: Syntax error: Unterminated quoted string
Has someone got this error?
This error is because this Toolchain was compiled using ubuntu 64bits.
I had this same error with Ubuntu 32bits. After change to Ubuntu64 10.10
./arm-apple-darwin9-gcc is now running.
i've unpacked the toolchain in the folder /home/h2co3/ios-
toolchain/toolchain
and the headers in /home/h2co3/ios-toolchain/toolchain/sys folder
I´ve download HelloToolchain from
http://code.google.c...phonedevonlinux, edited Makefile for the gcc
path end executed make.
After, i copied the Hellotoolchain.app folder generated to the iPhone Application
folder, changed the files HelloToolchain and
HelloToolchan_ permission to 755 and restarted Springboard.
Voila!!!

It´s works!!
Sorry for my bad english.
Thanks
CFolly











Sign In
Create Account
Back to top










