在cocos2d-x3.0rc0/tools/tolua目录下有个README.mdown文件,里面介绍了lua绑定方法
其中
On Windows:
1.* Make sure that you have installed android-ndk-r9b.
2.* Download python2.7.3 (32bit) from (http://www.python.org/ftp/python/2.7.3/python-2.7.3.msi).
3.* Add the installed path of python (e.g. C:\Python27) to windows environment variable named ‘PATH’.
4.* Download pyyaml from http://pyyaml.org/download/pyyaml/PyYAML-3.10.win32-py2.7.exe and install it.
5.* Download pyCheetah from https://raw.github.com/dumganhar/cocos2d-x/download/downloads/Cheetah.zip, unzip it to “C:\Python27\Lib\site-packages”
6.* Set environment variables (NDK_ROOT)
7.* Go to “cocos2d-x/tools/tolua” folder, and run “genbindings.py”. The generated codes will be under “cocos\scripting\auto-generated\js-bindings”.
我用的是windows开发
1.我用的’android-ndk-r9c’
2.我用的python2.7.5 (3.0创建工程时推荐用python2.7.5,当时编译工程用2.7.6都出问题了。这里又让我用2.7.3,到底用那个版本??? )
3.这个没什么好说的
4.pyyaml 可以直接下载
5.Cheetah这东西给的链接根本下不了啊,后来百度了一下,下载了一个Cheetah-2.4.4.tar.gz,不过解压后需要安装,具体就是用命令行进入Cheetah目录,先执行python setup.py build,再执行python setup.py install
6.这个没什么好说的
7.执行,然后出错了
Errors in parser hearders:
CCGeometry.h这个文件30行,#include
具体见附近图片
无法解析这个头文件,程序找不到这个头文件
有没有官方人出来给看看?

