Ubuntu Setup

1. Install operating system
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------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
$ 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
(or other mirror site).
$ wget http://us.archive.ubuntu.com/ubuntu/pool/multiverse/s/sun-java5/sun-jav
$ wget http://us.archive.ubuntu.com/ubuntu/pool/multiverse/s/sun-java5/sun-jav
$ wget http://us.archive.ubuntu.com/ubuntu/pool/multiverse/s/sun-java5/sun-jav
$ wget http://us.archive.ubuntu.com/ubuntu/pool/multiverse/s/sun-java5/sun-jav
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

http://developer. $ (sdk_tools_install_dir)/android-sdk-linux_x86/tools/android If your network environment needs proxy settings. check the revision of the SDK tools.php?file=/eclipse/downloads/drops/R-3.android.com/ndk/index.9.android.gz" and unpack it any location. then check it and push "Next >" button and proceed install . select the "Settings" menu and input proxy configurations and check the "Force https://.xml At least.9. .. and select "Help"->"Install New software" menu.2.9. Then unpack it any locat ion.2-201002111343/eclipse-SDK-3. 7. Do not install latest (maybe 3. In the "Inst all" dialog. Configure the ADT plugin ------------------------------------------------------------------------------------------------------------------------------------------Launch the eclipse. "ADT-0.5.2-linux-gtk. 5. Install the Eclipse -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------If you have not installed the Eclipse yet.org/downloads/download.google. The "Add Site" dialog is appeard.com/sdk/eclipse-adt. press "Add" button. The "Developer Tools" is appeared in "Install" dialog.zip". Configure the Android SDK --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Launch the "Android SDK and AVD manager" by executing following command. revision 2 Then.zip) location to the "Location" field and push the "OK" button.x) version. you have to check following package to install (other packages are opt ional).tar. Select the "Available Packages" menu. http://developer. API 8.. It is not supported by the ADT plug in yet. 5. "android-ndk-r4b-linux_x86.gz and download the Eclipse Classic 3.6.html and download the SDK arhive.9. http://www. download ADT plugin --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Visit the Android developer site. Install the Android NDK -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Visit the Android developer site.eclipse. visit the Eclipse download site.android. $ (sdk_tools_install_dir)/android-sdk-linux_x86/tools/android And." checkbox. 9. visit the Android developer site. and extract items at https://dl-ssl.com/sdk/index. then enter "Android Plugin" to the "Name" fiel d and enter downloaded plugin file (ADT-0. "android-sdk_r07-linux_x86.com/android/repository/repository.5. If you hava not installed the Android SDK tools yet.SDK Platform Android 2. If the revision is older than 7. 6."Android SDK and AVD manager" by executing following command.tar.html and download the NDK arhive. http://developer.zip" and unpack it any location. push the "Install" button and proceed install process.h tml and download the ADT plugin. 8.2 for Linux 32bit. pleas e udpate to revesion 7.

$ repo sync If download process is completed. please refer the Andorid Open Source Project page (http://source.kernel.9.android.2_r1.com/sdk/eclipse-adt. Getting Android platform source code ---------------------------------------------------------------------------------------------------------------------------------------------------Create ~/bin directory and add this directory to your PATH. 6.kernel.git. start a development branch by "repo start" com mand with your branch name. $ repo init -u git://android.html ).kernel. $ curl https://android. VMWare for Windows Office 2007 (PDF included) USB enabled Symantec (For Connecting Boards and Phones) Microft Visual Source Safe 3 Microsoft Project Plan Visio Beyond Compare (Windows Version ) Winrar .5.2.process.2 Classic ADT plugin: ADT 0. Versions summary -------------------------------------------------------------------------------------------------------------Operating system: Ubuntu Desktop 9. select "Android" in the "Prefernces" dialog. API 8.org/repo > ~/bin/repo $ chmod a+x ~/bin/repo Then. please refer the A DT plugin page (http://developer. Revision 4b (June 2010) Eclipse: 3. 2.git. 10.git. get source code by following command. create an empty directory to work. restart the eclipse. and enter an Andro id SDK location in "SDK Location" field and press "OK" button. revision 2 Android NDK: Android NDK. If install process is completed. download "repo " from android.2_r1.2 (froyo).git -b android-2 . 3.9.1" to the "-b" option.com/download ) 11. select "Windows"->"Pr eferences" menu. 5. $ mkdir ~/mydroid $ cd ~/mydroid and execute "repo init". so you have to spec ify the tag information with "android-2. Revision 7 (September 2010) Android SDK: SDK Platform Android 2.1 Then.9 (September 2010) Android source code: android-2.2_r1.5. 7.org by following commands. And.1 Windows Environment 1.04 Android SDK Tools: SDK Tools. 8. $ repo start (your_branch_name) For more details.org/platform/manifest. 4. We'll develop the software based on the Android 2.10 (32bit) JDK: sun-java5-jdk_1. Then.0-19-0ubuntu0.android. For more details.

Sign up to vote on this title
UsefulNot useful