<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[[Solution] Building Ubuntu Touch source on Ubuntu 16.10]]></title><description><![CDATA[<p dir="auto">After receiving my Fairphone 2, I've been wrestling with the Android build system trying to get it to spit out the system.img on Ubuntu 16.10. First, I had issues getting the recommended packages to install. Then, every time I'd try to build I'd get strange errors that I later learned were caused by newer versions of gcc and g++. So, the following instructions will get you building in no time at all.</p>
<p dir="auto">Please note that we will be removing the new versions of gcc and g++ in these instructions, which may impede your ability to build newer software. You might consider getting an Ubuntu 16.04 container or virtual machine, then doing the following.</p>
<p dir="auto">First, ensure that you do not have the build-essential, gcc, or g++ packages installed.</p>
<p dir="auto"><code>sudo apt-get remove g++ gcc</code></p>
<p dir="auto">Now, let's install the required packages to build Ubuntu Touch.</p>
<pre><code>sudo apt-get install git gnupg flex bison gperf zip \
bzr curl libc6-dev libncurses5-dev x11proto-core-dev \
libx11-dev libreadline6-dev libgl1-mesa-glx libgl1-mesa-dev \
tofrodos python-markdown libxml2-utils xsltproc zlib1g-dev \
schedtool g++-4.8-multilib gcc-4.8-multilib
</code></pre>
<p dir="auto">This will install gcc-4.8 and g++-4.8, but won't allow you to use the gcc, g++, or cc commands. We need to link our compilers to the right place. We'll use update-alternatives for this.</p>
<pre><code>sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 10
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 10
sudo update-alternatives --install /usr/bin/cc cc /usr/bin/gcc 30
</code></pre>
<p dir="auto">There, all done. Now you should be able to build the UBPorts source on Ubuntu 16.10. These instructions should also help you on Ubuntu 16.04 and earlier if you're having trouble.</p>
]]></description><link>https://forums.ubports.com/topic/129/solution-building-ubuntu-touch-source-on-ubuntu-16-10</link><generator>RSS for Node</generator><lastBuildDate>Fri, 15 May 2026 08:17:20 GMT</lastBuildDate><atom:link href="https://forums.ubports.com/topic/129.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 24 Dec 2016 02:16:46 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [Solution] Building Ubuntu Touch source on Ubuntu 16.10 on Fri, 13 Jan 2017 19:48:16 GMT]]></title><description><![CDATA[<p dir="auto">hi, i'm try to port UbT to Moto G 2014</p>
<p dir="auto">i have an error when generating boot.img<br />
boot.img too large (10729472 &gt; [10771200 - 270336])</p>
<p dir="auto">Can any one help me to fix this, recovery.img work  fine</p>
]]></description><link>https://forums.ubports.com/post/603</link><guid isPermaLink="true">https://forums.ubports.com/post/603</guid><dc:creator><![CDATA[walidham]]></dc:creator><pubDate>Fri, 13 Jan 2017 19:48:16 GMT</pubDate></item><item><title><![CDATA[Reply to [Solution] Building Ubuntu Touch source on Ubuntu 16.10 on Sat, 24 Dec 2016 02:22:15 GMT]]></title><description><![CDATA[<p dir="auto">For future Googlers, the errors include:</p>
<p dir="auto">Apt-get saying:</p>
<pre><code>The following information may help to resolve the situation:

The following packages have unmet dependencies:
 build-essential : Depends: gcc (&gt;= 4:4.4.3) but it is not going to be installed
                   Depends: g++ (&gt;= 4:4.4.3) but it is not going to be installed
 g++-4.8-multilib : Depends: g++-4.8 (= 4.8.4-2ubuntu1~14.04.3) but it is not going to be installed
                    Depends: gcc-4.8-multilib (= 4.8.4-2ubuntu1~14.04.3) but it is not going to be installed
 g++-multilib : Depends: cpp (&gt;= 4:4.8.2-1ubuntu6) but it is not going to be installed
                Depends: gcc-multilib (&gt;= 4:4.8.2-1ubuntu6) but it is not going to be installed
                Depends: g++ (&gt;= 4:4.8.2-1ubuntu6) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
</code></pre>
<p dir="auto">And gcc errors like:</p>
<pre><code>frameworks/base/libs/androidfw/AssetManager.cpp: In member function ‘android::String8 android::AssetManager::getPkgName(const char*)’:
frameworks/base/libs/androidfw/AssetManager.cpp:480:63: error: invalid conversion from ‘const char16_t*’ to ‘const uint16_t* {aka const short unsigned int*}’ [-fpermissive]
             const uint16_t* str = tree.getAttributeStringValue(idx, &amp;len);
                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
</code></pre>
<p dir="auto">And</p>
<pre><code>system/core/adb/transport.c:807:9: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation]
         if (error_out)
         ^~
system/core/adb/transport.c:809:13: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’
             continue;
             ^~~~~~~~
</code></pre>
]]></description><link>https://forums.ubports.com/post/540</link><guid isPermaLink="true">https://forums.ubports.com/post/540</guid><dc:creator><![CDATA[UniSuperBox]]></dc:creator><pubDate>Sat, 24 Dec 2016 02:22:15 GMT</pubDate></item></channel></rss>