ubuntu12.04编译android-4.0.3_r1.1错误总结

1:
make: *** [out/host/linux-x86/obj/EXECUTABLES/obbtool_intermediates/Main.       o] Error 1


解决方法:

build/core/combo/HOST_linux-x86.mk line 61: 

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


 

2:
 make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libMesa_intermediates/       src/glsl/linker.o] Error 1


解决方法:


vim external/mesa3d/src/glsl/linker.cpp
添加:
#include <cstddef> 

3:
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/liboprofile_pp_intermediates/arrange_profiles.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from external/oprofile/libpp/format_output.cpp:26:0:
external/oprofile/libpp/format_output.h:94:22: error: reference ‘counts’ cannot be declared ‘mutable’ [-fpermissive]
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/liboprofile_pp_intermediates/format_output.o] Error 1

解决方法:

external/oprofile/libpp/format_output.h

把:
mutable counts_t & counts;
改为:
counts_t & counts; 

4:
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/                             libgtest_main_host_intermediates/gtest_main.o] Error 1

解决方法:

$vim external/gtest/src/../include/gtest/internal/gtest-param-util.h

添加:
#include <cstddef>

5:
 make: *** [out/host/linux-x86/obj/EXECUTABLES/test-                             librsloader_intermediates/test-librsloader] Error 1

解决方法:

$vim external/llvm/llvm-host-build.mk

在文件中插入一行:
LOCAL_LDLIBS := -lpthread -ldl

6:
 make: *** [out/host/linux-x86/obj/EXECUTABLES/llvm-rs-cc_intermediates/         slang_rs_export_foreach.o] Error 1

解决方法:

$ vim frameworks/compile/slang/Android.mk

将 local_cflags_for_slang 所在行最后的 -Werror 去掉:

#local_cflags_for_slang := -Wno-sign-promo -Wall -Wno-unused-parameter -Werror
local_cflags_for_slang := -Wno-sign-promo -Wall -Wno-unused-parameter


  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值