cocos2dx android版本移植时的Error format not a string literal and no format arguments解决方案
来源:互联网 发布:博途软件下载 编辑:程序博客网 时间:2024/06/05 08:02
场景: cocos2dx 跨平台开发, 移植Android版本时, 当进行到build_native.sh步骤后
ndk版本: android-ndk-r9
开发环境: mac os 64bit, Android+Eclipse
BUG:
CCCommon.cpp:54:77: error: format not a string literal and no format arguments [-Werror=format-security]
原因:
android-ndk-r9与Eclipse的版本不兼容问题
方案之一(我搜到的):
在对应项目的proj.android/jni/Application.mk添加一句话
APP_CFLAGS += -Wno-error=format-security
意思就是无视这个error
可以解决编译出错问题, 如有更好方案, 请不吝赐教.
- cocos2dx android版本移植时的Error format not a string literal and no format arguments解决方案
- cocos2dx android版本移植时的Error format not a string literal and no format arguments解决方案
- cocos2dx android版本移植时的Error format not a string literal and no format arguments解决方案
- cocos2dx android版本移植时的Error format not a string literal and no format arguments解决方案
- cocos2dx android版本移植时的Error format not a string literal and no format arguments解决方案
- cocos2dx android版本移植时的Error format not a string literal and no format arguments解决方案
- cocos2dx android版本移植时的Error format not a string literal and no format arguments解决方案
- android 下 Error format not a string literal and no format arguments 解决方案
- error: format not a string literal and no format arguments
- error: format not a string literal and no format arguments
- Error format not a string literal and no format arguments解决方案
- Error format not a string literal and no format arguments解决方案
- Error format not a string literal and no format arguments解决方案
- Error format not a string literal and no format arguments解决方案
- Error format not a string literal and no format arguments解决方案
- Cocos2dx跨平台编译Android错误:format not a string literal and no format arguments [-Werror=format-security]
- Cocos2dx跨平台编译Android错误:format not a string literal and no format arguments [-Werror=format-security]
- Cocos2dx跨平台编译Android错误:format not a string literal and no format arguments [-Werror=format-security]
- .net zip压缩包装类
- (1)MATLAB 直方图
- FFMPeg代码分析:AVPacket结构体和av_read_frame函数
- Android VNC Server on G1 (PC 远程控制 Android 手
- Activity管理
- cocos2dx android版本移植时的Error format not a string literal and no format arguments解决方案
- 研【生活】一不小心就迷茫了
- Pro Git(中文版)
- javascript函数
- QQ群发精灵V3.2
- ubuntu上配置git服务器
- python 数据文件的读取
- 移动设备和存储卡数据恢复如何才能实现
- Nginx学习网址