[FE training-materials-updates] Instructions for Ubuntu 12.10

Michael Opdenacker michael.opdenacker at free-electrons.com
Thu Dec 20 20:21:19 CET 2012


Repository : git://git.free-electrons.com/training-materials.git

On branch  : master
Link       : http://git.free-electrons.com/training-materials/commit/?id=f67a9d2718836588f4c4c7671f850eebbcde59c5

>---------------------------------------------------------------

commit f67a9d2718836588f4c4c7671f850eebbcde59c5
Author: Michael Opdenacker <michael.opdenacker at free-electrons.com>
Date:   Tue Dec 18 05:08:57 2012 +0100

    Instructions for Ubuntu 12.10
    
    For people who have recent hardware and need a recent version


>---------------------------------------------------------------

f67a9d2718836588f4c4c7671f850eebbcde59c5
 .../android-first-compilation.tex                  |   25 +++++++++++++++++++-
 1 file changed, 24 insertions(+), 1 deletion(-)

diff --git a/labs/android-first-compilation/android-first-compilation.tex b/labs/android-first-compilation/android-first-compilation.tex
index d40ce34..5ede337 100644
--- a/labs/android-first-compilation/android-first-compilation.tex
+++ b/labs/android-first-compilation/android-first-compilation.tex
@@ -33,7 +33,7 @@ You will see that \code{build/envsetup.sh} hasn't modified your
 The target product for the emulator is {\it generic}, and we want to
 have an engineering build. To do this, run \code{lunch generic-eng}
 
-\section{Patches for Ubuntu 12.04}
+\section{Patches for Ubuntu 12.04 and beyond}
 
 Google supports Ubuntu 10.04 for building Android 2.3 Gingerbread.
 However, with two minor patches, it is possible to build this version
@@ -46,6 +46,29 @@ the below command):
 cat ../patches/*.patch | patch -p1
 \end{verbatim}
 
+\section{Fixes for Ubuntu 12.10}
+
+We don't officially support Ubuntu 12.10 for our Android labs, but you
+may be forced to use this version if you have a recent PC and earlier
+versions of Ubuntu don't support it yet.
+
+Ubuntu 12.10 ships with gcc 4.7, which is too recent to build Android
+2.3. Hence, we need to install gcc 4.6, and make it the default version
+used on your system:
+
+\begin{verbatim}
+sudo apt-get install gcc-4.6 g++-4.6 gcc-4.6-multilib g++-4.6-multilib
+sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.7 50
+sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.6 100
+sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.7 50
+sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 100
+sudo update-alternatives --install /usr/bin/cpp cpp-bin /usr/bin/cpp-4.7 50
+sudo update-alternatives --install /usr/bin/cpp cpp-bin /usr/bin/cpp-4.6 100
+sudo update-alternatives --set g++ /usr/bin/g++-4.6
+sudo update-alternatives --set g++ /usr/bin/gcc-4.6
+sudo update-alternatives --set cpp-bin /usr/bin/cpp-4.6
+\end{verbatim}
+
 \section{Compile the root filesystem}
 
 The build system will use the proper setup to build this



More information about the training-materials-updates mailing list