主题 : 4412下编译Android4.1.2源码包出现问题 复制链接 | 浏览器收藏 | 打印
级别: 侠客
UID: 770
精华: 0
发帖: 88
金钱: 455 两
威望: 91 点
综合积分: 176 分
注册时间: 2008-05-27
最后登录: 2016-09-16
楼主  发表于: 2015-02-10 09:06

 4412下编译Android4.1.2源码包出现问题

完全小白,完全按照说明书搭建了ubuntu-12.04.2 64bit开发环境。

解压Android4.1.2源码包,按照说明书的步骤
# . setenv
# make
经过很长时间
最后出现的字样
make: *** [out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/noproguard.classes-with-local.dex] Killed
可能什么地方出错了。

再生成镜像文件
# ./gen-img.sh
说很多文件找不到
cp: target `out/target/product/tiny4412/system/' is not a directory
./gen-img.sh: line 15: out/host/linux-x86/bin/make_ext4fs: No such file or directory
./gen-img.sh: line 23: out/host/linux-x86/bin/make_ext4fs: No such file or directory
./gen-img.sh: line 24: out/host/linux-x86/bin/make_ext4fs: No such file or directory
./gen-img.sh: line 25: out/host/linux-x86/bin/make_ext4fs: No such file or directory
cp: cannot stat `userdata-4g.img': No such file or directory
./gen-img.sh: line 29: out/host/linux-x86/bin/mkbootfs: No such file or directory
./gen-img.sh: line 29: out/host/linux-x86/bin/minigzip: No such file or directory
./gen-img.sh: line 30: mkimage: command not found

问题出在哪里,怎么解决?