Android Source code

来源:互联网 发布:yum 没有可用软件包 编辑:程序博客网 时间:2024/05/01 23:36

获取master source code

$ repo init -u git://android.git.kernel.org/platform/manifest.git

指定初始化版本
$ repo init -u git://android.git.kernel.org/platform/manifest.git -b froyo
如果下载完master的code之后,能不能在master中切换到其它的分支?比如froyo?如果不能这样的话,岂不是还要重新下载其它的分支?
要编译froyo, 需要jdk1.5, 和make 3.81.
在64位上编译froyo, 出现
/usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory
安装glib-devel-i686之后, 可解决该问题, 但是又有新的错误
/usr/bin/ld: skipping incompatible /usr/lib64/libz.so when searching for -lz/usr/bin/ld: cannot find -lzcollect2: ld returned 1 exit status
安装zlib-devel.i686, 继续编译
target Java: framework (out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes)## An unexpected error has been detected by HotSpot Virtual Machine:## SIGSEGV (0xb) at pc=0x5566b9ab, pid=5463, tid=2179472240## Java VM: Java HotSpot(TM) Server VM (1.5.0_22-b03 mixed mode)# Problematic frame:# V [libjvm.so+0xd59ab]## An error report file with more information is saved as hs_err_pid5463.log## If you would like to submit a bug report, please visit:# http://java.sun.com/webapps/bugreport/crash.jsp#/bin/bash: line 1: 5463 Aborted (core dumped) javac -J-Xmx512M -target 1.5 -Xmaxerrs 9999999 -encoding ascii -bootclasspath out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes.jar -classpath out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes.jar:out/target/common/obj/JAVA_LIBRARIES/ext_intermediates/classes.jar -g -extdirs "" -d out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes /@out/target/common/obj/JAVA_LIBRARIES/framework_intermediates//java-source-list-uniqmake: *** [out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes-full-debug.jar] Error 41
这是什么原因? 是因为代码没有下载完整?

在32位编译froyo, 出现错误
Generating CSSPropertyNames.h <= CSSPropertyNames.insh: gperf: command not foundcalling gperf failed: 32512 at ./makeprop.pl line 96.
安装gperf, 继续编译, 顺利结束
看来froyo在64位上编译会有问题.