Android 2.3.4 building guide

摘要:随着智能手机的普遍应用,作为被广泛应用的开源智能手机操作系统Android被广泛关注。本文接合了笔者的经验介绍了在ubuntu10.04上编译Android源代码的步骤。

关键字:Android,Ubuntu10.04,编译

 

Step 1: Follow instructions to setup environment
http://source.android.com/source/initializing.html gives instructions about setup OS, JDK and many essential libraries, follow them to finish preparation. I choose Ubuntu 10.04 as local OS. (Is your ubuntu too ugly to use? Try MacBuntu@SrouceForge, easy to install and use.)

Step 2: Download source code
http://source.android.com/source/downloading.html gives instructions about setup Git and Repo for downloading source code. But pay attention to change the branch to "gingerbread" in the following command:
$ repo init -u git://android.git.kernel.org/platform/manifest.git -b froyo, you can find other branches in http://source.android.com/source/overview.html
Command "repo sync" takes a long time and may be hanged, so find something to do at this moment but don't be so far from computer.

Step 3: Compiling source code
$ source build/envsetup.sh
$ lunch full-eng
$ make -j4

Step 4 : Running in emulator
$ emulator

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值