[Streak 5 Android Development] crash6:
This quide is a work in progress. (only testing with Ubuntu 10.04 x64)

After searching for a complete how to for building android from source I have determined there is none that are 100% complete.

Here is a compilation of guides from various sites that I used to build for the streak

Step One – install some packages.

Step Two – select the right version of Java.

Ubuntu doesn't have packages for the X11 libraries, but that can be worked around with the following command:

Step Three - Installing repo.

make bin dir in home directory and add to path

This can be made Permanent bay adding to the .bashrc file in ~/

Download the repo script and make it executable:

Step Four – Repo Init.

Create a working directory

Initialize the repo

Or if you would like to check out a specific branch use the following

If successful you will receive a message like:

“repo initialized in /mydroid”

To pull the files to your working directory now use:

Step Four – Verify tags.

Once you have done this press CTRL + D

Now there are a few changes we need to make before we build.

1.)We need to install gcc-4.3 (gcc-4.4 has more strict rules then previous versions that causes some issues during build)

2.)Add JAVE_HOME to ~/.bashrc

Add this to the end of the file:

A small issue with gcc

Fix issue with webkit build later on

Now that this is complete the build is pretty straight forward.

bluez

2) build android by

. build/envsetup.sh

choosecombo (all default option)

make -j4

3) replace external/bluez, and 'export BOARD_HAVE_BLUETOOTH=true'

4) mmm external/bluez

-------------------------------------------------------------------------------

jpeg

2) build android by

. build/envsetup.sh

choosecombo (all default option)

make -j4

3) replace external/jpeg

4) mmm external/jpeg

-------------------------------------------------------------------------------

webkit

2) build android by

. build/envsetup.sh

choosecombo (all default option)

make -j4

3) replace external/webkit

4) mmm external/webkit

-------------------------------------------------------------------------------

wpa_supplicant

2) build android by

. build/envsetup.sh

choosecombo (all default option)

make -j4

3) replace external/wpa_supplicant

4) mmm external/wpa_supplicant

-------------------------------------------------------------------------------

kernel

2) repleace kernel

3) build android by

. build/envsetup.sh

choosecombo

Build for the simulator or the device?

1. Device

2. Simulator

Which would you like? [1]

Build type choices are:

1. release

2. debug

Which would you like? [1]

Product choices are:

1. emulator

2. generic

3. sim

4. msm7627_ffa

5. msm7627_surf

6. qsd8250_ffa

7. qsd8250_surf

You can also type the name of a product if you know it.

Which product would you like? [generic] 7

Variant choices are:

1. user

2. userdebug

3. eng

Which would you like? [eng]

4) make -j4

Guide not complete. Will finish shortly

Sources -

http://source.android.com/source/download.html

http://www.johandekoning.nl/index.php/2009/06/07/building-android-15-build-environment/

http://hi.baidu.com/caicry/blog/item/cad9977f11f2920528388a9f.html

http://opensource.dell.com/releases/streak/1.12/HOW-TO-BUILD.txt