老版本编译记录:
1.加密库cryptopp编译不过,错误fd_set 不认识
解决:http://morgwai.pl/ndkTutorial/
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‘
如上这种问题是由于ndk版本造成的,请使用ndk9