Ubuntu 14.04 Set up and Build Guide
Feel free to ask any questions about the build process. Do not ask questions about Ubuntu!
This guide assumes the following
- Have Ubuntu 14.04 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!
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 gnupg flex bison gperf dpkg-dev build-essential \
zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \
libgl1-mesa-dev g++-multilib mingw32 tofrodos \
python-markdown libxml2-utils xsltproc zlib1g-dev:i386
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 "email@example.com"
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.4_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))
See Build Notes and ramblings from me in post #3!