<?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>BlackBerry Developer Blog &#187; Linux</title>
	<atom:link href="http://devblog.blackberry.com/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://devblog.blackberry.com</link>
	<description></description>
	<lastBuildDate>Wed, 19 Jun 2013 18:00:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='devblog.blackberry.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/9ef0a66c09615fa946c4179662398878?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>BlackBerry Developer Blog &#187; Linux</title>
		<link>http://devblog.blackberry.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://devblog.blackberry.com/osd.xml" title="BlackBerry Developer Blog" />
	<atom:link rel='hub' href='http://devblog.blackberry.com/?pushpress=hub'/>
		<item>
		<title>Setting Up Your 64-bit Linux Machine for Native BlackBerry 10 Development</title>
		<link>http://devblog.blackberry.com/2013/01/linux-setup-blackberry-10-development/</link>
		<comments>http://devblog.blackberry.com/2013/01/linux-setup-blackberry-10-development/#comments</comments>
		<pubDate>Wed, 09 Jan 2013 17:52:06 +0000</pubDate>
		<dc:creator>Samantha L</dc:creator>
				<category><![CDATA[Native SDK Development]]></category>
		<category><![CDATA[Cascades]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[ndk]]></category>
		<category><![CDATA[Setup]]></category>

		<guid isPermaLink="false">http://devblog.blackberry.com/?p=12949</guid>
		<description><![CDATA[Guest post from Didiet &#8211; Ed. BlackBerry 10 is known to be one of the most open platforms out there right now. The Native SDK is available for all three operating systems, including GNU/Linux. I’m one of the GNU/Linux fans; Linux had introduced me to the world of UNIX and POSIX. Because QNX is POSIX-compliant, [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=12949&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><i>Guest post from Didiet &#8211; Ed.</i></p>
<p>BlackBerry 10 is known to be one of the most open platforms out there right now. The Native SDK is available for all three operating systems, including GNU/Linux. I’m one of the GNU/Linux fans; Linux had introduced me to the world of UNIX and POSIX. Because QNX is POSIX-compliant, the development tools play well with the Linux environment.</p>
<p>Linux installation varies from computer to computer; there will be some differences in experience when installing BlackBerry 10 SDK. I will highlight some of these differences below and guide you through to make your Linux box a full-fledged BlackBerry 10 Native Development Workstation.</p>
<p>The Linux I am using is <strong>Ubuntu Linux 12.10 64-bit</strong>. I use the 64-bit distro because it’s the distro with a few issues needing to be resolved before the BlackBerry 10 Native SDK can be used. Furthermore, it’s also the system I use as the build server for my personal projects.</p>
<p>Let’s start with the first potential issue:</p>
<p><span id="more-12949"></span></p>
<h3><strong>Issue #1: Cannot connect to device</strong></h3>
<p>BlackBerry 10 Dev Alpha uses TCP/IP over USB to communicate with the host computer (i.e. your computer). However, sometimes it doesn’t work. If you face this problem, you need to set your handset as <strong>Windows Connection</strong> manually.</p>
<p><img class="aligncenter size-full wp-image-12950" alt="TITLE_IMAGE" src="http://rimdevblog.files.wordpress.com/2013/01/linux-setup.jpg?w=295&#038;h=480" width="295" height="480" /></p>
<p>To test if the connection is running well, ping the IP address of the device while in development mode.</p>
<h3><strong>Issue #2: Cannot run the Native SDK Linux installer</strong></h3>
<p>The installer of BlackBerry 10 is built in a Java platform that runs in 32-bit infrastructure; it uses 32-bit GNU Standard C and C++ library, which isn’t installed in 64-bit Linux <strong>by default</strong>. Therefore, it will say something like “<strong>cannot find /path/to/tmp/java</strong>”. If you try to find it, it’s there. The error happens because the 32-bit Java runtime can’t be executed; the 32-bit libraries are missing. So we need to install it first. To do that, use <strong>apt-get</strong> or <strong>aptitude</strong> command:</p>
<p><code>$ sudo aptitude install libc6:i386 libstdc++6:i386</code></p>
<p>After that, execute the installer. Don’t forget to make the installer executable after download:</p>
<p><code>$ chmod u+x ./ installer-bbndk-bb10_0_09-linux-1673-201212072306-201212091625.bin<br />
$ ./installer-bbndk-bb10_0_09-linux-1673-201212072306-201212091625.bin</code></p>
<p>Voila! The error is gone.</p>
<h3><strong>Issue #3: Cannot run Momentics</strong></h3>
<p>Momentics is the name of the IDE to create Native Apps on BlackBerry 10. It’s also built on Eclipse on 32-bit Java Platform. The installer embeds the runtime to the NDK. However, some libraries are missing so it can’t be started. It turns out that it needs 32-bit X11 and GTK+Pango libraries. So we need to install it to be able to run the Momentics IDE.</p>
<p><code>$ sudo aptitude install libatk1.0-0:i386 libc6:i386 libcairo2:i386 libexpat1:i386 libffi6:i386 libfontconfig1:i386 libfreetype6:i386 libgcc1:i386 libgdk-pixbuf2.0-0:i386 libglib2.0-0:i386 libgtk2.0-0:i386 libpango1.0-0:i386 libpcre3:i386 libpixman-1-0:i386 libpng12-0:i386 libselinux1:i386 libstdc++6:i386 libx11-6:i386 libxau6:i386 libxcb1:i386 libxcb-render0:i386 libxcb-shm0:i386 libxcomposite1:i386 libxcursor1:i386 libxdamage1:i386 libxdmcp6:i386 libxext6:i386 libxfixes3:i386 libxi6:i386 libxinerama1:i386 libxrandr2:i386 libxrender1:i386 libxtst6:i386 zlib1g:i386</code></p>
<p>And try to run the IDE by executing command line (adapt the paths of your bbndk installation, mine is in <strong>${HOME}/bbndk/</strong>)</p>
<p><code>$ ~/bbndk/bbndk.sh</code></p>
<p>Now you’ll be able to code and run your Native/Cascades apps on Linux.</p>
<p>Happy coding, folks! Don’t forget to submit your applications before <strong>January 21, 2013</strong> and be the first of apps to be discovered and used by BlackBerry 10 users!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rimdevblog.wordpress.com/12949/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rimdevblog.wordpress.com/12949/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devblog.blackberry.com&#038;blog=17235680&#038;post=12949&#038;subd=rimdevblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devblog.blackberry.com/2013/01/linux-setup-blackberry-10-development/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7e2ea14c0a0d5fd0c6803d553664460b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">saml8</media:title>
		</media:content>

		<media:content url="http://rimdevblog.files.wordpress.com/2013/01/linux-setup.jpg" medium="image">
			<media:title type="html">TITLE_IMAGE</media:title>
		</media:content>
	</item>
	</channel>
</rss>
