<?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>Paul Solt &#187; MacPorts</title>
	<atom:link href="http://paulsolt.com/tag/macports/feed/" rel="self" type="application/rss+xml" />
	<link>http://paulsolt.com</link>
	<description>Putting the Inc back in Solt since 2005.</description>
	<lastBuildDate>Tue, 01 May 2012 15:03:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Player/Stage, MacPorts, and iPhone</title>
		<link>http://paulsolt.com/2009/04/playerstage-macports-and-iphone/</link>
		<comments>http://paulsolt.com/2009/04/playerstage-macports-and-iphone/#comments</comments>
		<pubDate>Fri, 10 Apr 2009 22:43:40 +0000</pubDate>
		<dc:creator>Paul Solt</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Macbook Pro]]></category>
		<category><![CDATA[MacPorts]]></category>
		<category><![CDATA[player/stage]]></category>

		<guid isPermaLink="false">http://paulsolt.com/?p=193</guid>
		<description><![CDATA[<p>Today I worked on setting up Player/Stage on my Macbook Pro with Leopard 10.5.6 and I ran into a few issues.</p> <p>I was using Macports 1.710 and I was attempting to install player-stage-player (2.03 2.1.2) and player-stage-stage (2.03 2.1.1) following a short guide at <a href="http://bentham.k2.t.u-tokyo.ac.jp/notebook/?p=247">http://bentham.k2.t.u-tokyo.ac.jp/notebook/?p=247</a></p> <p>If it&#8217;s your first time using macports it can [...]]]></description>
			<content:encoded><![CDATA[<p>Today I worked on setting up Player/Stage on my Macbook Pro with Leopard 10.5.6 and I ran into a few issues.</p>
<p>I was using Macports 1.710 and I was attempting to install player-stage-player (2.03 <span style="text-decoration: line-through;">2.1.2</span>) and player-stage-stage (2.03 <span style="text-decoration: line-through;">2.1.1</span>) following a short guide at <a href="http://bentham.k2.t.u-tokyo.ac.jp/notebook/?p=247">http://bentham.k2.t.u-tokyo.ac.jp/notebook/?p=247</a></p>
<p>If it&#8217;s your first time using macports it can take a long time. I waited 2+ hours to download/build/install dependencies</p>
<p>I used the command:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #c20cb9; font-weight: bold;">install</span> playerstage-player playerstage-stage</pre></div></div>

<p>However it errored out at the end with the message:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #c20cb9; font-weight: bold;">install</span> playerstage-player playerstage-stage
---<span style="color: #000000; font-weight: bold;">&gt;</span>  Building playerstage-player
Error: Target org.macports.build returned: shell <span style="color: #7a0874; font-weight: bold;">command</span> <span style="color: #ff0000;">&quot; cd &quot;</span><span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>macports<span style="color: #000000; font-weight: bold;">/</span>build<span style="color: #000000; font-weight: bold;">/</span>_opt_local_var_macports_sources_rsync.macports.org_release_ports_science_playerstage-player<span style="color: #000000; font-weight: bold;">/</span>work<span style="color: #000000; font-weight: bold;">/</span>player-2.0.4<span style="color: #ff0000;">&quot; &amp;&amp; make all &quot;</span> returned error <span style="color: #000000;">2</span>
Command output: building <span style="color: #ff0000;">'_playerc'</span> extension
swigging playerc.i to playerc_wrap.c
swig <span style="color: #660033;">-python</span> <span style="color: #660033;">-o</span> playerc_wrap.c playerc.i
playerc.i:<span style="color: #000000;">44</span>: Warning<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">124</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>: Specifying the language name <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">%</span>typemap is deprecated - use <span style="color: #666666; font-style: italic;">#ifdef SWIG instead.</span>
playerc.i:<span style="color: #000000;">82</span>: Warning<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">124</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>: Specifying the language name <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">%</span>typemap is deprecated - use <span style="color: #666666; font-style: italic;">#ifdef SWIG instead.</span>
playerc.i:<span style="color: #000000;">121</span>: Warning<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">124</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>: Specifying the language name <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">%</span>typemap is deprecated - use <span style="color: #666666; font-style: italic;">#ifdef SWIG instead.</span>
playerc.i:<span style="color: #000000;">127</span>: Warning<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">124</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>: Specifying the language name <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">%</span>typemap is deprecated - use <span style="color: #666666; font-style: italic;">#ifdef SWIG instead.</span>
<span style="color: #c20cb9; font-weight: bold;">gcc</span> <span style="color: #660033;">-fno-strict-aliasing</span> <span style="color: #660033;">-Wno-long-double</span> <span style="color: #660033;">-no-cpp-precomp</span> <span style="color: #660033;">-mno-fused-madd</span> <span style="color: #660033;">-fno-common</span> <span style="color: #660033;">-dynamic</span> <span style="color: #660033;">-DNDEBUG</span> <span style="color: #660033;">-g</span> <span style="color: #660033;">-Os</span> <span style="color: #660033;">-Wall</span> <span style="color: #660033;">-Wstrict-prototypes</span> <span style="color: #660033;">-DMACOSX</span> -I<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>include<span style="color: #000000; font-weight: bold;">/</span>ffi -DENABLE_DTRACE <span style="color: #660033;">-arch</span> i386 <span style="color: #660033;">-arch</span> ppc <span style="color: #660033;">-pipe</span> -I.<span style="color: #000000; font-weight: bold;">/</span>..<span style="color: #000000; font-weight: bold;">/</span>.. -I..<span style="color: #000000; font-weight: bold;">/</span>..<span style="color: #000000; font-weight: bold;">/</span>..<span style="color: #000000; font-weight: bold;">/</span>.. -I<span style="color: #000000; font-weight: bold;">/</span>System<span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>Frameworks<span style="color: #000000; font-weight: bold;">/</span>Python.framework<span style="color: #000000; font-weight: bold;">/</span>Versions<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">2.5</span><span style="color: #000000; font-weight: bold;">/</span>include<span style="color: #000000; font-weight: bold;">/</span>python2.5 <span style="color: #660033;">-c</span> playerc_wrap.c <span style="color: #660033;">-o</span> build<span style="color: #000000; font-weight: bold;">/</span>temp.macosx-<span style="color: #000000;">10.5</span>-i386-<span style="color: #000000;">2.5</span><span style="color: #000000; font-weight: bold;">/</span>playerc_wrap.o
playerc_wrap.c: In <span style="color: #000000; font-weight: bold;">function</span> <span style="color: #ff0000;">'_wrap_playerc_mclient_client_set'</span>:
playerc_wrap.c:<span style="color: #000000;">40301</span>: warning: assignment from incompatible pointer <span style="color: #7a0874; font-weight: bold;">type</span>
playerc_wrap.c: In <span style="color: #000000; font-weight: bold;">function</span> <span style="color: #ff0000;">'_wrap_playerc_mclient_addclient'</span>:
playerc_wrap.c:<span style="color: #000000;">40504</span>: warning: passing argument <span style="color: #000000;">2</span> of <span style="color: #ff0000;">'playerc_mclient_addclient'</span> from incompatible pointer <span style="color: #7a0874; font-weight: bold;">type</span>
playerc_wrap.c: In <span style="color: #000000; font-weight: bold;">function</span> <span style="color: #ff0000;">'_wrap_playerc_mclient_client_set'</span>:
playerc_wrap.c:<span style="color: #000000;">40301</span>: warning: assignment from incompatible pointer <span style="color: #7a0874; font-weight: bold;">type</span>
playerc_wrap.c: In <span style="color: #000000; font-weight: bold;">function</span> <span style="color: #ff0000;">'_wrap_playerc_mclient_addclient'</span>:
playerc_wrap.c:<span style="color: #000000;">40504</span>: warning: passing argument <span style="color: #000000;">2</span> of <span style="color: #ff0000;">'playerc_mclient_addclient'</span> from incompatible pointer <span style="color: #7a0874; font-weight: bold;">type</span>
<span style="color: #c20cb9; font-weight: bold;">gcc</span> -Wl,-F. <span style="color: #660033;">-bundle</span> <span style="color: #660033;">-undefined</span> dynamic_lookup <span style="color: #660033;">-arch</span> i386 <span style="color: #660033;">-arch</span> ppc build<span style="color: #000000; font-weight: bold;">/</span>temp.macosx-<span style="color: #000000;">10.5</span>-i386-<span style="color: #000000;">2.5</span><span style="color: #000000; font-weight: bold;">/</span>playerc_wrap.o -L.<span style="color: #000000; font-weight: bold;">/</span>..<span style="color: #000000; font-weight: bold;">/</span>..<span style="color: #000000; font-weight: bold;">/</span>.libs -L..<span style="color: #000000; font-weight: bold;">/</span>..<span style="color: #000000; font-weight: bold;">/</span>..<span style="color: #000000; font-weight: bold;">/</span>..<span style="color: #000000; font-weight: bold;">/</span>libplayerxdr<span style="color: #000000; font-weight: bold;">/</span>.libs -L..<span style="color: #000000; font-weight: bold;">/</span>..<span style="color: #000000; font-weight: bold;">/</span>..<span style="color: #000000; font-weight: bold;">/</span>..<span style="color: #000000; font-weight: bold;">/</span>libplayercore<span style="color: #000000; font-weight: bold;">/</span>.libs -L..<span style="color: #000000; font-weight: bold;">/</span>..<span style="color: #000000; font-weight: bold;">/</span>..<span style="color: #000000; font-weight: bold;">/</span>..<span style="color: #000000; font-weight: bold;">/</span>libplayerjpeg<span style="color: #000000; font-weight: bold;">/</span>.libs <span style="color: #660033;">-lplayerxdr</span> <span style="color: #660033;">-lplayerc</span> <span style="color: #660033;">-lplayerjpeg</span> <span style="color: #660033;">-ljpeg</span> <span style="color: #660033;">-lplayererror</span> <span style="color: #660033;">-o</span> build<span style="color: #000000; font-weight: bold;">/</span>lib.macosx-<span style="color: #000000;">10.5</span>-i386-<span style="color: #000000;">2.5</span><span style="color: #000000; font-weight: bold;">/</span>_playerc.so
<span style="color: #c20cb9; font-weight: bold;">ld</span>: library not found <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #660033;">-ljpeg</span>
collect2: <span style="color: #c20cb9; font-weight: bold;">ld</span> returned <span style="color: #000000;">1</span> <span style="color: #7a0874; font-weight: bold;">exit</span> status
<span style="color: #c20cb9; font-weight: bold;">ld</span>: library not found <span style="color: #000000; font-weight: bold;">for</span> <span style="color: #660033;">-ljpeg</span>
collect2: <span style="color: #c20cb9; font-weight: bold;">ld</span> returned <span style="color: #000000;">1</span> <span style="color: #7a0874; font-weight: bold;">exit</span> status
lipo: can<span style="color: #ff0000;">'t open input file: /var/tmp//ccI9TvVp.out
(No such file or directory)
error: command '</span><span style="color: #c20cb9; font-weight: bold;">gcc</span><span style="color: #ff0000;">' failed with exit status 1
make[6]: *** [pythonbuild] Error 1
make[5]: *** [all] Error 2
make[4]: *** [all-recursive] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
&nbsp;
Error: Status 1 encountered during processing.</span></pre></div></div>

<p style="text-align: center;"></p>
<p>So I searched around the MacPorts website and I came across the ticket <a title="Bug Ticket" href="http://trac.macports.org/ticket/18891#comment:3">#18891</a>, which basically said to run the following command to change the version of <strong>python</strong> being used from 3.0 to 2.5.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #c20cb9; font-weight: bold;">install</span> python_select <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> python_select python25
Skipping org.macports.activate <span style="color: #7a0874; font-weight: bold;">&#40;</span>python_select +darwin_9<span style="color: #7a0874; font-weight: bold;">&#41;</span> since this
port is already active
---<span style="color: #000000; font-weight: bold;">&gt;</span>  Cleaning python_select
Selecting version <span style="color: #ff0000;">&quot;python25&quot;</span> <span style="color: #000000; font-weight: bold;">for</span> python</pre></div></div>

<p>Following that command I was able to finish installing Player/Stage via MacPorts by using the orginal port command.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #c20cb9; font-weight: bold;">install</span> playerstage-player playerstage-stage
---<span style="color: #000000; font-weight: bold;">&gt;</span>  Building playerstage-player
---<span style="color: #000000; font-weight: bold;">&gt;</span>  Staging playerstage-player into destroot
---<span style="color: #000000; font-weight: bold;">&gt;</span>  Installing playerstage-player <span style="color: #000000; font-weight: bold;">@</span>2.0.4_2
---<span style="color: #000000; font-weight: bold;">&gt;</span>  Activating playerstage-player <span style="color: #000000; font-weight: bold;">@</span>2.0.4_2
---<span style="color: #000000; font-weight: bold;">&gt;</span>  Cleaning playerstage-player
---<span style="color: #000000; font-weight: bold;">&gt;</span>  Fetching playerstage-stage
---<span style="color: #000000; font-weight: bold;">&gt;</span>  Attempting to fetch stage-2.0.3.tar.bz2 from
http:<span style="color: #000000; font-weight: bold;">//</span>voxel.dl.sourceforge.net<span style="color: #000000; font-weight: bold;">/</span>playerstage
---<span style="color: #000000; font-weight: bold;">&gt;</span>  Verifying checksum<span style="color: #7a0874; font-weight: bold;">&#40;</span>s<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">for</span> playerstage-stage
---<span style="color: #000000; font-weight: bold;">&gt;</span>  Extracting playerstage-stage
---<span style="color: #000000; font-weight: bold;">&gt;</span>  Configuring playerstage-stage
---<span style="color: #000000; font-weight: bold;">&gt;</span>  Building playerstage-stage
---<span style="color: #000000; font-weight: bold;">&gt;</span>  Staging playerstage-stage into destroot
---<span style="color: #000000; font-weight: bold;">&gt;</span>  Installing playerstage-stage <span style="color: #000000; font-weight: bold;">@</span>2.0.3_0
---<span style="color: #000000; font-weight: bold;">&gt;</span>  Activating playerstage-stage <span style="color: #000000; font-weight: bold;">@</span>2.0.3_0
---<span style="color: #000000; font-weight: bold;">&gt;</span>  Cleaning playerstage-stage</pre></div></div>

<p>I tried to use player stage from MacPorts.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ player <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>macports<span style="color: #000000; font-weight: bold;">/</span>software<span style="color: #000000; font-weight: bold;">/</span>playerstage-stage\
<span style="color: #000000; font-weight: bold;">/*/</span>opt<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>stage<span style="color: #000000; font-weight: bold;">/</span>worlds<span style="color: #000000; font-weight: bold;">/</span>simple.cfg</pre></div></div>

<p>And I received the error:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">rr: unable to open color database <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>X11R6<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>X11<span style="color: #000000; font-weight: bold;">/</span>rgb.txt
 : No such <span style="color: #c20cb9; font-weight: bold;">file</span> or directory <span style="color: #7a0874; font-weight: bold;">&#40;</span>stage.c stg_lookup_color<span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p>Following the advice from <a title="PlayerStage setup" href="http://bentham.k2.t.u-tokyo.ac.jp/notebook/?cat=5" target="_blank">http://bentham.k2.t.u-tokyo.ac.jp/notebook/?cat=5</a> I added the following link.</p>
<div id="codebox">

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>X11<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>X11<span style="color: #000000; font-weight: bold;">/</span>rgb.txt <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>X11R6<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>X11<span style="color: #000000; font-weight: bold;">/</span>rgb.txt</pre></div></div>

<p>Now I am able to create a player server and connect with a client with the commands:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ player <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>macports<span style="color: #000000; font-weight: bold;">/</span>software<span style="color: #000000; font-weight: bold;">/</span>playerstage-stage\
<span style="color: #000000; font-weight: bold;">/*/</span>opt<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>stage<span style="color: #000000; font-weight: bold;">/</span>worlds<span style="color: #000000; font-weight: bold;">/</span>simple.cfg
&nbsp;
<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>macports<span style="color: #000000; font-weight: bold;">/</span>software<span style="color: #000000; font-weight: bold;">/</span>playerstage-player\
<span style="color: #000000; font-weight: bold;">/*/</span>opt<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>player<span style="color: #000000; font-weight: bold;">/</span>examples<span style="color: #000000; font-weight: bold;">/</span>libplayerc++<span style="color: #000000; font-weight: bold;">/</span>laserobstacleavoid</pre></div></div>

<p>With the ability to run player/stage I will post again on my progress as I use an iPhone to run the Player client, rather than my Macbook Pro.</p>
<div id="attachment_209" class="wp-caption alignleft" style="width: 453px"><a rel="attachment wp-att-209" href="http://paulsolt.com/2009/04/playerstage-macports-and-iphone/robotiphone/"><img class="size-full wp-image-209" title="robotiphone" src="http://paulsolt.com/wp-content/uploads/2009/04/robotiphone.png" alt="Player client running on iPhone with Player/Stage." width="443" height="412" /></a><p class="wp-caption-text">Player client running on iPhone with Player/Stage.</p></div>
</div>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "ca-pub-2182421302031373";
/* Large Post Ad */
google_ad_slot = "4358587115";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://paulsolt.com/2009/04/playerstage-macports-and-iphone/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

