Ubuntu 13.10 Set up and Build Guide
This is a work in progress and will be ever evolving! If you find mistakes or think you can make it easier please post your suggestions in the thread!
Feel free to ask any questions about the build process. Do not ask questions about Ubuntu!
This guide assumes the following
My Build Machine is...
- Have Ubuntu 13.10 setup, fully operation, and up to date. Hard Machine or Virtual, makes no difference. Must meet the minimum specs for compiling. Info from Google HERE
- Understand terminal command line entry as this is all command line processors.
- You are not here to ask for help with Linux, only the Android build process!
- Xeon X5550 CPU (4 cores / 8 Logical CPU's)
- 16 Gigs of RAM (Way overkill)
- 120 Gig SSD
- Low End ATI Video Card
- Gigabit Lan
Add Build tools
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update && sudo apt-get install oracle-java6-installer
(Adds the required packages at the time of this posting)
Add Repo command
sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev zlib1g-dev:i386 libc6-dev lib32ncurses5-dev lib32z1 lib32ncurses5 lib32bz2-1.0 x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 lib32z1-dev libgl1-mesa-glx:i386 libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils xsltproc readline-common libreadline6-dev libreadline6 lib32readline-gplv2-dev libncurses5-dev lib32readline5 lib32readline6 libreadline-dev libreadline6-dev:i386 libreadline6:i386 bzip2 libbz2-dev libbz2-1.0 libghc-bzlib-dev lib32bz2-dev libsdl1.2-dev libesd0-dev squashfs-tools pngcrush schedtool libwxgtk2.8-dev python
sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so
(Syncs Google Repository with your local machine)
Add bin folder to path for repo command
mkdir ~/bin && curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo && chmod a+x ~/bin/repo
(After you do this close Terminal and re-open to institute changes (easy way))
Identify Yourself to the Repo
sudo gedit .bashrc
export PATH=~/bin:$PATH <-(add to end of bashrc)
(One day you may make commits so think about that when choosing your info!)
git config --global user.email "firstname.lastname@example.org"
git config --global user.name "yourpreferredusername"
(Download source... Sit back and grab a pop and a sandwich...)
repo init -u https://android.googlesource.com/platform/manifest -b android-4.4.2_r1
I use AOSP as my directory name. You can use what you want. You could use "aosp" or "Source" or "android" or "whateveryoulike"
Install proprietary binaries
(Needed for things like GPS and Bluetooth, they are not Open Source like android) (Install proprietary binaries from here in the root of AOSP folder (or whatever you called yours))
make -j12 otapackage
See Build Notes and ramblings from me in post #3!