<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Augmented Reality Junkie</title>
	<atom:link href="http://ajclarkson.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://ajclarkson.wordpress.com</link>
	<description>AR Developer &#124; Postgraduate Research Student &#124;</description>
	<lastBuildDate>Thu, 17 Mar 2011 22:09:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='ajclarkson.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/bdeb5ebd08ebe6a248c91da5396002d6?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Augmented Reality Junkie</title>
		<link>http://ajclarkson.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://ajclarkson.wordpress.com/osd.xml" title="Augmented Reality Junkie" />
	<atom:link rel='hub' href='http://ajclarkson.wordpress.com/?pushpress=hub'/>
		<item>
		<title>PTAMM porting to OSX Leopard</title>
		<link>http://ajclarkson.wordpress.com/2010/08/17/ptamm-porting-to-osx-leopard/</link>
		<comments>http://ajclarkson.wordpress.com/2010/08/17/ptamm-porting-to-osx-leopard/#comments</comments>
		<pubDate>Tue, 17 Aug 2010 15:22:51 +0000</pubDate>
		<dc:creator>ajclarkson</dc:creator>
				<category><![CDATA[Augmented Reality]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[PTAMM]]></category>
		<category><![CDATA[Compile]]></category>
		<category><![CDATA[Errors]]></category>
		<category><![CDATA[Leopard]]></category>
		<category><![CDATA[porting]]></category>

		<guid isPermaLink="false">http://ajclarkson.wordpress.com/?p=111</guid>
		<description><![CDATA[PTAMM is an extension of the work by Georg Klein on the PTAM project, which adds multiple map support, you can read about it at the project&#8217;s website. I would advise that you download and compile PTAM first, it comes with great instructions and I have some troubleshooting notes here as you will need all [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ajclarkson.wordpress.com&amp;blog=2204611&amp;post=111&amp;subd=ajclarkson&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>PTAMM is an extension of the work by Georg Klein on the PTAM project, which adds multiple map support, you can read about it at the <a href="http://www.robots.ox.ac.uk/~bob/research/research_ptamm.html" target="_blank">project&#8217;s website</a>. I would advise that you download and compile PTAM first, it comes with great instructions and I have some troubleshooting notes <a href="http://ajclarkson.wordpress.com/2010/08/17/compiling-ptam-on-osx-leopard/" target="_blank">here</a> as you will need all the same libraries.</p>
<p>Now, unlike PTAM, PTAMM doesn&#8217;t come with a tailored makefile for OSX or a VideoSource_OSX.cc file. Luckily the codebases are very similar and so, with some editing it is possible to compile to OSX.</p>
<p>I will assume PTAM is stored in PTAM_src/ and PTAMM in PTAMM_src/ for ease.</p>
<p>Copy your VideoSource_OSX.cc from PTAM_src/ to PTAMM_src/</p>
<p>Then copy /PTAMM_src/Builds/Linux/Makefile to PTAMM_src/</p>
<p>Changes to VideoSource_OSX.cc first:</p>
<p>Beneath the includes section add the line:</p>
<pre class="brush: plain;"> using namespace PTAMM { </pre>
<p>And then add the closing } at the end of the file (so the braces surround everything but the includes)</p>
<p>Save and exit. Then the Makefile</p>
<p>First locate the COMPILEFLAGS arguments, and you should see -D_LINUX. Replace this with -D_OSX</p>
<p>Now change your LINKFLAGS so that it matches the following:</p>
<pre class="brush: plain;">LINKFLAGS = -framework OpenGL -framework VecLib -lGVars3 -lcvd $(3DSLIB)</pre>
<p>It is vitally important that the reference to the OpenGL framework is there otherwise nothing will compile. Now you should be able to follow the standard install instructions and everything should go OK.</p>
<p>These instructions were made on a leopard (10.5.8) box. Snow Leopard instructions to follow from Andrew Hatch. I&#8217;ll link here when they are ready.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ajclarkson.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ajclarkson.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ajclarkson.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ajclarkson.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ajclarkson.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ajclarkson.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ajclarkson.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ajclarkson.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ajclarkson.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ajclarkson.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ajclarkson.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ajclarkson.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ajclarkson.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ajclarkson.wordpress.com/111/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ajclarkson.wordpress.com&amp;blog=2204611&amp;post=111&amp;subd=ajclarkson&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ajclarkson.wordpress.com/2010/08/17/ptamm-porting-to-osx-leopard/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fb9e53991aeb06bae4dcd8702e963a7e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ajclarkson</media:title>
		</media:content>
	</item>
		<item>
		<title>Compiling PTAM on OSX Leopard</title>
		<link>http://ajclarkson.wordpress.com/2010/08/17/compiling-ptam-on-osx-leopard/</link>
		<comments>http://ajclarkson.wordpress.com/2010/08/17/compiling-ptam-on-osx-leopard/#comments</comments>
		<pubDate>Tue, 17 Aug 2010 14:57:37 +0000</pubDate>
		<dc:creator>ajclarkson</dc:creator>
				<category><![CDATA[Augmented Reality]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[PTAM]]></category>
		<category><![CDATA[10.5]]></category>
		<category><![CDATA[AR]]></category>
		<category><![CDATA[Compile]]></category>
		<category><![CDATA[Errors]]></category>
		<category><![CDATA[Leopard]]></category>

		<guid isPermaLink="false">http://ajclarkson.wordpress.com/?p=101</guid>
		<description><![CDATA[**NOTE: THIS IS TO GET PTAM RUNNING ON LEOPARD (10.5.8) NOT ON SNOW LEOPARD. WHILE MUCH OF THIS INFORMATION WILL BE USEFUL FOR SNOW LEOPARD, YOU WILL NEED TO COMPILE THE LIBRARIES FOR 32-bit as PTAM DOES NOT SUPPORT 64-BIT LIBRARIES ** **SNOW LEOPARD NOTES CAN NOW BE FOUND HERE FROM MY COLLEAGUE ANDREW HATCH** [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ajclarkson.wordpress.com&amp;blog=2204611&amp;post=101&amp;subd=ajclarkson&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>**NOTE: THIS IS TO GET PTAM RUNNING ON LEOPARD (10.5.8) NOT ON SNOW LEOPARD. WHILE MUCH OF THIS INFORMATION WILL BE USEFUL FOR SNOW LEOPARD, YOU WILL NEED TO COMPILE THE LIBRARIES FOR 32-bit as PTAM DOES NOT SUPPORT 64-BIT LIBRARIES **</strong></p>
<p><strong>**SNOW LEOPARD NOTES CAN NOW BE FOUND </strong><strong><a href="http://www.andrewhatch.net/2010/08/ptam-on-os-x-1064.html#more">HERE</a> FROM MY COLLEAGUE ANDREW HATCH**</strong></p>
<p>Parallel Tracking and Mapping is a solution developed by Georg Klein et al. at the Robotics Lab in Oxford University. It addresses the problem of markerless Augmented Reality by using the features which already exist within the environment, rather than having to add special markers to the scene.</p>
<p>It is officially supported by OSX in the downloadable files, however I ran into a couple of issues, and it seems a few other people on the net have had similar issues too. So here are my solutions to the problems I had:</p>
<p>Firstly you need to make sure that you have the X11 libraries for OSX installed. These can be found on your leopard CD or on the <a href="http://xquartz.macosforge.org/trac/wiki" target="_blank">XQuartz project website</a>. You will also need to install <a href="http://www.finkproject.org/" target="_blank">fink</a> in order to grab some packages. Let&#8217;s do that first. Fire up your terminal and:</p>
<pre class="brush: plain;">sudo fink install readline5 </pre>
<p>That will take care of one of the problems before you even get to it. Also you will need to compile the libc1394 sources which area available <a href="http://damien.douxchamps.net/ieee1394/libdc1394/download/" target="_blank">here</a>. Now I&#8217;m going to assume you&#8217;ve downloaded PTAM and the required libraries as explained in the PTAM README.txt</p>
<p>The order of compilation is:</p>
<ol>
<li>TooN</li>
<li>libcvd</li>
<li>gvars3</li>
<li>PTAM</li>
</ol>
<p>TooN is a straightfoward ./configure make sudo make install &#8211; that should work first time for you</p>
<p>libcvd isn&#8217;t that easy. In your libcvd source directory, edit the file ./cvd/gl_helpers.h</p>
<p>You need to change:</p>
<pre class="brush: plain;">#include &lt;GL/gl.h&gt;
#include &lt;GL/glu.h&gt;</pre>
<p>To:</p>
<pre class="brush: plain;">#include &lt;OpenGL/gl.h&gt;
#include &lt;OpenGL/glu.h&gt;</pre>
<p>Which makes sure that the OSX X11 libraries are found and used for this. Save and exit.</p>
<p>Now you can go for a configure, the README file suggests that you use the options</p>
<pre class="brush: plain;"> ./configure --without-ffmpeg </pre>
<p>However, I found that the configure script still has difficulty finding the X libraries resulting in a compilation line:</p>
<pre class="brush: plain;"> Checking for X.... no </pre>
<p>In order to explicitly tell the compiler where to find it:</p>
<pre class="brush: plain;">./configure --without-ffmpeg --x-libraries=/usr/X11/lib --x-includes=/usr/X11/include</pre>
<p>Moving swiftly onwards to the next error:</p>
<pre class="brush: plain;">
Undefined symbols:
&quot;_png_set_gray_1_2_4_to_8&quot;, referenced from:
CVD::PNG::png_reader::png_reader(std::basic_istream&lt;char, std::char_traits&lt;char&gt; &gt;&amp;)in png.o&lt;/div&gt;
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [libcvd.dylib] Error 1
</pre>
<p>This is caused by a conflict between libcvd and the newer version of libpng. In order to remedy it edit (in your libcvd source folder still) ./pnm_src/png.cc</p>
<p>Find the line which makes a function call to:</p>
<pre class="brush: plain;"> png_set_gray_1_2_4_to_8 </pre>
<p>and replace the call with</p>
<pre class="brush: plain;"> png_set_expand_gray_1_2_4_to_8</pre>
<p>That should resolve that error.</p>
<p>You should now be able to go to PTAM source folder, run the makefile and all should go OK.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/ajclarkson.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/ajclarkson.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/ajclarkson.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/ajclarkson.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/ajclarkson.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/ajclarkson.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/ajclarkson.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/ajclarkson.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/ajclarkson.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/ajclarkson.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/ajclarkson.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/ajclarkson.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/ajclarkson.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/ajclarkson.wordpress.com/101/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=ajclarkson.wordpress.com&amp;blog=2204611&amp;post=101&amp;subd=ajclarkson&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://ajclarkson.wordpress.com/2010/08/17/compiling-ptam-on-osx-leopard/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fb9e53991aeb06bae4dcd8702e963a7e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ajclarkson</media:title>
		</media:content>
	</item>
	</channel>
</rss>
