Repo installation on Windows.

6,200 views
Skip to first unread message

Honest

unread,
Feb 8, 2011, 2:37:17 AM2/8/11
to android-chennai
helllo,

I want to download whole android plateform code. I am able to use GIT
in my windows pc but i am not getting any idea how to install Repo. if
some one can help me with it then it would be really helpful to me.

Griffin Chennai

unread,
Feb 8, 2011, 4:13:24 AM2/8/11
to android...@googlegroups.com

Setting up your machine

To build the Android source files, you will need to use Linux or Mac OS. Building under Windows is not currently supported.

Linux

The Android build is routinely tested in house on recent versions of Ubuntu (10.04 and later), but most distributions should have the required build tools available. Reports of successes or failures on other distributions are welcome.

In general you will need:

  • Python 2.4, which you can download from python.org.
  • JDK 6 if you wish to build Gingerbread or newer; JDK 5 for Froyo or older. You can download either from java.sun.com.
  • Git 1.5.4 or newer. You can find it at http://git.or.cz/.

Ubuntu Linux (64-bit)

The Sun JDK is no longer in Ubuntu's main package repository. In order to download it, you need to add the appropriate repository and indicate to the system which JDK should be used.

Java 6: for Gingerbread and newer

sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
sudo add-apt-repository "deb-src http://archive.canonical.com/ubuntu lucid partner"
sudo apt-get update
sudo apt-get install sun-java6-jdk
sudo update-java-alternatives -s java-6-sun

Java 5: for Froyo and older

sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu dapper main multiverse"
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu dapper-updates main multiverse"
sudo apt-get update
sudo apt-get install sun-java5-jdk
sudo update-java-alternatives -s java-1.5.0-sun

To set up your development environment, install the following required packages:

$ sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev

You might also want Valgrind, a tool that will help you find memory leaks, stack corruption, array bounds overflows, etc.

Running Linux in a virtual machine

If you are running Linux in a virtual machine, you will need at least 1.5GB of RAM and 10GB or more of disk space in order to build the Android tree.

Mac OS X

To build the Android files in a Mac OS environment, you need an Intel/x86 machine running MacOS 10.4 (Tiger), 10.5 (Leopard), or 10.6 (Snow Leopard). The Android build system and tools do not support the obsolete PowerPC architecture.

Android must be built on a case-sensitive file system because the sources contain files that differ only in case. We recommend that you build Android on a partition that has been formatted with the journaled file system HFS+. HFS+ is required to successfully build Mac OS applications such as the Android Emulator for OS X.

Creating a case sensitive disk image

If you want to avoid partitioning/formatting your hard drive, you can use a case-sensitive disk image instead. To create the image, launch Disk Utility and select "New Image". A size of 8 GB is sufficient, or more if you prefer. Be sure to select "case sensitive, journaled" as the volume format.

This will create a .dmg file which, once mounted, acts as a drive with the required formatting for Android development. For a disk image named "android.dmg" stored in your home directory, you can add the following to your ~/.bash_profile to mount the image when you execute "mountAndroid":

# mount the android file image
function mountAndroid{ hdiutil attach ~/android.dmg-mountpoint /Volumes/android; }
Once mounted, you'll do all your work in the "android" volume. You can eject it (unmount it) just like you would with an external drive.

To set up your Mac OS development environment, follow these steps:

  1. Install XCode from http://developer.apple.com. We recommend version 3.0 or newer. If you are not already registered as an Apple developer, you will have to create an Apple ID in order to download.
  2. Install MacPorts from http://www.macports.org/.
  3. Make sure that /opt/local/bin appears in your path BEFORE /usr/bin. If not, add
    export PATH=/opt/local/bin:$PATH
    to your ~/.bash_profile.
  4. Get make, git, and GPG packages from port:
    $ POSIXLY_CORRECT=1 sudo port install gmake libsdl git-core gnupg
    If using Mac OS 10.4, also install bison:
    $ POSIXLY_CORRECT=1 sudo port install bison
  5. Temporary step: There is a bug in gmake 3.82 that prevents android from building. You can install version 3.81 using MacPorts by taking the following steps:

    Edit /opt/local/etc/macports/sources.conf and a line that says

    above the rsync line. Then create this directory:
    $ mkdir /Users/Shared/dports
    In the new dports directory, run Create a port index for your new local repository:
    $ portindex /Users/Shared/dports
    Finally, install the old version of gmake with
    $ sudo port install gmake @3.81
Set an appropriate per-process file descriptor limit. To do this, add the following lines to your ~/.bash_profile:
# set the number of open files to be 1024
ulimit -S -n 1024


kartik trivedi

unread,
Feb 8, 2011, 4:15:08 AM2/8/11
to android...@googlegroups.com
hi mathu


thanks for your mail. but it does not containts any details about windows. so how we can do it on windows ?

--
http://linkedin.com/in/tellibitz
 
You received this message because you are subscribed to the Google
Groups "android-chennai" group.
To post to this group, send email to android...@googlegroups.com
To unsubscribe from this group, send email to
android-chenn...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-chennai?hl=en



--
Kartik Trivedi

(What you expect from other you must provide so be honest if you expect honesty from other)

(Sun Certified Java Developer)
(Forum Nokia Champion)


தங்கமணி அருண்

unread,
Feb 8, 2011, 5:38:01 AM2/8/11
to android...@googlegroups.com
repo is kind of shell script. It may not work on Windows. Better use Linux itself. No body tried on windows.

Or use VirtualBox install linux on top that. Then download android source.

 
--
அன்புடன்
அருண்
|| நுட்பம் நம்மொழியில் தழைக்கச் செய்வோம் ||
------------------------------
உபுண்டு தமிழ் : http://ubuntu-tam.org
தருமபுரி லினக்ஸ் பயனர் குழு : http://box434.bluehost.com/mailman/listinfo/thahadoorlug_yavarkkum.org
உபுண்டு தமிழ் பயனர் குழு : http://lists.ubuntu.com/ubuntu-tam
------------------------------

guna

unread,
Feb 8, 2011, 9:20:26 AM2/8/11
to android...@googlegroups.com
Use VMWare or dual boot Linux OS.

Don't go for Windows. Its error prone, while downloading and also while building the source code.

Thanks,
Guna

2011/2/8 தங்கமணி அருண் <thanga...@gmail.com>
Reply all
Reply to author
Forward
0 new messages