Ubuntu10.10编译Android froyo

0. # sudo apt-get install git-core gnupg flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev

//you must install most of them, if you are not sure which application you do not need, just copy the command above.

1.not use "sudo make",just "make"

   //if you use "sudo make",there will be several additional build error, such as java version not match...

2.if permission denied,just chwon,e.g. your username is "philander"

 # sudo chown -R philander android

 //-R或-recursive:递归处理,将指定目录下的所有文件及子目录一并处理

 and then use

 # make

3. install jdk5 update12 or higher

4. install gcc-4.3

   install g++-4.3

   //GCC在4.4時把部份string相關的function回傳值的type改變了...
   //char*改成了const char*...
   //也因此讓一堆原本不是針對最新的gcc來寫的code都無法編譯成功

   # cd /usr/bin

   //建个软连接

   # ln -sf gcc-4.3 gcc

   # ln -sf g++-4.3 g++

  //you can use cmd like "ls gcc* -ll" to check gcc version

转载于:https://www.cnblogs.com/philander/archive/2010/10/12/1848427.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值