tips for android source code getting
2009-06-01 09:06
387 查看
Ubuntu8.10
1. install prerequiries:
sudo apt-get install flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential python valgrind curl git zlib1g-dev libncurses5-dev
2. refer to google source web: source.android.com
Installing Repo
Repo is a tool that makes it easier to work with Git in the context of Android. For more information about Repo, see Using Repo and Git
.
To install, initialize, and configure Repo, follow these steps:
Make sure you have a ~/bin
directory in your home directory, and check to be sure that this bin directory is in your path:
$ cd
~
$ mkdir bin
$ echo $PATH
Download the repo
script and make sure it is executable:
$ curl http://android.git.kernel.org/repo >~/bin/repo
$ chmod a+x ~/bin/repo
Initializing a Repo client
Create an empty directory to hold your working files:
$ mkdir mydroid
$ cd mydroid
Run repo init
to bring down the latest version of Repo with all its most recent bug fixes. You must specify a URL for the manifest:
$ repo init
-u git://android.git.kernel.org/platform/manifest.git
If you would like to check out a branch other than "master", specify it with -b, like:
$ repo init
-u git://android.git.kernel.org/platform/manifest.git -b cupcake
When
prompted, configure Repo with your real name and email address. If you
plan to submit code, use an email address that is associated with a Google account
.
A successful initialization will end with a message such as
repo
initialized in /mydroid
Your client directory should now contain a .repo
directory where files such as the manifest will be kept.
from within your working directory:
$ cd ~/mydroid
$ make
If your build fails, complaining about a missing
"run-java-tool", try setting the ANDROID_JAVA_HOME env var to
$JAVA_HOME before making. E.g.,
$ export ANDROID_JAVA_HOME=$JAVA_HOME
1. install prerequiries:
sudo apt-get install flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential python valgrind curl git zlib1g-dev libncurses5-dev
2. refer to google source web: source.android.com
Installing Repo
Repo is a tool that makes it easier to work with Git in the context of Android. For more information about Repo, see Using Repo and Git.
To install, initialize, and configure Repo, follow these steps:
Make sure you have a ~/bin
directory in your home directory, and check to be sure that this bin directory is in your path:
$ cd
~
$ mkdir bin
$ echo $PATH
Download the repo
script and make sure it is executable:
$ curl http://android.git.kernel.org/repo >~/bin/repo
$ chmod a+x ~/bin/repo
Initializing a Repo client
Create an empty directory to hold your working files:
$ mkdir mydroid
$ cd mydroid
Run repo init
to bring down the latest version of Repo with all its most recent bug fixes. You must specify a URL for the manifest:
$ repo init
-u git://android.git.kernel.org/platform/manifest.git
If you would like to check out a branch other than "master", specify it with -b, like:
$ repo init
-u git://android.git.kernel.org/platform/manifest.git -b cupcake
When
prompted, configure Repo with your real name and email address. If you
plan to submit code, use an email address that is associated with a Google account
.
A successful initialization will end with a message such as
repo
initialized in /mydroid
Your client directory should now contain a .repo
directory where files such as the manifest will be kept.
Building the code
To build the files, run makefrom within your working directory:
$ cd ~/mydroid
$ make
If your build fails, complaining about a missing
"run-java-tool", try setting the ANDROID_JAVA_HOME env var to
$JAVA_HOME before making. E.g.,
$ export ANDROID_JAVA_HOME=$JAVA_HOME
相关文章推荐
- Android: Simplified source code for parsing and working with XML data and web services in Android
- how to download the source tree for a specific Android code-line
- How to get Mokee Android N source code for Oneplus One Bacon device?
- (OK) how to compile the source code for Android-x86 (Android 7.1.1)
- Tips for newbie to read source code
- The steps for download android source code
- Attach Android Source Code To Eclipse IDE-将Android 源码和Eclipse IDE 关联绑定起来-Git
- [Android Tips] 1. Getting StatusBar Height
- icsharpcode--An open source IDE for C#. Using plug-in architechtual
- Source Code for the Built-in ASP.NET 2.0 Providers Now Available for Download !
- android source code online
- android 4.0 source code available
- Android开源项目-编码风格规范-Code Style Guidelines for Contributors
- Build update.zip from your own android source code
- Tips for android
- Auto-Generate JNI Code Using SWIG for Android
- Source code for the BirdVis project
- Pepper SDK for Android Getting Started
- 10 Tips for Writing Better Code (阅读理解)
- Android Frequently Asked Questions for Open Source