码迷,mamicode.com
首页 > 系统相关 > 详细

MAC NDK 编译 Cocos2dx 问题

时间:2015-01-22 10:52:13      阅读:1076      评论:0      收藏:0      [点我收藏+]

标签:

1.加密库cryptopp编译不过,错误fd_set 不认识

解决:http://morgwai.pl/ndkTutorial/

The last problem is that Crypto++ seems to rely on implicit inclusion of header file containing definition of fd_set. This is not the case when using STLport so you need to add the following preprocessor command somewhere in wait.h file:

#include <sys/select.h>

2.CCCommon.cpp 文件报错:

/cocos2dx/platform/android/CCCommon.cpp:54:77: error: format not a string literal and no format arguments [-Werror=format-security]

some warnings being treated as errors

解决:

修改自己项目 proj.android\jni\Application.mk (不是Android.mk)文件,在最后加上

APP_CPPFLAGS += -Wno-error=format-security 就可以了。

 

3.libluajit.a(lib_base.o):lib_base.c:function lj_cf_print: error: undefined reference to ‘__swbuf‘

解决:http://cocos2d-x.org/news/307

We suggest you not to use NDK r10. Please use NDK r9d instead.

NDK r9d url

MAC NDK 编译 Cocos2dx 问题

标签:

原文地址:http://www.cnblogs.com/kelisi-king/p/4240965.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!