Ubuntu 12.04 Desktop 版本编译 Android 4.0.4 出错解决

环境配置检查结果, PASS:Build Environment Check Result Report*************************************************************[OS]: Ubuntu 12.04 (64-bit) [WARNING]your ubuntu os version is higher than reco
摘要由CSDN通过智能技术生成

环境配置检查结果, PASS:

Build Environment Check Result Report
*************************************************************

[OS]: Ubuntu 12.04 (64-bit) [WARNING]
your ubuntu os version is higher than recommendation

[Physical Memory Size] : 3960292 K-Bytes [WARNING]
it's smaller than recommendation, may cause out-of-memory build error

[make]: 3.81 (64-bit) [OK]
[perl]: 5.14.2 (64-bit) [WARNING]
your perl version is higher than recommendation

[python]: 2.7.3 (64-bit) [WARNING]
your python version is higher than recommendation

[arm-linux-androideabi-gcc]: 4.4.3 (32-bit) [OK]
[gcc]: 4.6.3 (64-bit) [WARNING]
your gcc version is higher than recommendation

[jdk]: 1.6.0_33 (64-bit) [OK]
[bison]: 2.5 (64-bit) [WARNING]
your bison version is higher than recommendation

[flex]: 2.5.35 (64-bit) [OK]
[gperf]: 3.0.3 (64-bit) [OK]
[mingw]: Installed [OK]
[unix2dos/tofrodos]: Installed [OK]
[wine]: 1.4 (32-bit) [WARNING]
your wine version is higher than recommendation

*************************************************************

出错1:

host C++: obbtool <= frameworks/base/tools/obbtool/Main.cpp
:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]
:0:0: note: this is the location of the previous definition
cc1plus: all warnings being treated as errors
make: *** [out/host/linux-x86/obj/EXECUTABLES/obbtool_intermediates/Main.o] Error 1
解决办法:
在 ubuild/core/combo/HOST_linux-x86.mk 文件中:

找到行:

HOST_GLOBAL_CFLAGS += -D_FORTIFY_SOURCE=0
改为:
HOST_GLOBAL_CFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0

出错2:

external/mesa3d/src/glsl
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值