<?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>Tristan O'Tierney &#187; 64bit</title>
	<atom:link href="http://www.otierney.net/articles/tag/64bit/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.otierney.net</link>
	<description>Mac Geek</description>
	<lastBuildDate>Wed, 09 Sep 2009 17:23:35 +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>GreaseKit in 64bit Safari</title>
		<link>http://www.otierney.net/articles/2009/09/05/greasekit-in-64bit-safari/</link>
		<comments>http://www.otierney.net/articles/2009/09/05/greasekit-in-64bit-safari/#comments</comments>
		<pubDate>Sun, 06 Sep 2009 05:45:56 +0000</pubDate>
		<dc:creator>tristan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[64bit]]></category>
		<category><![CDATA[greasekit]]></category>
		<category><![CDATA[inputmanager]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[safari]]></category>
		<category><![CDATA[snowleopard]]></category>

		<guid isPermaLink="false">http://www.otierney.net/?p=356</guid>
		<description><![CDATA[After I read about SIMBL gaining (beta) 10.6 support, my first reaction was hooray! But not so fast, just because SIMBL can now load bundles doesn&#8217;t quite mean your latest and greatest plugins will actually work. You&#8217;d still have to drop Safari down to 32bit only mode, which kind of defeats the purpose since SIMBL [...]]]></description>
			<content:encoded><![CDATA[<p>After I read about <a href="http://www.culater.net/software/SIMBL/SIMBL.php">SIMBL</a> gaining (beta) 10.6 support, my first reaction was hooray! But not so fast, just because SIMBL can now load bundles doesn&#8217;t quite mean your latest and greatest plugins will actually work. You&#8217;d still have to drop Safari down to 32bit only mode, which kind of defeats the purpose since SIMBL already continues to work for apps running in 32bit mode. But, a simple recompile was the proof I needed. With a bit of work, I got <a href="http://code.google.com/p/greasekit/">GreaseKit</a> recompiled. First things first, you&#8217;ll need to go check out the source code somewhere onto your computer:</p>

<pre class="code">svn checkout http://greasekit.googlecode.com/svn/trunk/ greasekit</pre>

<p><br />
You might notice after trying to build an error like this:</p>

<pre class="code">There is no SDK with the name or path '/Developer/SDKs/MacOSX10.4u.sdk'</pre>

<p>I don&#8217;t have the 10.4 SDK installed, maybe it was removed when I installed Snow Leopard, or maybe I just never installed it. You might have it installed, and get some other set of errors.</p>

<p>First thing you&#8217;ll want to do either way though is right click on the <em>GreaseKit</em> project file and choose <em>Get Info</em>:
<center><img src="http://otierney.net/images/GreaseKitProject.png" alt="GreaseKit Project Menu" /><br /><br /><br /></center>
Change the <em>Base SDK for All Configurations</em> to <em>Mac OS X 10.6</em>. Your build should succeed now, but we&#8217;re not quite done yet. It&#8217;s only building for 32bit still. Isn&#8217;t the whole point of this to get 64bit? By default GreaseKit only builds the native architecture you&#8217;re currently on for the <em>Debug</em> build configuration. This is fine, as it speeds up development and testing so we won&#8217;t change it. Switch to the <em>Build</em> tab so we can make it build a 64bit binary. Change the <em>Configuration</em> drop down from whatever it&#8217;s on (probably <em>Debug</em>) to <em>Release</em>. Aha, there&#8217;s the problem. It&#8217;s only building an i386 and ppc version. Since this is Snow Leopard, there&#8217;s no reason to be building ppc anymore. Switch this setting to <em>Standard (32bit/64-bit Universal)</em>.</p>

<p>Before we go further make sure from now on you&#8217;re making a <em>Release</em>, and not <em>Debug</em> build. Otherwise, our changes are for naught. Unfortunately this varies a bit from setup to setup, but you&#8217;ve likely got a menu (or several menus) in the top/left of your Xcode window that says either <em>Overview</em> or <em>Active Build Configuration</em>. For either of these, click it and switch the build configuration to <em>Release</em>.</p>

<p>The GreaseKit project suffers from a common issue &#8212; some build settings are duplicated in both the Project and Target we&#8217;re trying to modify. Think of build settings as a cascading style sheet of settings, where the top level is the Project (able to dictate settings for <strong>all</strong> Targets in the project) and individual Targets inherit settings from the Project. Right click on the <em>GreaseKit</em> Target as pictured and click on <em>Get Info</em>:
<center><img src="http://otierney.net/images/GreaseKitTarget.png" alt="GreaseKit Target Menu" /><br /><br /><br /></center>
Go again to this window&#8217;s <em>Build</em> tab and change the <em>Configuration</em> to  <em>Standard (32bit/64-bit Universal)</em>. After building again, a few errors are still popping up. In particular, this one:</p>

<pre class="code">Mac OS X version 10.5 or later is needed for zerocost-exceptions</pre>

<p>This one&#8217;s a little harder to figure out, but once more we go back to the <em>GreaseKit</em> Project&#8217;s Get Info window and <em>Build</em> tab. The setting we&#8217;re looking for now is the <em>Mac OS X Deployment Target</em> which is currently set to <em>Mac OS X 10.3</em>. There&#8217;s your problem. Change that to 10.6, and it should succeed! Once you&#8217;ve put this compiled bundle in your ~/Library/Application Support/SIMBL/Plugins and installed the latest <a href="http://www.culater.net/software/SIMBL/SIMBL.php">SIMBL</a> beta you should be seeing GreaseKit show up in your Safari menus!
<br />
<hr />
<br />
<strong>Update:</strong> Since some folks requested it, here&#8217;s a finished pre-built bundle of <a href="http://otierney.net/files/GreaseKit64bit.zip">64bit GreaseKit</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.otierney.net/articles/2009/09/05/greasekit-in-64bit-safari/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
