隨筆-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 閱讀(418) 評論(0)  編輯  收藏 所屬分類: AndroidLinux
          主站蜘蛛池模板: 茂名市| 分宜县| 清河县| 抚州市| 郁南县| 禹城市| 昌乐县| 石楼县| 新竹县| 凤城市| 屯昌县| 石渠县| 斗六市| 体育| 沽源县| 云霄县| 京山县| 穆棱市| 当涂县| 杭锦后旗| 赣榆县| 明星| 巴塘县| 宝山区| 富阳市| 武定县| 左贡县| 兴业县| 北票市| 车险| 卢氏县| 安国市| 南漳县| 那曲县| 塔河县| 霞浦县| 遂溪县| 咸宁市| 晴隆县| 小金县| 柯坪县|