<?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>Unified Diff &#187; OS X</title>
	<atom:link href="http://www.unifieddiff.com/category/os-x/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.unifieddiff.com</link>
	<description>I should do that! How hard could it be?!</description>
	<lastBuildDate>Sat, 30 Jan 2010 01:23:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>FUSE Extension for PHP</title>
		<link>http://www.unifieddiff.com/2008/12/15/fuse-extension-for-php/</link>
		<comments>http://www.unifieddiff.com/2008/12/15/fuse-extension-for-php/#comments</comments>
		<pubDate>Tue, 16 Dec 2008 01:24:03 +0000</pubDate>
		<dc:creator>Bob</dc:creator>
				<category><![CDATA[FUSE]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://www.unifieddiff.com/?p=122</guid>
		<description><![CDATA[Well, it&#8217;s official&#8230; I&#8217;m a geek. A few weeks ago I started writing an extension for the PHP runtime that provides bindings to libfuse. Back up a few months&#8212; I wrote a PHP script to screen-scrape the Trac web interface and allow me to grab source code to a project I&#8217;m working on.
My solution worked [...]]]></description>
			<content:encoded><![CDATA[<p>Well, it&#8217;s official&#8230; I&#8217;m a geek. A few weeks ago I started writing an extension for the PHP runtime that provides bindings to <a href="http://fuse.sourceforge.net/">libfuse</a>. Back up a few months&mdash; I wrote a PHP script to screen-scrape the <a href="http://trac.edgewall.org/">Trac</a> web interface and allow me to grab source code to a project I&#8217;m working on.</p>
<p>My solution worked but it was pretty ugly. So I wondered if it would be better to implement a FUSE file system to do the same task. Unfortunately PHP didn&#8217;t have bindings for libfuse at the time. After several failed attempts at using SWIG to automagically generate an extension, I came to the harsh realization that if I wanted FUSE bindings I&#8217;d have to do it myself. I mean&#8230; how hard could it be?</p>
<p>It actually wasn&#8217;t too bad. I read a bunch of non-existent documentation on the Zend API and went to work on a prototype. It took me about a week, but I now have a working PHP extension. I&#8217;ve also since implemented <a href="/projects/tracfs">TracFS</a> to replace my ugly script.</p>
<span id="more-122"></span>
<p>I&#8217;m almost finished with writing the documentation for the PHP website. To build the extension, you have to check out the sources from CVS.</p>
<pre>
$ svn co http://svn.php.net/repository/pecl/fuse/trunk/ php_fuse
$ cd php_fuse &amp;&amp; phpize
$ ./configure
$ make &amp;&amp; sudo make install
</pre>
<p>You&#8217;ll need to install PHP and FUSE (or <a href="http://code.google.com/p/macfuse/">MacFUSE</a>) before you can build the extension. Once everything is installed, you can test php_fuse with the scripts in pecl/fuse/examples. For now, the extension does not support writing files, only reading. Sometime in the near future I will implement the rest of the VFS callbacks.</p> ]]></content:encoded>
			<wfw:commentRss>http://www.unifieddiff.com/2008/12/15/fuse-extension-for-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Building Amarok 1.4 on Leopard</title>
		<link>http://www.unifieddiff.com/2008/06/30/building-amarok-14-on-leopard/</link>
		<comments>http://www.unifieddiff.com/2008/06/30/building-amarok-14-on-leopard/#comments</comments>
		<pubDate>Mon, 30 Jun 2008 18:02:39 +0000</pubDate>
		<dc:creator>Bob</dc:creator>
				<category><![CDATA[Hacks]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://www.robertjcarroll.com/?p=31</guid>
		<description><![CDATA[I love Amarok and wanted to install it on my MacBook. With Qt4 on the horizon, it will be possible to run Amarok natively in OS X without an X server. But I didn&#8217;t want to wait for Amarok2 to become stable, so I looked into compiling Amarok 1.4 and running it under X.
I tried [...]]]></description>
			<content:encoded><![CDATA[<p>I love <a href="http://amarok.kde.org/">Amarok</a> and wanted to install it on my MacBook. With Qt4 on the horizon, it will be possible to run Amarok natively in OS X without an X server. But I didn&#8217;t want to wait for Amarok2 to become stable, so I looked into compiling Amarok 1.4 and running it under X.</p>
<p>I tried following the <a href="http://amarok.kde.org/wiki/On_OS_X">On OS X</a> guide with limited success. Apparently, ffmpeg won&#8217;t compile on Leopard and that caused the entire libxine compilation to fail. I tried various combinations of configure flags, but none seemed to help. I looked at the source to try and fix it, but unfortunately I&#8217;m not terribly familiar with x86 assembly.</p>
<span id="more-31"></span>
<p>The problem code had to do with video rendering, so since Amarok doesn&#8217;t use it I just cut it out of the build process. Edit <strong>src/combined/ffmpeg/Makefile</strong> and find<br />
<pre>xineplug_LTLIBRARIES = xineplug_decode_ff.la xineplug_decode_dvaudio.la</pre>
and replace with<br />
<pre>xineplug_LTLIBRARIES = xineplug_decode_dvaudio.la</pre></p>
<p>After that, edit <strong>src/post/Makefile</strong> and find<br />
<pre>SUBDIRS = planar goom visualizations mosaico deinterlace audio</pre>
and replace with<br />
<pre>SUBDIRS = goom visualizations mosaico audio</pre>
Now libxine will build.</p>
<p>With libxine installed, I had a few more steps to build Amarok. I installed taglib<br />
<pre>$ sudo fink install taglib</pre>
I also had to specify the location of the OpenGL framework I wanted to use<br />
<pre>
LDFLAGS=&quot;-Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/ \
  A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/ \
  A/Libraries/libGL.dylib&quot;
</pre>
And finally, this is how I configured Amarok<br />
<pre>./configure --prefix=/sw --with-qt-includes=/sw/include/qt \
  --with-qt-libraries=/sw/lib/qt3/lib</pre></p>
<p>I now have Amarok successfully compiled and running on Leopard. This took me quite a bit of time to get right, so I&#8217;m hoping someone else will find it useful.</p>]]></content:encoded>
			<wfw:commentRss>http://www.unifieddiff.com/2008/06/30/building-amarok-14-on-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
