Hi to all.
There are a lot of tutorial how to prepare Ubuntu 12.04.4 for android Build. And none of them is complete, some pack is allways mising witch is very anoing. So I made my tutorial simple.
1. install ubuntu 12.04.4 *64 (not wubi instalation!!! For single build you will need >100 GB)
2. recomended to make swap partition during instalation
sudo swapon -s
than type this:
Create and Enable the Swap File:
Create the swap file using the dd command:
sudo dd if=/dev/zero of=/swapfile bs=1024 count=2048k
sudo mkswap /swapfile
Finish by activating the swap file:
sudo swapon /swapfile
And check is your swap file active with:
sudo swapon -s
if result is like this , swap file is active:
Filename Type Size Used Priority /swapfile file 2097148 0 -1
install java 6 SE
in terminal type this:
sudo apt-get purge openjdk*
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java6-installer
and hit enter
than to install all packages needed for building type this:
sudo apt-get install ia32-libs git-core gnupg flex bison gperf libsdl1.2-dev libesd0-dev libwxgtk2.8-dev squashfs-tools build-essential lzop zip curl libncurses5-dev zlib1g-dev pngcrush schedtool libxml2 libxml2-utils xsltproc g++-multilib lib32z1-dev lib32ncurses5-dev lib32readline-gplv2-dev gcc-multilib
hit enter and wait.
It need some time to download some updates and all packages required for android bild.
if it show this:
g++ (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3 Copyright (C) 2011 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
if it show this, its ok.
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3 Copyright (C) 2011 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
5. Installing Repo
Repo is a tool that makes it easier to work with Git in the context of Android.
To install Repo:
Create bin directory in your home directory and that it is included in your path:
Download the Repo tool and ensure that it is executable:
curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo
Create a directory for your working files:
Run repo init to bring down the latest version of Repo with all its most recent bug fixes. You must specify a URL for the manifest, which specifies where the various repositories included in the Android source will be placed within your working directory.
.repo is hidden in android folder. To see it hit Ctrl+h in open android folder.
repo init -u https://android.googlesource.com/platform/manifest
For example and test we will use chill360 source for build:
repo init -u git://github.com/SlimRoms/platform_manifest.git -b kk4.4-caf
Copy slimkat_huawei.xml to .repo/local_manifests
Now wait. Need to download aprox 10GB
6. Start build
At the end check out folder in /android/out/target/product/u8833. If everything went as it should your rom will be there.
Credits for helping me to learn:
If anything missing please point out.
Like every tutorial say in the end:
Happy building and enjoy...
Edited by Y300-0100, 21 July 2014 - 09:06 PM.