iTop4112 Android源码编译问题
2015-05-26 22:58
393 查看
问题一
参考
搭建Ubuntu14.04编译环境并下载源码(二)
http://www.it165.net/os/html/201407/8770.html
问题二
<command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]
<built-in>: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
解决方法:
修改源码目录下/build/core/combo/HOST_linux-x86.mk文件:
将以下语句
HOST_GLOBAL_CFLAGS += -D_FORTIFY_SOURCE=0
修改为
HOST_GLOBAL_CFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0
参考
http://blog.csdn.net/xumercury/article/details/7746229
问题三
external/mesa3d/src/glsl/linker.cpp:1394:49: error: expected primary-expression before ‘,’ token
解决方法:
把 "#include <stddef.h>" 添加到 linker.cpp 文件头部。
问题四
external/oprofile/libpp/format_output.h:94:22: error: reference ‘counts’ cannot be declared ‘mutable’ [-fpermissive]
http://blog.csdn.net/yangtalent1206/article/details/21397629
终极解决办法
http://www.linuxidc.com/Linux/2012-11/73918.htm
参考
搭建Ubuntu14.04编译环境并下载源码(二)
http://www.it165.net/os/html/201407/8770.html
问题二
<command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]
<built-in>: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
解决方法:
修改源码目录下/build/core/combo/HOST_linux-x86.mk文件:
将以下语句
HOST_GLOBAL_CFLAGS += -D_FORTIFY_SOURCE=0
修改为
HOST_GLOBAL_CFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0
参考
http://blog.csdn.net/xumercury/article/details/7746229
问题三
external/mesa3d/src/glsl/linker.cpp:1394:49: error: expected primary-expression before ‘,’ token
解决方法:
把 "#include <stddef.h>" 添加到 linker.cpp 文件头部。
问题四
external/oprofile/libpp/format_output.h:94:22: error: reference ‘counts’ cannot be declared ‘mutable’ [-fpermissive]
http://blog.csdn.net/yangtalent1206/article/details/21397629
终极解决办法
http://www.linuxidc.com/Linux/2012-11/73918.htm
相关文章推荐
- ubuntu9.04下编译android源码遇到的问题
- android2.2源码编译问题7-4
- android cupcake源码编译问题
- 32 位ubunt u下载编译android2.2源码的问题之一
- 编译android2.2的源码出现问题,问题如下:
- Android源码编译问题
- android 源码编译遇到得一些问题
- 编译android源码及遇到的问题
- Android系统源码编译全过程—— Android编译问题:Only 64-bit build environments are supported beyond froyo/2.2
- Ubuntu编译android源码出错及问题解决
- 使用android framework源码编译自己apk问题
- Ubuntu10.04编译android1.5源码出错问题解决
- linux android 下源码编译问题总结(一)
- android 源码编译问题总结(二)
- Android 源码编译下一些问题总结(持续更新)
- 编译 Android 源码问题总结
- android2.2源码编译过程遇到的问题
- 天天记录 - 编译Android 4.1.2源码遇到问题解决
- android 源码编译打包的apk出现accessed stale local reference问题
- ubuntu12.04 64bit 编译android源码时遇到的问题