隨筆-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 閱讀(416) 評(píng)論(0)  編輯  收藏 所屬分類: AndroidLinux
          主站蜘蛛池模板: 太和县| 凤阳县| 建湖县| 克什克腾旗| 华安县| 贵港市| 湟中县| 灌云县| 长子县| 正镶白旗| 新晃| 铁岭县| 冷水江市| 集贤县| 泸定县| 车险| 高邮市| 石门县| 黄陵县| 满洲里市| 信丰县| 武强县| 吴忠市| 泊头市| 海宁市| 达州市| 西吉县| 商丘市| 潜山县| 延长县| 公安县| 通许县| 旬阳县| 通河县| 青冈县| 夹江县| 厦门市| 衡阳县| 繁峙县| 肥城市| 长乐市|