cocos执行tolua/genbindings.py文件

必须使用android-ndk-r9b这个版本的ndk

* Make sure that you have installed `android-ndk-r9b_x64`.
* genbindings.py 手工指定路径 NDK_ROOT = 'E:/android/android-ndk-r9b_x64'
* 操作系统指定系统环境变量 PYTHON_BIN = C:\Python27\python.exe
* Download python2.7.5 (32bit) from (http://www.python.org/ftp/python/2.7.5/python-2.7.5.msi).
* Add the installed path of python (e.g. C:\Python27) to windows environment variable named 'PATH'.
* Download pyyaml from http://pyyaml.org/download/pyyaml/PyYAML-3.11.win32-py2.7.exe and install it.
* Download pyCheetah from https://raw.github.com/dumganhar/my_old_cocos2d-x_backup/download/downloads/Cheetah.zip, unzip it to "C:\Python27\Lib\site-packages"
* Set environment variables `NDK_ROOT` and `PYTHON_BIN`
* Go to "cocos2d-x/tools/tolua" folder, and run "genbindings.py". The generated codes will be under "cocos\scripting\auto-generated\lua-bindings".

posted on 2017-11-05 22:59  &大飞  阅读(677)  评论(0编辑  收藏  举报

导航