1、python yaml cheet 保证都是32位
2、遇到错误
<severity = Error,
location = <SourceLocation file 'D:\\android-ndk-r10b\\toolchains\\llvm-3.3\\prebuilt\\windows/lib/clang/3.3/include\\mm_malloc.h', line 59, column 22>,
details = "use of undeclared identifier '_aligned_malloc'">
在你的ini文件修改
clang_flags = -nostdinc -x c++ -std=c++11 -U __SSE__
主要是加上 -U __SSE__
3、cocos_headers = -I%(cocosdir)s/cocos/2d -I%(cocosdir)s/cocos/ui -I%(cocosdir)s/cocos/base -I%(cocosdir)s/cocos/physics -I%(cocosdir)s/cocos/2d/platform -I%(cocosdir)s/cocos/2d/platform/android -I%(cocosdir)s/cocos/math/kazmath -I%(cocosdir)s/extensions -I%(cocosdir)s/external -I%(cocosdir)s/cocos/editor-support -I%(cocosdir)s
cocos_flags = -DANDROID -U__MINGW32__
4、将.hpp 和 .cpp在工程中需要手动引入
5、 绑定时需要手敲:
auto state = stack->getLuaState();
lua_getglobal(state, "_G");
register_all_cocos2dx_custom(state);
lua_pop(state, 1);