cocos2d-x3.2 + tolua运行问题

各位大神谁知道用tolua生成hpp文件时报的错 谢谢!!!
coolsoftdeMac-mini:tolua coolsoft$ python genbindings_myclass.py
PYTHON_BIN not defined, use current python.
generating userconf.ini…
Generating bindings for MyClass…
Using userconfig
(‘androidndkdir’, ‘/Users/coolsoft/Downloads/adt-bundle-mac-x86_64-20140702/android-ndk-r9b/’), (‘clangllvmdir’, ‘/Users/coolsoft/Downloads/adt-bundle-mac-x86_64-20140702/android-ndk-r9b/toolchains/llvm-3.3/prebuilt/darwin-x86_64’), (‘cocosdir’, ‘/Users/coolsoft/Downloads/test/work/cocos2d-x-3.2’), (‘cxxgeneratordir’, ‘/Users/coolsoft/Downloads/test/work/cocos2d-x-3.2/tools/bindings-generator’), (‘extra_flags’, ‘’)]

… Generating bindings for target lua

… … Processing section MyClass

/Library/Python/2.7/site-packages/Cheetah/Compiler.py:1509: UserWarning:
You don’t have the C version of NameMapper installed! I’m disabling Cheetah’s useStackFrames option as it is painfully slow with the Python version of NameMapper. You should get a copy of Cheetah with the compiled C version of NameMapper.
"\nYou don’t have the C version of NameMapper installed! "

Errors in parsing headers:

  1. <severity = Fatal,
    location = <SourceLocation file ‘/Users/coolsoft/Downloads/test/work/cocos2d-x-3.2/cocos/base/CCPlatformMacros.h’, line 33, column 10>,
    details = “‘CCPlatformDefine.h’ file not found”>
    ====

*** Found errors - can not continue
Traceback (most recent call last):
File “/Users/coolsoft/Downloads/test/work/cocos2d-x-3.2/tools/bindings-generator/generator.py”, line 1342, in
main()
File “/Users/coolsoft/Downloads/test/work/cocos2d-x-3.2/tools/bindings-generator/generator.py”, line 1338, in main
generator.generate_code()
File “/Users/coolsoft/Downloads/test/work/cocos2d-x-3.2/tools/bindings-generator/generator.py”, line 1011, in generate_code
self._parse_headers()
File “/Users/coolsoft/Downloads/test/work/cocos2d-x-3.2/tools/bindings-generator/generator.py”, line 1047, in _parse_headers
raise Exception(“Fatal error in parsing headers”)
Exception: Fatal error in parsing headers

Generating lua bindings fails.

coolsoftdeMac-mini:tolua coolsoft$

1.tolua目录下有个README,建议按照其内容安装相应组件并进行绑定。

2.错误提示,确认下CCPlatformDefine.h是否存在。

3.参考这个绑定自定义类的文档:http://www.cocos2d-x.org/wiki/Binding_Custom_Class_To_Lua_Runtime

你好楼主,我遇到的问题和你一样,请问你是如何解决的?