编译android源码
1.安装依赖程序sudoapt-getinstallgit-coregnupgflexbisongperflibsdl1.2-devlibesd0-devlibwxgtk2.6-devbuild-essentialzipcurllibncurses5-devzlib1g-dev
2.获取android源代码
mkdir~/mydroid
curlhttp://android.git.kernel.org/repo>~/mydroid/repo
chmodu+xrepo
cd~/mydroid
repoinit-ugit://android.git.kernel.org/platform/manifest.git-bandroid-sdk-1.5_r1
-b指定初始化版本
3.reposync
获取源码可以在sync后面加上工程名来获取某个工程的
编译
使用make进行编译
编译中需要用到java请下载jdk并配置java环境
JAVA_HOME=/usr/local/src/jdk1.6.0_16
PATH=$PATH:$JAVA_HOME/bin:/usr/local/src/android-sdk-linux_x86-1.1_r1/tools:~/bin
相关推荐
pengjin 2019-12-21
csdnuuu 2019-12-04
spb 2020-05-02
qawsedpl 2010-10-07
gongzhiyao0 2010-08-17
zhonglinzhang 2010-08-11
fengyeezju 2019-11-14
yinbaoshiguang 2011-03-12
西木 2011-02-27
downtown 2011-02-18
berber 2011-02-18
omguare 2011-02-17
wintering 2011-01-03
fuzhangandroid 2010-12-10
rookieding 2010-10-26
yinbaoshiguang 2011-08-25
chenjinlong 2011-08-23
rookieding 2011-08-21
wenjs00 2011-06-30