ubuntu 14.04搭建android编译环境
2015-02-13 15:34
561 查看
按照我的文章:http://blog.csdn.net/zangcf/article/details/23566999在ubuntu 14.04上搭建android编译环境,编译过程会出以下两个错误:
1,Can't locateSwitch.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.plline 23.
BEGINfailed--compilation aborted atexternal/webkit/Source/WebCore/make-hash-tools.pl line 23.
make[3]: ***[out/target/product/project/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/html/DocTypeStrings.cpp]Error 2
2, Copy xml: out/target/product/project/system/etc/epo_conf.xml
/bin/bash: xmllint: command not found
make[3]: *** [out/target/product/project/system/etc/epo_conf.xml] Error 127
需要补充安装两个东西:
sudo apt-getinstall libswitch-perl
sudo apt-get install libxml2-utils
之后,就可以正常编译android系统了。
1,Can't locateSwitch.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.plline 23.
BEGINfailed--compilation aborted atexternal/webkit/Source/WebCore/make-hash-tools.pl line 23.
make[3]: ***[out/target/product/project/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/html/DocTypeStrings.cpp]Error 2
2, Copy xml: out/target/product/project/system/etc/epo_conf.xml
/bin/bash: xmllint: command not found
make[3]: *** [out/target/product/project/system/etc/epo_conf.xml] Error 127
需要补充安装两个东西:
sudo apt-getinstall libswitch-perl
sudo apt-get install libxml2-utils
之后,就可以正常编译android系统了。
相关文章推荐
- Ubuntu14.04系统搭建Android源码编译环境
- ubuntu 14.04 搭建Android 源码(AOSP)编译环境
- Android系统编译环境搭建—Ubuntu14.04安装&root登录&Chromium root启动&安装配置交叉编译环境
- [ubuntu 14.04] android 编译环境搭建
- Ubuntu 14.04 搭建MTK Android源码编译环境搭建
- 2016.09.15 Ubuntu14.04 Android编译环境搭建
- Android N使用Ubuntu 14.04系统搭建编译环境
- 在Ubuntu 14.04(64bit)上搭建Android编译环境(通用版)
- Ubuntu 14.04 安装搭建Android开发编译环境
- Ubuntu14.04搭建android源码编译环境
- Ubuntu14.04搭建jdk1.6和jdk1.7可切换的android编译环境。
- ubuntu 10.04 android 源码编译开发环境搭建
- ubuntu 12.10 上 android 编译环境搭建
- Ubuntu搭建android编译环境总结
- 在Ubuntu 上搭建Android 内核编译环境
- Ubuntu下Android源码编译及Eclipse开发环境搭建
- ubuntu 12.04(64位 server)下搭建 android2.3/android4.0开发环境及遇到的编译问题
- android源码编译环境搭建(VMware9.0.1+ubuntu12.10)