external/clearsilver/cgi/cgi.c:22:18: 致命错误: zlib.h:没有那个文件或目录
编译中断。
解决方法:sudo apt-get install zlib1g-dev
prebuilt/linux-x86/sdl/include/SDL/SDL_syswm.h:55:22: 致命错误: X11/Xlib.h:没有那个文件或目录
解决:sudo apt-get install libx11-dev
host C++: obbtool <= frameworks/base/tools/obbtool/Main.cpp
<命令行>:0:0: 错误: “_FORTIFY_SOURCE”重定义 [-Werror]
<built-in>:0:0: 附注: 这是先前定义的位置
cc1plus: all warnings being treated as errors
make: *** [out/host/linux-x86/obj/EXECUTABLES/obbtool_intermediates/Main.o] 错误 1
解决:通过SMBA服务器进入并修改源码目录下/build/core/combo/HOST_linux-x86.mk文件:
将以下语句
HOST_GLOBAL_CFLAGS += -D_FORTIFY_SOURCE=0
修改为
HOST_GLOBAL_CFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0
编译中断。
解决方法:sudo apt-get install zlib1g-dev
prebuilt/linux-x86/sdl/include/SDL/SDL_syswm.h:55:22: 致命错误: X11/Xlib.h:没有那个文件或目录
解决:sudo apt-get install libx11-dev
host C++: obbtool <= frameworks/base/tools/obbtool/Main.cpp
<命令行>:0:0: 错误: “_FORTIFY_SOURCE”重定义 [-Werror]
<built-in>:0:0: 附注: 这是先前定义的位置
cc1plus: all warnings being treated as errors
make: *** [out/host/linux-x86/obj/EXECUTABLES/obbtool_intermediates/Main.o] 错误 1
解决:通过SMBA服务器进入并修改源码目录下/build/core/combo/HOST_linux-x86.mk文件:
将以下语句
HOST_GLOBAL_CFLAGS += -D_FORTIFY_SOURCE=0
修改为
HOST_GLOBAL_CFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0