Chinaunix首页 | 论坛 | 博客
  • 博客访问: 822036
  • 博文数量: 210
  • 博客积分: 10002
  • 博客等级: 上将
  • 技术积分: 1840
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-18 09:56
文章分类

全部博文(210)

文章存档

2011年(1)

2010年(6)

2009年(65)

2008年(138)

我的朋友

分类: LINUX

2009-05-09 13:56:48

http://android.git.kernel.org/?p=platform/development.git;a=blob_plain;f=tools/eclipse/README_WINDOWS.txt;hb=HEAD
[RM 20080623]

1- To build the Eclipse plugin:
Under Linux:
$ cd your-device-directory
$ tools/eclipse/scripts/build_server.sh destination-directory

This will create an "android-eclipse.zip" in the selected destination directory.
Then in Eclipse, you can use Help > Software Updates > Find and Install > Search for new Features > Next > New Archived Site > select the new android-eclipse.zip. Then with the new archive checked, click Finish/Next.


2- To build a Windows SDK, you need two steps:
a- First you need to create a Linux SDK:

Under Linux:
$ cd your-device-directory
$ make sdk
Note: if you get an error when building the javadoc, make sure you use a Java SDK 1.5
Note: if you get an error when building layoutlib, make sure you use a Java SDK 1.5.0-b13.

b- Once you have a Linux SDK, you can create a Windows SDK:

You need a Windows machine with XP or Vista and Cygwin.
- Installer at 
- Set Default Text File Type to DOS/text, not Unix/binary.
- Select packages autoconf, gcc, g++, bison, python, zip, unzip, mingw-zlib
- Suggested extra packages: emacs, wget, openssh, rsync

Then under Cygwin:
$ cd your-device-directory
$ tools/buildbot/_make_windows_sdk.sh path-to-the-linux-sdk.zip destination-directory
http://groups.google.com/group/android-developers/browse_thread/thread/33b42ea26996eb9d
To build the SDK for Windows, look at this: 
http://android.git.kernel.org/?p=platform/development.git;a=blob_plai...

It's a bit old but step #2 is still "mostly" valid except you MUST
make sure cygwin is in binary/unix mode and not text/dos mode. Also
the main script moved:

make_windows_sdk.sh moved to [platform/development.git] / build /
tools / make_windows_sdk.sh
http://android.git.kernel.org/?p=platform/development.git;a=blob;f=bu...

Unless you are actually changing the tools, quite frankly just get the
prebuilt ones, it's much easier.

 

阅读(1018) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~