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

编译android源码遇到错误及其解决方法

时间:2015-01-15 17:24:59      阅读:306      评论:0      收藏:0      [点我收藏+]

标签:

升级ubuntu的14.04后,android的源码又编译错误了,一下是错误说明赫解决方法:

 

1、make: *** [out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_y.cpp] 断开的管道

解决方法: 

sudo apt-get install bison

sudo apt-get install flex

2、

sh: 1: gperf: not found
calling gperf failed: 32512 at makevalues.pl line 137.
make: *** [out/target/product/generic/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/css/CSSValueKeywords.h]

解决方法:sudo apt-get install gperf

3、gcc: error trying to exec ‘cc1plus‘: execvp: 没有那个文件或目录 

解决方法:sudo apt-get install g++

4、

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

解决方法:sudo apt-get install libswitch-perl 

5、/bin/bash: xmllint: 未找到命令

解决方法:sudo apt-get install libxml2-utils

编译android源码遇到错误及其解决方法

标签:

原文地址:http://www.cnblogs.com/candycaicai/p/4226432.html

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