随笔-348  评论-598  文章-0  trackbacks-0

Here are the steps.

1. Install XCode, Macports, repo, etc.

I assume everyone knows how to do this. Follow the instructions from the Get Android Source Code page. Just remember to create a new partition that is a case-sensitive partition if you’re using a non case-sensitive primary partition. I’ll start off after you’ve gotten the source from git.

2. Get the following patches.

Since there is only 1 patch to grab, I used repo for this.

Patch 12074 - Change Ic4caeff0: Enable building on java 1.6 without conflicts.

This patch will allow you to use Java 1.6 that comes with Snow Leopard instead of Java 1.5.

1 repo download platform/build 12074/5

The rest of the patches seems to have made it into the trunk, so it isn’t required to patch them anymore.

3. Edit the files.

However, there is 1 extra step you need to do in order to get a clean build. I can’t find the patch for this yet, so if anyone knows, please comment the patch number. You have to edit the following file:

1 system/core/libacc/acc.cpp

In a gist, change all the (int) to (size_t) except the runtime_float_to_int() and runtime_double_to_int() methods


4. Build and watch it fly.

1 make

Wait for an hour or two for the build to be completed and you’ll have a nice Android2.2 build in the “out” directory.




---------------------------------------------------------
专注移动开发

Android, Windows Mobile, iPhone, J2ME, BlackBerry, Symbian
posted on 2010-09-21 21:53 TiGERTiAN 阅读(401) 评论(0)  编辑  收藏 所属分类: AndroidLinux

只有注册用户登录后才能发表评论。


网站导航: