From Fedora Project Wiki
Line 3: Line 3:
 
{{admon/caution|Warning|The following instructions were tested only on Fedora 13 with latest stable updates (as of Aug 7, 2010)}}
 
{{admon/caution|Warning|The following instructions were tested only on Fedora 13 with latest stable updates (as of Aug 7, 2010)}}
  
Required packages (make sure you have yum 3.2.28 or later installed):
+
= Required packages =
  
 
* Git  >= 1.5.4
 
* Git  >= 1.5.4
Line 9: Line 9:
 
* JDK 5.0, update 12 or higher (Java 6 not supported)
 
* JDK 5.0, update 12 or higher (Java 6 not supported)
 
* GCC toolchain, flex, bison-devel, gperf, SDL-devel, esound-devel, wxGTK-devel, zip, curl.
 
* GCC toolchain, flex, bison-devel, gperf, SDL-devel, esound-devel, wxGTK-devel, zip, curl.
----
+
 
* Install the basic toolchain: yum --setopt=group_package_types=mandatory groupinstall 'Development Tools'
+
== Installation ==
* Install Java 5: yum install java-1.5.0-gcj java-1.5.0-gcj-devel
+
Basic toolchain:
* Install remaining packages: yum install git SDL-devel esound-devel wxGTK-devel zip curl
+
<pre>
 +
yum --setopt=group_package_types=mandatory groupinstall 'Development Tools'
 +
</pre>
 +
 
 +
Java 5 JDK:
 +
<pre>
 +
yum install java-1.5.0-gcj java-1.5.0-gcj-devel
 +
</pre>
 +
 
 +
Remaining development packages:
 +
<pre>
 +
yum install git SDL-devel esound-devel wxGTK-devel zip curl
 +
</pre>
 +
 
 +
 
 +
 
 +
= Install the "repo" tool =
 +
 
 +
The repo tool is used to pull from the plethora of git repositories making the android project.
 +
 
 +
Make sure you have "$HOME/.local/bin" in your PATH (and create that directory if not there already).
 +
 
 +
<pre>
 +
mkdir -p ~/.local/bin
 +
curl http://android.git.kernel.org/repo > ~/.local/bin/repo
 +
chmod +x ~/.local/bin/repo
 +
</pre>
 +
 
 +
 
 +
 
 +
= Initialize the development environment =
 +
Create a directory to hold your files:
 +
<pre>
 +
mkdir android
 +
cd android
 +
</pre>
 +
 
 +
Update the "repo" tool and initialize environment (it will ask you for your name and email address):
 +
<pre>
 +
repo init -u git://android.git.kernel.org/platform/manifest.git
 +
</pre>
 +
 
 +
Now sync (download) all repositories with:
 +
<pre>
 +
repo sync
 +
</pre>

Revision as of 11:20, 7 August 2010

This document will guide you through the Android PDK (Product Development Kit) setup

Stop (medium size).png
Warning
The following instructions were tested only on Fedora 13 with latest stable updates (as of Aug 7, 2010)

Required packages

  • Git >= 1.5.4
  • gpg
  • JDK 5.0, update 12 or higher (Java 6 not supported)
  • GCC toolchain, flex, bison-devel, gperf, SDL-devel, esound-devel, wxGTK-devel, zip, curl.

Installation

Basic toolchain:

yum --setopt=group_package_types=mandatory groupinstall 'Development Tools'

Java 5 JDK:

yum install java-1.5.0-gcj java-1.5.0-gcj-devel

Remaining development packages:

yum install git SDL-devel esound-devel wxGTK-devel zip curl


Install the "repo" tool

The repo tool is used to pull from the plethora of git repositories making the android project.

Make sure you have "$HOME/.local/bin" in your PATH (and create that directory if not there already).

mkdir -p ~/.local/bin
curl http://android.git.kernel.org/repo > ~/.local/bin/repo
chmod +x ~/.local/bin/repo


Initialize the development environment

Create a directory to hold your files:

mkdir android
cd android

Update the "repo" tool and initialize environment (it will ask you for your name and email address):

repo init -u git://android.git.kernel.org/platform/manifest.git

Now sync (download) all repositories with:

repo sync