我跟着http://www.cocoachina.com/bbs/read.php?tid=287623这个教程搞 但是到最后老是失败
安装ndk_r9b
安装python2.7.3
下载并安装PyYAML
下载pyCheetah ,并解压到\Python27\Lib\site-packages目录
这些都做了 但是跑genbindings.py这个脚本到最后一直都是报错,错误信息如下:
Errors in parsing headers:
- <severity = Warning,
location = <SourceLocation file None, line 179, column 9>,
details = “‘WCHAR_MAX’ macro redefined”> - <severity = Warning,
location = <SourceLocation file ‘G:\ndk-r9b\toolchains\llvm-3.3\prebuilt
\windows-x86_64/lib/clang/3.3/include\float.h’, line 86, column 9>,
details = “‘FLT_DIG’ macro redefined”> - <severity = Warning,
location = <SourceLocation file ‘G:\ndk-r9b\toolchains\llvm-3.3\prebuilt
\windows-x86_64/lib/clang/3.3/include\float.h’, line 87, column 9>,
details = “‘DBL_DIG’ macro redefined”> - <severity = Warning,
location = <SourceLocation file ‘G:\ndk-r9b\toolchains\llvm-3.3\prebuilt
\windows-x86_64/lib/clang/3.3/include\float.h’, line 106, column 9>,
details = “‘FLT_MAX’ macro redefined”> - <severity = Warning,
location = <SourceLocation file ‘G:\ndk-r9b\toolchains\llvm-3.3\prebuilt
\windows-x86_64/lib/clang/3.3/include\float.h’, line 107, column 9>,
details = “‘DBL_MAX’ macro redefined”> - <severity = Warning,
location = <SourceLocation file ‘G:\ndk-r9b\toolchains\llvm-3.3\prebuilt
\windows-x86_64/lib/clang/3.3/include\float.h’, line 114, column 9>,
details = “‘FLT_MIN’ macro redefined”> - <severity = Warning,
location = <SourceLocation file ‘G:\ndk-r9b\toolchains\llvm-3.3\prebuilt
\windows-x86_64/lib/clang/3.3/include\float.h’, line 115, column 9>,
details = “‘DBL_MIN’ macro redefined”> - <severity = Error,
location = <SourceLocation file ‘G:\ndk-r9b\toolchains\llvm-3.3\prebuilt
\windows-x86_64/lib/clang/3.3/include\mm_malloc.h’, line 59, column 22>,
details = “use of undeclared identifier ‘_aligned_malloc’”>
====
*** Found errors - can not continue
Traceback (most recent call last):
File “E:\works\MyLuaGame\frameworks\cocos2d-x\tools\bindings-generator/generat
or.py”, line 1418, in
main()
File “E:\works\MyLuaGame\frameworks\cocos2d-x\tools\bindings-generator/generat
or.py”, line 1414, in main
generator.generate_code()
File “E:\works\MyLuaGame\frameworks\cocos2d-x\tools\bindings-generator/generat
or.py”, line 1087, in generate_code
self._parse_headers()
File “E:\works\MyLuaGame\frameworks\cocos2d-x\tools\bindings-generator/generat
or.py”, line 1123, in _parse_headers
raise Exception(“Fatal error in parsing headers”)
Exception: Fatal error in parsing headers
Generating lua bindings fails.
不知道要怎么解决 求各位大大教教怎么解决这个问题