ubuntu18.04编译android8.1报错
用命令./FFTools/make.sh -a -j8 在ubuntu18.04编译android8.1报如下错误:Lex: applypatch <= bootable/recovery/edify/lexer.ll
FAILED: out/target/product/rk3399_firefly_mid/obj/STATIC_LIBRARIES/libedify_intermediates/lexer.cpp
/bin/bash -c "prebuilts/misc/linux-x86/flex/flex-2.5.39 -oout/target/product/rk3399_firefly_mid/obj/STATIC_LIBRARIES/libedify_intermediates/lexer.cpp bootable/recovery/edify/lexer.ll"
flex-2.5.39: loadlocale.c:130:_nl_intern_locale_data: ?? 'cnt < (sizeof (_nl_value_type_LC_TIME) / sizeof (_nl_value_type_LC_TIME))' ???
Aborted (core dumped)
ninja: build stopped: subcommand failed.
15:30:46 ninja failed with: exit status 1
是什么问题,有碰到的吗? 已经自行解决了。
在~./.bashrc 中添加:
export LC_ALL=C
把这行代码添加到bashrc 文件中,然后执行:source ./.bashrc。
LC_ALL=C 是为了去除所有本地化的设置,让命令能正确执行 {:4_211:} 闲云 发表于 2019-12-1 19:47
已经自行解决了。
在~./.bashrc 中添加:
export LC_ALL=C
{:4_211:} 闲云 发表于 2019-12-1 19:47
已经自行解决了。
在~./.bashrc 中添加:
export LC_ALL=C
{:4_122:} 👍 不是~./.bashrc, 是~/.bashrc吧
页:
[1]