標籤:
升級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源碼遇到錯誤及其解決方案