1. 程式人生 > >Android 原始碼編譯aidl_language_l 相關錯誤解決

Android 原始碼編譯aidl_language_l 相關錯誤解決

Android 原始碼編譯報錯:

Lex: aidl <= frameworks/base/tools/aidl/aidl_language_l.l flex-2.5.39: loadlocale.c:130:_nl_intern_locale_data: ?? 'cnt < (sizeof (_nl_value_type_LC_TIME) / sizeof (_nl_value_type_LC_TIME[0]))' ??? Export includes file: frameworks/base/tools/aapt/Android.mk -- out/host/linux-x86/obj/STATIC_LIBRARIES/libaapt_intermediates/export_includes Export includes file: frameworks/base/libs/androidfw/Android.mk -- out/host/linux-x86/obj/STATIC_LIBRARIES/libandroidfw_intermediates/export_includes Export includes file: external/libpng/Android.mk -- out/host/linux-x86/obj/STATIC_LIBRARIES/libpng_intermediates/export_includes build/core/binary.mk:646: recipe for target 'out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_l.cpp' failed make: *** [out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_l.cpp] 已放棄 (core dumped)

解決方法:

export LC_ALL=C