<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Kernel Panic &#187; SSH</title>
	<atom:link href="http://blog.epelaez.net/tag/ssh/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.epelaez.net</link>
	<description>~Keep It Simple</description>
	<lastBuildDate>Wed, 30 Jun 2010 17:11:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Building the iPhone 2.X Toolchain in Linux</title>
		<link>http://blog.epelaez.net/05/building-the-iphone-2x-toolchain-in-linux/</link>
		<comments>http://blog.epelaez.net/05/building-the-iphone-2x-toolchain-in-linux/#comments</comments>
		<pubDate>Wed, 20 May 2009 16:47:48 +0000</pubDate>
		<dc:creator>Pelaez</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Toolchain]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://blog.epelaez.net/?p=24</guid>
		<description><![CDATA[This is to build a 2.0 toolchain, to build a 3.0 toolchain, go here. I just did a clean install of Ubuntu 9.04 RC after destroying Debian by adding an Ubuntu Source and updating everything (not good), so I&#8217;m about to build the toolchain again. Since my blog is heading to iPhone/Pod development, I think [...]]]></description>
			<content:encoded><![CDATA[<h3>This is to build a 2.0 toolchain, to build a 3.0 toolchain, go <a href="http://blog.epelaez.net/09/toolchain-3-0/" target="_blank">here</a>.</h3>
<p>I just did a clean install of Ubuntu 9.04 RC after destroying Debian by adding an Ubuntu Source and updating everything (not good), so I&#8217;m about to build the toolchain again.</p>
<p>Since my blog is heading to iPhone/Pod development, I think this is a good start <img src='http://blog.epelaez.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I&#8217;ve been using this to build SBSettings toggles (will post a template and a tut later) and I&#8217;ve had no problems, but I haven&#8217;t tested it too much.</p>
<p>(BTW, I got the instructions from <a href="http://iphonesdkdev.blogspot.com/2008/10/how-to-install-llvm-gcc-for-iphone-sdk.html" target="_blank">here</a> and enhanced them a _little_ bit)</p>
<h3><span id="more-24"></span><strong>Building Toolchain</strong></h3>
<p>First thing you&#8217;ll want to do is go <a title="http://www.iphonefix.de/ " href="http://www.iphonefix.de/ " target="_blank">HERE</a>, go to the Download sections, connect to the FTP as it says there.</p>
<p>Once there, go to &#8220;iPhone Toolchain VMWare Image/V3/&#8221; and download UpgradeToolchain2.tgz. Download it to your home (~/)</p>
<p>While it&#8217;s downloading, run this command to install the building tools:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:400px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ sudo apt-get install build-essential bison flex</div></td></tr></tbody></table></div>
<p>Now go to /usr and unpack the toolchain</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:400px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ cd /usr<br />
$ sudo tar -xzvf ~/UpgradeToolChain2.tgz</div></td></tr></tbody></table></div>
<p>Now move to the toolchain directory and run the install script:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:400px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ cd toolchain2<br />
$ sudo ./build_20.sh</div></td></tr></tbody></table></div>
<p>Now you need to add the gcc compiler to /usr/bin, the way I did it was to open two sudo windows and add a link:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:400px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ sudo nautilus</div></td></tr></tbody></table></div>
<p>That will open a nautilus window as root, do it twice. With one, go to /usr/toolchain2/pre/bin and with the other one go to /usr/bin. On the first one, right click arm-apple-darwin9-gcc and select &#8220;Make Link&#8221;, then copy that link to the second window, and remove the &#8220;Link to..&#8221; from the name.</p>
<p>Next you&#8217;ll need to make a link to /usr/toolchain2/sys/usr/include on /var, do the same as above.</p>
<p>And finally, a link to /usr/toolchain2/sys/System on /</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://blog.epelaez.net/05/building-the-iphone-2x-toolchain-in-linux/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://blog.epelaez.net/05/building-the-iphone-2x-toolchain-in-linux/&amp;title=Building+the+iPhone+2.X+Toolchain+in+Linux" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://blog.epelaez.net/05/building-the-iphone-2x-toolchain-in-linux/&amp;title=Building+the+iPhone+2.X+Toolchain+in+Linux" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://blog.epelaez.net/05/building-the-iphone-2x-toolchain-in-linux/&amp;t=Building+the+iPhone+2.X+Toolchain+in+Linux" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-mail">
			<a href="mailto:?subject=%22Building%20the%20iPhone%202.X%20Toolchain%20in%20Linux%22&amp;body=Link: http://blog.epelaez.net/05/building-the-iphone-2x-toolchain-in-linux/ (sent via shareaholic)%0D%0A%0D%0A----%0D%0A This%20is%20to%20build%20a%202.0%20toolchain%2C%20to%20build%20a%203.0%20toolchain%2C%20go%20here.%0D%0A%0D%0AI%20just%20did%20a%20clean%20install%20of%20Ubuntu%209.04%20RC%20after%20destroying%20Debian%20by%20adding%20an%20Ubuntu%20Source%20and%20updating%20everything%20%28not%20good%29%2C%20so%20I%27m%20about%20to%20build%20the%20toolchain%20again.%0D%0A%0D%0ASince%20my%20blog%20is%20heading%20to%20iPhone%2FPod%20development" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Building+the+iPhone+2.X+Toolchain+in+Linux+-+&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://blog.epelaez.net/05/building-the-iphone-2x-toolchain-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
