Android系统源码编译问题收集

Android系统源码编译遇到的问题
1.Ubuntu16.04的make版本过高(4.1)而提示须要3.81或者3.82,所以须要下降make的版本。html

下载deb包,命令行安装:sudo dpkg -i package.deb
2.编译提示信息“ You are building on a case-insensitive filesystem.”
缘由为用VMware共享文件夹致使分区不合适。
3.Linux下的.7z命令
->解压:7za x android*.7z -r -o./linux

4.No rule to make target `out/target/product/generic/obj/SHARED_LIBRARIES/libwpa_client_intermediates/export_includes', needed by `out/target/product/generic/obj/SHARED_LIBRARIES/libhardware_legacy_intermediates/import_includes'android

这个问题我猜测是need by后面的文件没有建立,我就是在out/... 下面建立了一个对应的文件以后就能够编译了。web

5.看提示说是Python下的某个.py文件不认识编码。ui

估计是目录中带了中文(我是在~/桌面、目录中执行的)编码

6.Can't locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .) at external/webkit/Source/WebCore/make-hash-tools.pl line 23.
BEGIN failed--compilation aborted at external/webkit/Source/WebCore/make-hash-tools.pl line 23.
Can't locate Switch.pm in @INC (you may need to install the Switch module) (@INC contains: /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .) at external/webkit/Source/WebCore/make-hash-tools.pl line 23.
BEGIN failed--compilation aborted at external/webkit/Source/WebCore/make-hash-tools.pl line 23.
make: *** [out/target/product/generic/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/html/DocTypeStrings.cpp] 错误 2
make: *** 正在等待未完成的任务....
make: *** [out/target/product/generic/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/platform/ColorData.cpp] 错误 2
target Generated: libwebcore <= external/webkit/Source/WebCore/html/parser/HTMLEntityNames.in.net

解决:sudo apt-get install libswitch-perl   命令行

7.make: *** [out/host/linux-x86/obj/SHARED_LIBRARIES/libdvm_intermediates/native/dalvik_system_Zygote.o] Error 1
make: *** Waiting for unfinished jobs....orm

解决:添加头文件#include <sys/resource.h>到如下文件
dalvik/vm/native/dalvik_system_Zygote.cpphtm

相关文章
相关标签/搜索