免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2887 | 回复: 0
打印 上一主题 下一主题

how to build android ICS | 如何编译安卓冰激凌 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-12-23 17:56 |只看该作者 |倒序浏览
本帖最后由 bxfqing 于 2011-12-23 18:02 编辑

Refer to 参考
* Initializing the Build Environment
http://source.android.com/source/initializing.html
ignore 略
*Downloading the Source
http://source.android.com/source/downloading.html
*Building and Running
http://source.android.com/source/building.html
Building

  1. . build/envsetup.sh
  2. lunch->full-eng
  3. make -j7
复制代码
Running on emulator
  1. vim ~/.bashrc
  2. export PATH=/root/android/mydroid/out/host/linux-x86/bin:$PATH
  3. export ANDROID_PRODUCT_OUT=/root/android/mydroid/out/target/product/generic
  4. export ANDROID_SWT=/root/android/mydroid/out/host/linux-x86/framework
复制代码
注意: 一定要配置 PATH ANDROID_PRODUCT_OUT ANDROID_SWT
否则会提示:
SWT folder '/opt/android_source_4.0.1/out/host/linux-x86/framework/x86_64' does not exist.
Please export ANDROID_SWT to point to the folder containing swt.jar for your platform.
等等信息
  1. cd out/target/product/generic/
  2. emulator -system system.img -data userdata.img -ramdisk ramdisk.img
复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP