码迷,mamicode.com
首页 > 移动开发 > 详细

ubuntu 14.04搭建android编译环境

时间:2015-02-13 16:36:10      阅读:138      评论:0      收藏:0      [点我收藏+]

标签:

按照我的文章: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系统了。

ubuntu 14.04搭建android编译环境

标签:

原文地址:http://blog.csdn.net/zangcf/article/details/43794817

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!