<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    Calvin's Tech Space

    成于堅(jiān)忍,毀于浮躁

       :: 首頁 :: 聯(lián)系 :: 聚合  :: 管理
    To set up your Linux development environment, make sure you have the following: 

        * Required Packages: 
              o Git 1.5.4 or newer and the GNU Privacy Guard. 

              o JDK 5.0, update 12 or higher.  Java 6 is not supported, because of incompatibilities with @Override. 

              o flex, bison, gperf, libsdl-dev, libesd0-dev, libwxgtk2.6-dev (optional), build-essential, zip, curl.  

        $ sudo apt-get install git-core gnupg sun-java5-jdk flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev 

        * You might also want Valgrind, a tool that will help you find memory leaks, stack corruption, array bounds overflows, etc. 

        $ sudo apt-get install valgrind 



    I compiled Android sources yesterday on Ubuntu 9.10.
    Ubuntu 9.10 looks nice with its cute user interfaces.
    But compiling Android encounters some obstacles.
    A base line of compiling Android is instructions from www.android.com.
    http://source.android.com/download” is the exact address.

    What we need to address before starting to compile are listed below.

    1. PRODUCT_POLICY related errorAt the begining of the compile an error message shows up.
    frameworks/policies/base/PolicyConfig.mk:22: *** No module defined for the given PRODUCT_POLICY (android.policy_phone).
    To fix this open the file “build/tools/findleaves.sh” and change 89 line,
    #find “${@:0:$nargs}” $findargs -type f -name “$filename” -print |
    find “${@:1:$nargs-1}” $findargs -type f -name “$filename” -print |


    2. fprintf declaration errorThe compiling stops with several error messages.
    All of those error are same.

    frameworks/base/tools/aidl/AST.cpp:10: error: ‘fprintf’ was not declared in
    this scope

    This error is caused by the gcc 4.4. Ubuntu 9.10 comes with gcc 4.4.
    Gcc 4.4 has more strict rules than previous versions.
    To fix this error install gcc 4.3.

    • Install gcc-4.3 and g++-4.3

    sudo apt-get install gcc-4.3 g++-4.3

    • In the /usr/bin delete gcc and g++ which are soft links of gcc-4.4 and g++-4.4.
    • Link gcc-4.3 and g++-4.3 to gcc and g++ respectively.

    sudo ln -s gcc-4.3 gcc
    sudo ln -s g++-4.3 g++

                 If you have a problem getting gcc-4.3 package, refer to a post about changing packaging repository first.

    http://www.mobileadvice.com.au/2009/11/how-to-install-jdk5-on-ubuntu-9-10/


    3. Install JDK5This is posted in another post.
    http://www.mobileadvice.com.au/2009/11/how-to-install-jdk5-on-ubuntu-9-10/

    Enjou your Android!



    posted on 2010-06-29 21:28 calvin 閱讀(393) 評(píng)論(0)  編輯  收藏 所屬分類: Android
    主站蜘蛛池模板: 99视频在线精品免费| CAOPORN国产精品免费视频| 国产精品99精品久久免费| 国产成人亚洲影院在线观看| 亚洲av色香蕉一区二区三区蜜桃| 69堂人成无码免费视频果冻传媒| 亚洲精品美女久久久久| 91精品国产免费久久国语蜜臀| 亚洲激情视频在线观看| 午夜不卡久久精品无码免费| 久久久久亚洲AV成人片| 四虎成人精品永久免费AV| 久久久久无码精品亚洲日韩| 日本免费人成视频在线观看| 亚洲视频免费播放| 免免费国产AAAAA片| 在线观看日本亚洲一区| 四虎影在线永久免费观看| 黄色三级三级三级免费看| 亚洲日本乱码在线观看| 久久免费观看国产99精品| 亚洲欧洲国产经精品香蕉网| 成年人在线免费看视频| 国产AV日韩A∨亚洲AV电影| 亚洲国产午夜福利在线播放| 曰批全过程免费视频在线观看无码| 亚洲处破女AV日韩精品| 色老头永久免费网站| 亚洲成a∧人片在线观看无码| 免费a级毛片永久免费| 9久热这里只有精品免费| 亚洲综合激情视频| 免费看的一级毛片| 成在线人视频免费视频| 蜜芽亚洲av无码精品色午夜| 国产香蕉九九久久精品免费| 人成免费在线视频| 亚洲黄网在线观看| 亚洲精品国产电影| 蜜臀AV免费一区二区三区| 亚洲av无码日韩av无码网站冲|