各位大神谁知道用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:
- <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$