隨筆-348  評(píng)論-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.




          ---------------------------------------------------------
          專注移動(dòng)開發(fā)

          Android, Windows Mobile, iPhone, J2ME, BlackBerry, Symbian
          posted on 2010-09-21 21:53 TiGERTiAN 閱讀(417) 評(píng)論(0)  編輯  收藏 所屬分類: AndroidLinux
          主站蜘蛛池模板: 靖江市| 乌拉特前旗| 孙吴县| 林口县| 巫山县| 灵宝市| 宁海县| 弥渡县| 柘荣县| 天津市| 定边县| 长垣县| 灌阳县| 雅江县| 勐海县| 西青区| 门头沟区| 安新县| 长海县| 冀州市| 读书| 定结县| 井研县| 咸宁市| 邳州市| 亳州市| 澄江县| 潮州市| 长乐市| 安龙县| 友谊县| 台湾省| 宜宾市| 环江| 明溪县| 梁山县| 黑山县| 巧家县| 绥滨县| 玉山县| 新巴尔虎左旗|