Initial Environment:
1. Installing the JDK
$ sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
$ sudo apt-get update
$ sudo apt-get install sun-java6-jdk
2.Installing required packages
on unbuntu 10.10
$ sudo ln -s /usr/lib32/mesa/libGL.so.1 /usr/lib32/mesa/libGL.so
32-bit (experimental)
$ sudo apt-get install git-core gnupg flex bison gperf build-essential \
zip curl zlib1g-dev libc6-dev libncurses5-dev x11proto-core-dev \
libx11-dev libreadline6-dev libgl1-mesa-dev tofrodos python-markdown \
libxml2-utils xsltproc
3. Downloading the Source Tree
$ mkdir ~/bin
$ PATH=~/bin:$PATH
Download the Repo script and ensure it is executable:
$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
$ chmod a+x ~/bin/repo
$ mkdir WORKING_DIRECTORY
$ cd WORKING_DIRECTORY
$ repo init -u https://android.googlesource.com/platform/manifest
$ repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.1_r1 (Note that: there is 4.0 path, you can change it to a version what you want like 2.3.6_rl, 4.0 cannot be build in PC)
4. Building the System
1) set java path like this
JAVA_HOME=/home/jason/jdk1.6.0_21
PATH=$JAVA_HOME/bin:$PATH
export PATH
2). $ source build/envsetup.sh
3). $ lunch full-eng
4). make (Note: There is "make j4" in Google Doc, but if you use make j4 ,there will be quit and do not compile)
PS: Google Doc Details:http://source.android.com/source/initializing.html
1. Installing the JDK
$ sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
$ sudo apt-get update
$ sudo apt-get install sun-java6-jdk
2.Installing required packages
on unbuntu 10.10
$ sudo ln -s /usr/lib32/mesa/libGL.so.1 /usr/lib32/mesa/libGL.so
32-bit (experimental)
$ sudo apt-get install git-core gnupg flex bison gperf build-essential \
zip curl zlib1g-dev libc6-dev libncurses5-dev x11proto-core-dev \
libx11-dev libreadline6-dev libgl1-mesa-dev tofrodos python-markdown \
libxml2-utils xsltproc
3. Downloading the Source Tree
$ mkdir ~/bin
$ PATH=~/bin:$PATH
Download the Repo script and ensure it is executable:
$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
$ chmod a+x ~/bin/repo
$ mkdir WORKING_DIRECTORY
$ cd WORKING_DIRECTORY
$ repo init -u https://android.googlesource.com/platform/manifest
$ repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.1_r1 (Note that: there is 4.0 path, you can change it to a version what you want like 2.3.6_rl, 4.0 cannot be build in PC)
4. Building the System
1) set java path like this
JAVA_HOME=/home/jason/jdk1.6.0_21
PATH=$JAVA_HOME/bin:$PATH
export PATH
2). $ source build/envsetup.sh
3). $ lunch full-eng
4). make (Note: There is "make j4" in Google Doc, but if you use make j4 ,there will be quit and do not compile)
PS: Google Doc Details:http://source.android.com/source/initializing.html