1. 우분투설치. 안드로이드 개발 기준이 되는 OS는 우분투와 MacOSX 입니다. http://www.ubuntu.com/ 부터 설치합니다.
2. 소스받기. 안드로이드에서 소스 트리를 주욱 다운 받아봅니다. http://source.android.com/download
일단 받고 나서 디렉토리를 살펴보면 저 방대한 소스 트리중 대체 어디서 부터 봐야 하는 것인가라는 생각이 들게 됩니다.
3. 시작하기. development\pdk\docs 에 있는 Android Porting Guide를 읽어봅니다. 최신 소스와는 차이가 있지만 어디서부터 시작을 해야 하는지 방향을 잡아줍니다. 이 숨겨져(?) 있는 문서가 안드로이드 포팅을 위한 소스 분석의 시작포인트입니다.
대략적인 소스 구성에 대한 설명을 볼 수 있습니다. 그리고 거기서 나오는 디바이스들 중 비디오, 키, 오디오 정도의 순서로 소스를 따라들어가면 될듯 합니다.
소스를 보고 있으면 가끔 우주를 헤메는 기분이 들고 그게 정상입니다..
3. 시작하기. development\pdk\docs 에 있는 Android Porting Guide를 읽어봅니다. 최신 소스와는 차이가 있지만 어디서부터 시작을 해야 하는지 방향을 잡아줍니다. 이 숨겨져(?) 있는 문서가 안드로이드 포팅을 위한 소스 분석의 시작포인트입니다.
소스를 보고 있으면 가끔 우주를 헤메는 기분이 들고 그게 정상입니다..
Get source
This document describes how to set up your local work environment, how to use Repo to get the Android files, and how to build the files on your machine. Related reading:
What's in the source?For a description of all the projects that make up the Android source code, see Project layout. To see snapshots and histories of the files available in the public Android repositories, visit theGitWeb web interface.
The source is approximentely 2.1GB in size. You will need 6GB free to complete the build.
Setting up your machineTo build the Android source files, you will need to use Linux or Mac OS. Building under Windows is not currently supported.
LinuxThe Android build is routinely tested on recent versions of Ubuntu (6.06 and later), but reports of successes or failures on other distributions are welcome.Ubuntu Linux (i386)To set up your Linux development environment, make sure you have the following:
$ sudo apt-get install git-core gnupg
$ sudo apt-get install sun-java6-jdk
$ sudo apt-get install flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zipcurl libncurses5-dev zlib1g-dev
$ sudo apt-get install valgrind Ubuntu Linux (amd64)This has not been as well tested. Please send success or failure reports to repo-discuss@googlegroups.com.The Android build requires a 32-bit build environment as well as some other tools:
$ sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl
Ubuntu doesn't have packages for the X11 libraries, but that can be worked around with the following command: $ sudo ln -s /usr/lib32/libX11.so.6 /usr/lib32/libX11.so
Other LinuxThere's no reason why Android cannot be built on non-Ubuntu systems. Please send any success or failure reports to repo-discuss@googlegroups.com. In general you will need:
Anything missing from this list? Please let us know! Mac OSRequirements:
$ POSIXLY_CORRECT=1 sudo port install package-name 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.
repo initialized in /mydroid Your client directory should now contain a .repo directory where files such as the manifest will be kept. What will my name and email be used for? To use the Gerrit code-review tool, you will need an email address that is connected with a registered Google account (which does not have to be a Gmail address). Make sure this is a live address at which you can receive messages. The real name that you provide here will show up in attributions for your code submissions. What is a manifest file? The Android source files are divided among a number of different repositories. A manifest file contains a mapping of where the files from these repositories will be placed within your working directory when you synchronize your files. Getting the filesTo pull down files to your working directory from the repositories as specified in the default manifest, run $ repo sync For more about repo sync and other Repo commands, see Using Repo and Git. The Android source files will be located in your working directory under their project names. Building the codeTo build the files, run make 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 Using an IDE
TroubleshootingImportError: No module named readline Mac users getting this should install Python 2.5.2. Linux users that installed Python from source, make sure the dependencies for libreadline are installed, and rebuild Python. What's next?To learn about reporting an issue and searching previously reported issues, see Report bugs. For information about editing the files and uploading changes to the code-review server, see Contribute. |
'old > Build Serv' 카테고리의 다른 글
adb driver setting for ubuntu (0) | 2010.03.12 |
---|---|
Ubuntu Build Machine Install (0) | 2010.02.04 |