照这里一步步做的:http://www.cocoachina.com/bbs/read.php?tid=196416&keyword=tolua
但自己写的就过不了,请问有人遇到这种情况没?
错误信息:
Traceback (most recent call last):
File “D:\dev\misc\cocos2dx\CocosLuaGame\frameworks\cocos2d-x\tools\bindings-ge
nerator/generator.py”, line 1306, in
main()
File “D:\dev\misc\cocos2dx\CocosLuaGame\frameworks\cocos2d-x\tools\bindings-ge
nerator/generator.py”, line 1302, in main
generator.generate_code()
File “D:\dev\misc\cocos2dx\CocosLuaGame\frameworks\cocos2d-x\tools\bindings-ge
nerator/generator.py”, line 980, in generate_code
self._parse_headers()
File “D:\dev\misc\cocos2dx\CocosLuaGame\frameworks\cocos2d-x\tools\bindings-ge
nerator/generator.py”, line 1007, in _parse_headers
tu = self.index.parse(header, self.clang_args)
File “D:\dev\misc\cocos2dx\CocosLuaGame\frameworks\cocos2d-x\tools\bindings-ge
nerator\clang\cindex.py”, line 2109, in parse
self)
File “D:\dev\misc\cocos2dx\CocosLuaGame\frameworks\cocos2d-x\tools\bindings-ge
nerator\clang\cindex.py”, line 2221, in from_source
raise TranslationUnitLoadError(“Error parsing translation unit.”)
TranslationUnitLoadError: Error parsing translation unit.