编译不过9ndk
来源:互联网 发布:简谱软件免费下载 编辑:程序博客网 时间:2024/04/29 02:54
cocos2d-x-2.1.4在NDK r9下的编译问题
分类: Android cocos2d-x2013-07-31 09:12 3808人阅读 评论(14) 收藏 举报
- jni/../../../cocos2dx/platform/android/CCCommon.cpp: In function 'void cocos2d::CCLog(char const*, ...)':
- jni/../../../cocos2dx/platform/android/CCCommon.cpp:44:72: error: format not a string literal and no format arguments [-Werror=format-security]
- jni/../../../cocos2dx/platform/android/CCCommon.cpp: In function 'void cocos2d::CCLuaLog(char const*)':
- jni/../../../cocos2dx/platform/android/CCCommon.cpp:54:77: error: format not a string literal and no format arguments [-Werror=format-security]
- cc1plus: some warnings being treated as errors
- make: *** [obj/local/armeabi/objs/cocos2dx_static/platform/android/CCCommon.o] Error 1
查看评论
- 12楼 zhshw 前天 20:53发表 [回复]
- 七楼做法,可以解决,谢谢
- 11楼 myj870517 2013-11-26 16:27发表 [回复]
- 感谢7楼和楼主
- 10楼 forever_love007 2013-09-27 16:41发表 [回复]
- 感谢7楼和楼主
- 9楼 junes_yu 2013-09-14 13:00发表 [回复]
- 感谢分享~~~
- 8楼 xyxdasnjss 2013-09-11 17:38发表 [回复]
- 感谢楼主分享,感谢7楼
- 7楼 zhengyayuan123 2013-08-16 21:15发表 [回复]
- 在Application.mk里面添加下面代码
APP_CPPFLAGS += -Wno-error=format-security
官网已经有人解决了- http://cocos2d-x.org/boards/6/topics/33525?r=33579#message-33579
- 6楼 su_21 2013-08-15 15:00发表 [回复]
- 非常非常的感谢楼主,真心的感谢~
- 5楼 shuaiyinoo 2013-08-13 22:01发表 [回复]
- 楼主我也遇到了这个问题不知道如何解决,不知道能否赐教
- Re: sgwhp 2013-08-14 09:25发表 [回复]
- 回复shuaiyinoo:将NDK换回r8e版本...
- 4楼 2234528019 2013-08-08 09:24发表 [回复]
- 成功了一次,现在又出这个问题了
- 3楼 glonix 2013-08-05 22:37发表 [回复]
- 谢谢~
- 2楼 glonix 2013-08-05 00:40发表 [回复]
- github是如何修复的啊,不换r8e能解决吗
- Re: sgwhp 2013-08-05 09:36发表 [回复]
- 回复u011019615:你可以看一下他的源码。
下面列一个r9和之前版本的一个差异:- __android_log_print(ANDROID_LOG_DEBUG, "cocos2d-x debug info", buf);
- __android_log_print(ANDROID_LOG_DEBUG, "cocos2d-x debug info", "%s", buf);
我想过把所有的这些函数都替换一下,但貌似这些代码太多了,还是直接换ndk简单
- 1楼 pwh0996 2013-08-01 20:10发表 [回复]
- 我也遇到此问题 十分感谢 我去试试
0 0
- 编译不过9ndk
- CreateWaitableTimer编译通不过
- ffmpeg编译,运行不过
- xcode编译不过
- printwindow()编译不过
- 解决zlib编译不过
- 编译通不过#564
- ndk 9编译ffmpeg 2.2.
- ndk编译
- NDK编译
- ndk编译
- NDK 编译
- opennms源码,怎么编译不过?
- gettext编译不过的问题
- 关于SetTimer()编译通不过
- IntelliJ IDEA-代码编译不过
- openwrt拷贝后编译不过
- cocos2dx 3.0 编译不过问题解决
- dbms_profiler 调整PL/SQL的性能
- eclipse中导入项目后中文成乱码解决办法
- C#xml操作类
- 他山之石__10种排序算法总结
- C# 操作excel和xml
- 编译不过9ndk
- xml文档操作类C#
- 和规范和法国
- LA 4329 Ping pong / 树状数组
- 自定义结构体做为map里面的key的写法
- 超级重复串
- Populating Next Right Pointers in Each Node
- c#xml文档操作类(2)
- Android coverFlow 卡顿问题解决过程