安装完ubuntu后,按网上的mtk芯片开发搭建环境后(参考:https://blog.csdn.net/gjy_it/article/details/79524561),执行标准的三条执行编译Android9的源码,出现了一个问题:
ninja: build stopped: subcommand failed
.build/core/ninja.mk:148: recipe for target ‘ninja_wrapper’ failed
make: *** [ninja_wrapper] Error
实质上,问题出在之前的编译过程中,查看build.log文件问题出在
BEGIN failed--compilation aborted at /media/dell/store/android/android/alps/vendor/mediatek/proprietary/bootable/bootloader/preloader/tools/emigen/MT6771/emigen.pl line 104.
tools/emigen/emigen.mk:49: recipe for target '/media/dell/store/android/android/alps/out/full_s62v71c2k_kkst-eng/target/product/s62v71c2k_kkst/obj/PRELOADER_OBJ/inc/custom_emi.h' failed
make: *** [/media/dell/store/android/android/alps/out/full_s62v71c2k_kkst-eng/target/product/s62v71c2k_kkst/obj/PRELOADER_OBJ/inc/custom_emi.h] Error 2