Welcome, guest ( Login )

Create new page

Invite people

WikiHome » ToolchainInstallation

ToolchainInstallation

Version 35, changed by admin. 07/27/2008.   Show version history

new v04
Kroo's Mac OS X Toolchain installer package is available in the following locations:

Post Install Step 1: Setting up the iPhone firmware files

After installation, copy everything in your heavenly dmg to /Developer/SDKs/iPhone/heavenly/ then copy /Developer/SDKs/iPhone/lib/libarmfp.dylib to /Developer/SDKs/iPhone/heavenly/usr/lib

Note: /Developer/SDKs/ can only be written to as root, so use "su" to create the /Developer/SDKs/iPhone/heavenly/ folder and to execute the "cp -R" command to copy the dmg contents into that folder.

Example:

sudo su
<enter password>
mkdir /Developer/SDKs/iPhone/heavenly
cp -R /Volumes/Heavenly1A543a.UserBundle/* /Developer/SDKs/iPhone/heavenly/
cp /Developer/SDKs/iPhone/lib/libarmfp.dylib /Developer/SDKs/iPhone/heavenly/usr/lib
exit

Post Install Step 2: Adding the compiler to your path
Note: If you have not changed your shell (from the default bash), you can skip this step

Edit ~/.bash_profile and add /Developer/SDKs/iPhone/bin/ to it.

If you don't have a ~/.bash_profile at all, create the file and make it look like this:

PATH="/Developer/SDKs/iPhone/bin/:\\\\\${PATH}"
export PATH

Add comment

Comments (20)

Delete comment

guest said, 08/11/2007:

This appears to be Intel only. An chance of getting a PPC one built?

Delete comment

guest said, 08/14/2007:

i am a windows programmer so please forgive my silly questions. I have my iphone unjailed and have ssh2 up and running. I have downloaded and installed the toolchain. I do not understand the heavenly dmg bit. A heavenly symlink has been created in /Developer/SDKs/iPhone. Where should this be pointed? What is the heavenly dmg purpose? Thanks in advanvce.

Delete comment

guest said, 08/16/2007:

dmg files are disk image file used by OS X. I do not think there is any chance you are going to get a working dev environment from Windows. The iPhone uses Cocoa, (Objective-C) and Apple frameworks. You are out of luck.

Delete comment

guest said, 08/16/2007:

minor problem. change ".dynlib" to ".dylib" in the copy instructions.

Delete comment

guest said, 08/18/2007:

Can a new version be installed above an older one? Or do one need to delete the old one before?

Delete comment

guest said, 08/20/2007:

Ok I said I was a Windows programmer to give you context. I am working on a Mac. Can someone please explain how and where I get the content to put in the heavenly directory?

Delete comment

guest said, 08/20/2007:

Heavenly is extracted partly as described in this
http://landonf.bikemonkey.org/code/iphone/Toolchain_In_MacPorts.20070812.html

Delete comment

guest said, 08/24/2007:

It's also possible to just dump the filesystem from your iPhone onto your computer instead of hacking heavenly (which is potentially illegal). Either install SCP/SFTP and use that, or you can use ToolchainHelper:
http://iphone.fiveforty.net/wiki/index.php/Toolchain_Helper

Delete comment

guest said, 08/24/2007:

Also, you forgot a step. You need to copy /Developer/SDKs/iPhone/etc/arm-cc-specs to ~/.arm-cc-specs as follows:

cp /Developer/SDKs/iPhone/etc/arm-cc-specs ~/.arm-cc-specs

otherwise the compiler does nothing.

Delete comment

guest said, 08/27/2007:

k I'm getting there on the setup.

I have heavenly and the SDK installed, I try to compile the helloworld test, but get a make: * Bus Error problem.

Thanks for any help

Delete comment

guest said, 08/31/2007:

How possible would be be to use the tool chain with gnu/Darwin system? I see that most applications depend on the UIKit for the Iphone user interface, is it possible to run those on gnu/darwin? Thanks for any help or advice.

Delete comment

guest said, 09/05/2007:

Hello mr kroo,
I tried to compile natetrue's dock 2.0, it seems that your toolchain is missing the WebCore/NSOjbect.h file.


xxs-computer:~/Development/dock/svn.natetrue.com/dock xx$ make
arm-apple-darwin-cc -c DockApp?.m -o DockApp?.o
In file included from DockApp?.m:8:
/Developer/SDKs/iPhone/include/WebFontCache?.h:7:21: error: NSObject.h: N
o such file or directory
make: * [DockApp?.o] Error 1

Could post if im missing something or the toolchain is missing something, thanks, the toolchain has rocked so far!@!@!@

Delete comment

guest said, 09/05/2007:

what toolchain release is this based on? alpha 0.20? it not, which svn checkout?

Delete comment

guest said, 11/09/2007:

Hi, I just installed Heavenly and the v05 toolchain on a new Mac Mini running 10.4.10. I had to install the XCode from my OS cd to get the /Developer folders. Once I install it all I do not have a /Developer/SDKs/iPhone folder with anything in it. Where does that come from? Do you have to try to build the toolchain first as on http://code.google.com/p/iphone-dev/wiki/Building? Also, once I get the HelloWorld app (or any) built, how do I install it onto the iPhone to test it out? I see an SSH installer, but that puts your phone back in jail at the end. I have heard of InstallApp?, but no details yet. FYI, I got my iPhone already unlocked from a third party. I do not know if it is "jailbroken" or not. Is there a way to tell without hurting anything? Thanks!

Delete comment

guest said, 12/27/2007:

Hello. I just bought my iPhone a couple of days ago and started looking into running code on it today. I ran across this wiki and wondered if you could answer a couple of newbie questions. My first question is (don't hate me) can this development be done from a PC? I don't have access to a mac and have not made my laptop dual boot with linux. The second question is more general: Do you think it would be possible to control a USB device using the iPhone? I have an instrument that I'd like to collect data from via USB and store the data to the 4GB drive on the iPhone. The instrument is a spectrum analyzer from Agilent Technologies. Thanks in advance for any help!

Delete comment

guest said, 12/30/2007:

I used http://iphone.natetrue.com/iPhoneToolchainv05.dmg which installs to /usr/local/arm-apple-darwin
Added /usr/local/arm-apple-darwin/bin to $PATH
Got 1.1.1 firmware from http://appldnld.apple.com.edgesuite.net/content.info.apple.com/iPhone/061-3883.20070927.In76t/iPhone1,1_1.1.1_3A109a_Restore.ipsw
Decrypted dmg with instructions from http://iphone.fiveforty.net/wiki/index.php/Decrypt_Firmware (pc software didn't work for me. Recompiled on my mac)
Note that heavenly is called snowbird in 1.1.1
Copied system software to /Developer/SDKs/iPhone/heavenly
Adjusted hello world application makefile to say:

CC=arm-apple-darwin-gcc-4.0.1
LD=$(CC)
LDFLAGS=-Wl,-syslibroot,/Developer/SDKs/iphone/heavenly -lobjc -ObjC? -framework CoreFoundation? -framework Foundation -framework CoreGraphics? -framework GraphicsServices? -framework UIKit -framework LayerKit
LDFLAGS_FRAMEWORKSDIR=-F/Developer/SDKs/iphone/heavenly/System/Library/Frameworks/

Attachments (0)

  File By Size Attached Ver.