使用tolua工具一直失败

按tolua目录里README.mdown的步骤试了好多次了,按照http://www.cocos2d-x.org/wiki/Binding_Custom_Class_To_Lua_Runtime中的方法也试过很多次,一直报这个错误,求解决方法:6:

PYTHON_BIN not defined, use current python.
x86_llvm_path222: /Users/cocos_lib/android/android-ndk-r9b/toolchains/llvm-3.3/prebuilt/darwin-x86
generating userconf.ini…
Generating bindings for cocos2dx_custom…
Using userconfig
]

… Generating bindings for target lua

… … Processing section cocos2dx_custom

Traceback (most recent call last):
File “/Users/test/frameworks/cocos2d-x/tools/bindings-generator/generator.py”, line 1405, in
main()
File “/Users/test/frameworks/cocos2d-x/tools/bindings-generator/generator.py”, line 1380, in main
‘headers’: (config.get(s, ‘headers’ , 0, dict(userconfig.items(‘DEFAULT’)))),
File “/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ConfigParser.py”, line 623, in get
return self._interpolate(section, option, value, d)
File “/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ConfigParser.py”, line 691, in _interpolate
self._interpolate_some(option, L, rawval, section, vars, 1)
File “/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ConfigParser.py”, line 723, in _interpolate_some
option, section, rest, var)
InterpolationMissingOptionError: Bad value substitution:
section:
option : headers
key : cocosdir
rawval : /cocos/my/CustomClass.h


Generating lua bindings fails.

用的哪个版本,

3.2 的要用 android-ndk-r9d 去编译了。

3.3的。。。

下了个android-ndk-r9d,改了下环境变量,还是那个错误

新项目什么都不要改,运行genbindings.py看能不能成功

楼主看看我总结的文章
http://geekgaoyang.herokuapp.com/blog/2015/02/11/cocos2d-x-tutorial-of-binding-c-plus-plus-class-to-lua-usage/

看了你的贴子改用./genbindings.py这个命令成功了,之前一直用的python genbindings.py这个命令

非常感谢:734: