# vi /home/souken-i/.bashrc (Add this line:)
------
export PATH=${PATH}:/home/souken-i/android/SDK/android-sdk-linux_x86-1.0_r2/tools
------
Now the SDK is OK. Run "# emulator" to test.
* Update Eclipse:
* Remove current eclipse if have:
# sudo apt-get remove eclipse
* Download latest elipse from: http://www.eclipse.org/downloads/
* I choose "Eclipse IDE for Java EE Developers (162 MB)" and
download file: eclipse-jee-ganymede-SR1-linux-gtk.tar.gz
* Unpack it and add its path to PATH.
* Version: 3.4.1 Build id: M20080911-1700
* Install Eclipse plugin for Android: ADT
* Download latest ADT(I choose ADT-0.8.0.zip) from:
# git clone git://git.kernel.org/pub/scm/git/git.git
# cd git
# make prefix=/usr; make install
# make prefix=/usr all doc info
# sudo make prefix=/usr install install-doc install-html install-info
To compile git, install the packages below on Ubuntu for missing header
files:
# sudo apt-get install libc6-dev libssl-dev zlib1g-dev libcurl4-openssl-dev libexpat1-dev asciidoc xmlto texinfo
* For missing header file, go to web http://packages.ubuntu.com/
and search which package which includes this file.
Get repo tools
==============
* repo is not a new tools. It is just a wrap for git command.
# mkdir ~/bin
# curl http://android.git.kernel.org/repo > ~/bin/repo
# chmod a+x ~/bin/repo
Add ~/bin to PATH.
Get Android Source
==================
# cd ~/android/source
# repo init -u git://android.git.kernel.org/platform/manifest.git
# repo sync
Build Android
=============
# cd ~/android/source
# make
* compile error:
prebuilt/linux-x86/sdl/include/SDL/SDL_syswm.h:75: error: syntax error before '}' token
# cp out/target/product/generic/*.img
~/android/SDK/android-sdk-linux_x86-1.0_r2/tools/lib/images/
# emulator &
* But where is the kernel image? (kernel-qemu)