[Android]_解決在Ubuntu 14.04 x64上建置Android 4.4 ROM For Nexus 5 找不到 flex

external/checkpolicy/checkpolicy.c:472:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
host C++: checkpolicy <= out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_parse.cpp
cc1: warning: command line option '-Wsign-promo' is valid for C++/ObjC++ but not for C [enabled by default]
Lex: checkpolicy <= external/checkpolicy/policy_scan.l
/bin/bash: flex: command not found
make: *** [out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/policy_scan.cpp] Error 127

 

超快速解只要裝上flex就解決了XD

sudo apt-get install flex

 

那他是幹嘛用的呢?

可以參考http://packages.ubuntu.com/lucid/flex

 

基本上就是一個pattern compare tool.

 

 

Leave a comment

這個網站採用 Akismet 服務減少垃圾留言。進一步了解 Akismet 如何處理網站訪客的留言資料