<?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>chrome &#8211; Virtually Fun</title>
	<atom:link href="https://virtuallyfun.com/tag/chrome/feed/" rel="self" type="application/rss+xml" />
	<link>https://virtuallyfun.com</link>
	<description>Fun with Virtualization</description>
	<lastBuildDate>Thu, 12 Dec 2013 03:42:42 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>
	<item>
		<title>building NACL stuff on OS X</title>
		<link>https://virtuallyfun.com/2013/12/12/building-nacl-stuff-on-os-x/</link>
					<comments>https://virtuallyfun.com/2013/12/12/building-nacl-stuff-on-os-x/#comments</comments>
		
		<dc:creator><![CDATA[neozeed]]></dc:creator>
		<pubDate>Thu, 12 Dec 2013 03:42:42 +0000</pubDate>
				<category><![CDATA[OS X]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[nacl]]></category>
		<guid isPermaLink="false">https://virtuallyfun.com/?p=3665</guid>

					<description><![CDATA[this wasn&#8217;t too much fun as it is a constantly moving target and documentation slides by the side&#8230; So no doubt by the time someone else reads this it&#8217;ll be obsolete. Some of the steps you can follow from here&#8230; &#8230; <a href="https://virtuallyfun.com/2013/12/12/building-nacl-stuff-on-os-x/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p>this wasn&#8217;t too much fun as it is a constantly moving target and documentation slides by the side&#8230; So no doubt by the time someone else reads this it&#8217;ll be obsolete.</p>
<p>Some of the steps you can follow from here&#8230;</p>
<p><a href="https://developers.google.com/native-client/sdk/download">https://developers.google.com/native-client/sdk/download</a></p>
<p>the output will be completely different though. Â Something like this:</p>
<p style="padding-left: 30px;">$ ./naclsdk list<br />
Bundles:<br />
I: installed<br />
*: update available</p>
<p style="padding-left: 30px;">I sdk_tools (stable)<br />
vs_addin (dev)<br />
pepper_27 (post_stable)<br />
pepper_28 (post_stable)<br />
pepper_29 (post_stable)<br />
pepper_30 (post_stable)<br />
pepper_31 (stable)<br />
pepper_32 (dev)<br />
pepper_canary (canary)</p>
<p style="padding-left: 30px;">All installed bundles are up-to-date.</p>
<p>I chose to install the stable branch, pepper_31 in this case (the google page talks about version 14 being stable, so a LOT has changed).</p>
<p style="padding-left: 30px;">./naclsdk update pepper_31</p>
<p>And two big files will download and unpack in your directory.</p>
<p>You will also need <a href="http://dev.chromium.org/developers/how-tos/install-depot-tools">depot_tools</a>, a collection of scripts google uses for git/svn. Â Be sure to setup your path &amp; environment for NACL building:</p>
<p style="padding-left: 30px;">$ cat /Users/neozeed/.profile<br />
NACL_SDK_ROOT=/Users/neozeed/src/nacl_sdk/pepper_31/<br />
PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Users/neozeed/src/depot_tools</p>
<p style="padding-left: 30px;">export NACL_SDK_ROOT PATH</p>
<p>And of course you&#8217;ll want to check out the <a href="https://code.google.com/p/naclports/">nacl ports</a>. Â With everything in place the download should at least work correctly</p>
<p style="padding-left: 30px;">mkdir naclports<br />
cd naclports<br />
gclient config &#8211;name=src https://chromium.googlesource.com/external/naclports.git<br />
gclient config http://naclports.googlecode.com/svn/trunk/src<br />
gclient sync</p>
<p>And then before you go racing off trying to build something, as it stands right now (December 2013, pepper v.31), there is a big &#8216;libc&#8217; change going on, and most of the nacl stuff will not build. Â You&#8217;ll need to issue something like this:</p>
<p>NACL_GLIBC=1 make nethack</p>
<p>The other major roadblock I&#8217;ve seen so far is that zlib will not build correctly, it&#8217;ll want to build a static version of itself, because the <a href="https://code.google.com/p/naclports/issues/detail?id=77">configure script is still seeing your PC as OS X, not as a nacl build</a>. Â I found the easier way was to rename the Darwin section, and then remove all the Linux bits in the OS detection and rename that to Darwin&#8230;</p>
<p style="padding-left: 30px;">Linux | linux | GNU | GNU/*) LDSHARED=${LDSHARED-&#8220;$cc -shared -Wl,-soname,libz.so.1&#8221;};;</p>
<p>becomes</p>
<p style="padding-left: 30px;">
Darwin*) LDSHARED=${LDSHARED-&#8220;$cc -shared -Wl,-soname,libz.so.1&#8221;};;</p>
<p>And further down just rename</p>
<p style="padding-left: 30px;">Darwin*) shared_ext=&#8217;.dylib&#8217;</p>
<p>to</p>
<p style="padding-left: 30px;">XXXDarwin*) shared_ext=&#8217;.dylib&#8217;</p>
<p>And rebuilt zlib and now you should get the dynamic library everything else hinges on.</p>
<p>I hope this helps someone else..</p>
]]></content:encoded>
					
					<wfw:commentRss>https://virtuallyfun.com/2013/12/12/building-nacl-stuff-on-os-x/feed/</wfw:commentRss>
			<slash:comments>10</slash:comments>
		
		
			</item>
	</channel>
</rss>
