-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- --------------------------------------------- Download the Ubuntu Desktop 9.10 32bit version from http://www.ubuntu.com/getubuntu/download and install it. After the installation , disable the "Update Manager" by following procedure. 1. Select "System"->"Administration"->"Update Manager" 2. Push the "Settings..." button and enter a password for login user. 3. Uncheck all checkbox on the "Update" tab. 4. Push "Close" button. 2. Install required packages to build Android source code -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------- Install git-core, gnupg, flex, bison, gperf, libsdl-dev, libesd0-dev, libwxgtk2. 6-dev, build-essential, zip, curl, libncureses5-dev, and zlib1g-dev, by apt-get command. $ sudo apt-get install git-core gnupg flex bison gperf \ libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl \ libncurses5-dev zlib1g-dev If you have any problem on package installatin, please execute "sudo apt-get upd ate" to update the package list and try again. If you have downgraded gcc and g++ packages for the Android 1.6 build, execute f ollowing commands to cancel downgrading. $ sudo ln -sf gcc-4.4 /usr/bin/gcc $ sudo ln -sf g++-4.4 /usr/bin/g++ 3. Install JDK packages -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------- (If you have already installed the JDK5, you can skip this step). Install java-c ommon, unixodbc, and gsfonts-x11 by apt-get command. $ sudo apt-get java-common unixodbc gsfonts-x11 Download sun-java5 packages from http://us.archive.ubuntu.com/ubuntu/pool/multiverse/s/sun-java5/ (or other mirror site). $ wget http://us.archive.ubuntu.com/ubuntu/pool/multiverse/s/sun-java5/sun-jav a5-bin_1.5.0-19-0ubuntu0.9.04_i386.deb $ wget http://us.archive.ubuntu.com/ubuntu/pool/multiverse/s/sun-java5/sun-jav a5-demo_1.5.0-19-0ubuntu0.9.04_i386.deb $ wget http://us.archive.ubuntu.com/ubuntu/pool/multiverse/s/sun-java5/sun-jav a5-jdk_1.5.0-19-0ubuntu0.9.04_i386.deb $ wget http://us.archive.ubuntu.com/ubuntu/pool/multiverse/s/sun-java5/sun-jav a5-jre_1.5.0-19-0ubuntu0.9.04_i386.deb Install downloaded packages by dpkg command. $ sudo dpkg -i sun-java5-* And set the java-alternatives to java-1.5.0-sun $ sudo update-java-alternatives -s java-1.5.0-sun The update-alternatives command may report some errors, but it's OK. 4. Install the Android SDK Tools -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- ------------ If you have already installed the Android SDK tools, launch the "Android SDK and AVD manager" by executing following command. $ (sdk_tools_install_dir)/android-sdk-linux_x86/tools/android And, check the revision of the SDK tools. If the revision is older than 7, pleas e udpate to revesion 7. If you hava not installed the Android SDK tools yet, visit the Android developer site, http://developer.android.com/sdk/index.html and download the SDK arhive, "android-sdk_r07-linux_x86.tar.gz" and unpack it any location. 5. Install the Android NDK -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- ---------------------------------- Visit the Android developer site, http://developer.android.com/ndk/index.html and download the NDK arhive, "android-ndk-r4b-linux_x86.zip" and unpack it any location. 6. download ADT plugin -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- ------------------------------- Visit the Android developer site, http://developer.android.com/sdk/eclipse-adt.h tml and download the ADT plugin, "ADT-0.9.9.zip". 7. Configure the Android SDK -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- ------------------------------------- Launch the "Android SDK and AVD manager" by executing following command. $ (sdk_tools_install_dir)/android-sdk-linux_x86/tools/android If your network environment needs proxy settings, select the "Settings" menu and input proxy configurations and check the "Force https://..." checkbox. Select the "Available Packages" menu, and extract items at https://dl-ssl.google.com/android/repository/repository.xml At least, you have to check following package to install (other packages are opt ional). - SDK Platform Android 2.2, API 8, revision 2 Then, push the "Install" button and proceed install process. 8. Install the Eclipse -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- ------------------------------ If you have not installed the Eclipse yet, visit the Eclipse download site, http://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/drops/R-3. 5.2-201002111343/eclipse-SDK-3.5.2-linux-gtk.tar.gz and download the Eclipse Classic 3.5.2 for Linux 32bit. Then unpack it any locat ion. Do not install latest (maybe 3.6.x) version. It is not supported by the ADT plug in yet. 9. Configure the ADT plugin -------------------------------------------------------------------------------- ------------------------------------------------------------ Launch the eclipse, and select "Help"->"Install New software" menu. In the "Inst all" dialog, press "Add" button. The "Add Site" dialog is appeard, then enter "Android Plugin" to the "Name" fiel d and enter downloaded plugin file (ADT-0.9.9.zip) location to the "Location" field and push the "OK" button. The "Developer Tools" is appeared in "Install" dialog, then check it and push "Next >" button and proceed install process. If install process is completed, restart the eclipse. And, select "Windows"->"Pr eferences" menu, select "Android" in the "Prefernces" dialog, and enter an Andro id SDK location in "SDK Location" field and press "OK" button. For more details, please refer the A DT plugin page (http://developer.android.com/sdk/eclipse-adt.html ). 10. Getting Android platform source code -------------------------------------------------------------------------------- --------------------------------------------------------------------- Create ~/bin directory and add this directory to your PATH. Then, download "repo " from android.git.kernel.org by following commands. $ curl https://android.git.kernel.org/repo > ~/bin/repo $ chmod a+x ~/bin/repo Then, create an empty directory to work, $ mkdir ~/mydroid $ cd ~/mydroid and execute "repo init". We'll develop the software based on the Android 2.2 (froyo), so you have to spec ify the tag information with "android-2.2_r1.1" to the "-b" option. $ repo init -u git://android.git.kernel.org/platform/manifest.git -b android-2 .2_r1.1 Then, get source code by following command. $ repo sync If download process is completed, start a development branch by "repo start" com mand with your branch name. $ repo start (your_branch_name) For more details, please refer the Andorid Open Source Project page (http://source.android.com/download ) 11. Versions summary -------------------------------------------------------------------------------- ------------------------------- Operating system: Ubuntu Desktop 9.10 (32bit) JDK: sun-java5-jdk_1.5.0-19-0ubuntu0.9.04 Android SDK Tools: SDK Tools, Revision 7 (September 2010) Android SDK: SDK Platform Android 2.2, API 8, revision 2 Android NDK: Android NDK, Revision 4b (June 2010) Eclipse: 3.5.2 Classic ADT plugin: ADT 0.9.9 (September 2010) Android source code: android-2.2_r1.1 Windows Environment 1. VMWare for Windows 2. Office 2007 (PDF included) 3. USB enabled Symantec (For Connecting Boards and Phones) 4. Microft Visual Source Safe 5. 3 Microsoft Project Plan 6. Visio 7. Beyond Compare (Windows Version ) 8. Winrar