按照论坛里的教程 写的一个超简单的cpp 可以成功绑定;但是改用复杂的业务cpp,就会报错,信息如下.折腾了一下午 bindings-generator也从github上下了最新的,重新搭了环境,就是没解决 求各位大佬救救孩子吧
… Generating bindings for target spidermonkey
… … Processing section PdragonAd
Traceback (most recent call last):
File “D:\CocosCreator_2.0.4\resources\cocos2d-x\tools\bindings-generator/gener
ator.py”, line 1884, in
main()
File “D:\CocosCreator_2.0.4\resources\cocos2d-x\tools\bindings-generator/gener
ator.py”, line 1856, in main
‘clang_args’: (config.get(s, ‘extra_arguments’, 0, dict(userconfig.items(‘DE
FAULT’))) or “”).split(" "),
File “C:\Python27\lib\ConfigParser.py”, line 623, in get
return self._interpolate(section, option, value, d)
File “C:\Python27\lib\ConfigParser.py”, line 691, in _interpolate
self._interpolate_some(option, L, rawval, section, vars, 1)
File “C:\Python27\lib\ConfigParser.py”, line 726, in _interpolate_some
section, map, depth + 1)
File “C:\Python27\lib\ConfigParser.py”, line 723, in _interpolate_some
option, section, rest, var)
InterpolationMissingOptionError: Bad value substitution:
section: [PdragonAd]
option : extra_arguments
key : clang_include
rawval :