[0;31m#### failed to build some targets (28 seconds) ####[00m
猜想應該是jdk版本的問題吧,就安裝jdk9,;安裝好後還是報同樣是錯;網上搜了一大堆都方法都沒有用;
其實問題也很簡單,我編譯的時候沒有列印全部的log,所以編譯軟體快取的日誌沒那麼多,error被覆蓋掉了,查詢的時候找不到;以前都有列印編譯log的習慣,後面換公司後就不用了,編譯的問題都比較明顯;但是這次很早就報error了,但是還是在一直編;也是坑了自己一把。
實際的報錯是這個
an't locate switch.pm in @inc (you may need to install the switch module) (@inc contains: /home1/luoyalong/workspace/mt8788-p/mt8788/vendor/mediatek/proprietary/bootable/bootloader/preloader/tools/emigen/mt6771/../spreadsheet /home1/luoyalong/workspace/mt8788-p/mt8788/vendor/mediatek/proprietary/bootable/bootloader/preloader/tools/emigen/mt6771/../ /home1/luoyalong/workspace/mt8788-p/mt8788/vendor/mediatek/proprietary/bootable/bootloader/preloader/tools/emigen/mt6771 /home1/luoyalong/workspace/mt8788-p/mt8788/vendor/mediatek/proprietary/bootable/bootloader/preloader/tools/emigen/mt6771/../common /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 /home1/luoyalong/workspace/mt8788-p/mt8788/vendor/mediatek/proprietary/bootable/bootloader/preloader/tools/emigen/mt6771/../common/emigen_v1.pm line 1348.
begin failed--compilation aborted at /home1/luoyalong/workspace/mt8788-p/mt8788/vendor/mediatek/proprietary/bootable/bootloader/preloader/tools/emigen/mt6771/../common/emigen_v1.pm line 1348.
compilation failed in require at /home1/luoyalong/workspace/mt8788-p/mt8788/vendor/mediatek/proprietary/bootable/bootloader/preloader/tools/emigen/mt6771/emigen.pl line 104.
begin failed--compilation aborted at /home1/luoyalong/workspace/mt8788-p/mt8788/vendor/mediatek/proprietary/bootable/bootloader/preloader/tools/emigen/mt6771/emigen.pl line 104.
make: *** [/home1/luoyalong/workspace/mt8788-p/mt8788/out/target/product/tb8788p1_64_bsp/obj/preloader_obj/mtk_loader_info.tag] error 2
解決方法是安裝perl的switch庫:
sudo apt-get install libswitch-perl
一條命令解決
繞了這麼多彎路!!!!!!
從0開始編譯安卓 9 0
手機是 google pixel xl 編譯環境的準備 google 9月更新了位址 ubuntu 16.0.4 x64 需要安裝的軟體包 看上面 的 aosp 原始碼採用清華的映象。lunch 選擇乙個編譯目標 這裡輸入19 安卓解鎖,編譯,刷機介紹很全面 pixel xl 是 marlin 按住...
諾基亞手機嘗鮮安卓9 0
北京時間2018年10月5日,hmd在倫敦的發布會上正式發布了諾基亞7.1。在會上,官方還公布了旗下諾基亞手機的安卓9.0 pie公升級計畫,讓人十分期待。hmd表示,會有四款諾基亞手機將在近期獲得安卓9.0 pie公升級,它們分別是 諾基亞6.1 2018款諾基亞6 諾基亞6.1 plus 諾基亞...
最近編譯tolua runtime安卓編譯錯誤
編譯時出現以下錯誤 in file included from lj ffrecord.c 859 0 lj recdef.h 224 1 error recff rawlen undeclared here not in a function recff rawlen,makefile 645 r...