[Samsung Galaxy Nexus] kejar31:
Compiling Gummy on Ubuntu 10.04

All work here is done from Ubuntu 10.04.. Newer releases may require slightly different packages.

Installing dependencies:

Install Ubuntu 10.04 and install all updates

Install Java SDK (type or copy the commands into the terminal exactly as you see them here )

sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner”

sudo apt-get update

sudo apt-get install sun-java6-jdk

Install Git

sudo apt-get install git-core

Install the rest of the needed files

sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev libc6-dev lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils pngcrush

Setting up and syncing Gummy’s Repo

Enter the commands in the terminal exactly as they are displayed to setup your PATH

mkdir ~/bin

PATH=~/bin:$PATH

curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo

chmod a+x ~/bin/repo

Create your Gummy source directory and then go to that directory

mkdir ~/Gummy

cd ~/Gummy

Initialize and sync the Gummy repo (where X is put the number of cores for your CPU such as “repo sync -j4” for a quad core)

repo init -u https://github.com/teamgummy/platform_manifest.git -b master

repo sync -jX

Take a break and enjoy an ice cold beer

Go to the fridge

Pull out your favorite brand of beer

Open with care

Drink with pleasure

Otherwise its going to take a while ( a long while )

Preparing to Gummy and compiling

Get prebuilts (Term)

cd ~/Gummy/vendor/Gummy

./get-prebuilts

cd ~/Gummy

Compile (dont forget the . and also make sure you again change the X to the number of cores you have)

. build/envsetup.sh && lunch Gummy_toro-userdebug && make gummy -jX

_____________________________________________________________

Compiling Gummy on Ubuntu 11.10

Some of these instructions were taken directly from here..

First up:

Install Ubunutu 11.10 and install all the updates

Installing java:

Download the java JDK make sure you select accept the licence agreement and grab the jdk-6u30-linux-x64.bin

enter these commands exactly as they are listed

sudo chmod a+x ~/Downloads/jdk-6u30-linux-x64.bin

sudo cp ~/Downloads/jdk-6u30-linux-x64.bin /usr/lib

cd /usr/lib

sudo ./jdk-6u30-linux-x64.bin

sudo mv /usr/lib/jdk1.6.0_30/ /usr/lib/jvm/

Determine if any other JVMs are installed, and count how many, if any

sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.6.0_30/jre/bin/java 1

sudo update-alternatives --config java

Be sure to select /usr/lib/jvm/jdk1.6.0_30/jre/bin/java (number 2 in my build environment)

We need create symbolic links to a few Java binaries in /usr/bin

cd /usr/bin

sudo ln -s /usr/lib/jvm/jdk1.6.0_30/bin/javac

sudo ln -s /usr/lib/jvm/jdk1.6.0_30/bin/jar

sudo ln -s /usr/lib/jvm/jdk1.6.0_30/bin/javadoc

We need to ensure that the AOSP build process can locate the JDK, so we will set a variable it uses to locate the JDK.

nano ~/.bashrc

Add the following lines at the botton:

ANDROID_JAVA_HOME=/usr/lib/jvm/jdk1.6.0_30

export ANDROID_JAVA_HOME

pres CTRL + X then Y to save your changes

Installing dependencies:

Enter these commands exactly as they are listed

sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev libc6-dev lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline-gplv2-dev lib32z-dev libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils xsltproc pngcrush

Just to be sure reboot

Setting up and syncing Gummy’s Repo

Enter the commands in the terminal exactly as they are displayed to setup your PATH

mkdir ~/bin

PATH=~/bin:$PATH

curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo

chmod a+x ~/bin/repo

Create your Gummy source directory and then go to that directory

mkdir ~/Gummy

cd ~/Gummy

Initialize and sync the Gummy repo (where X is put the number of cores for your CPU such as “repo sync -j4” for a quad core)

repo init -u https://github.com/teamgummy/platform_manifest.git -b master

repo sync -jX

Take a break and enjoy an ice cold beer

Go to the fridge

Pull out your favorite brand of beer

Open with care

Drink with pleasure

Otherwise its going to take a while ( a long while )

Preparing to Gummy and compiling

Get prebuilts (Term)

cd ~/Gummy/vendor/Gummy

./get-prebuilts

cd ~/Gummy

Compile (dont forget the . and also make sure you again change the X to the number of cores you have)

. build/envsetup.sh && lunch Gummy_toro-userdebug && make gummy -jX