WIN7下按照官方说明:
On Windows:
- Make sure that you have installed
android-ndk-r9b. - Download python2.7.3 (32bit) from (http://www.python.org/ftp/python/2.7.3/python-2.7.3.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.10.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) - Go to “cocos2d-x/tools/tolua” folder, and run “genbindings.py”. The generated codes will be under “cocos\scripting\auto-generated\js-bindings”.
运行py脚本报错如下:
File “E:\projectSpace\cocos2d-x-3.2\tools\bindings-generator\clang\cindex.py”, line 3286, in regis
ter_function
raise LibclangError(msg)
LibclangError: function ‘clang_annotateTokens’ not found. Please ensure that your python bindings ar
e compatible with your libclang.so version.
