加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

Cocos2d-JS win7下bindings-generator使用非r9b的NDK版本

发布时间:2020-12-14 19:08:15 所属栏目:百科 来源:网络整理
导读:环境: win7 64位 Cocos2d-JS v3.0 final NDK r9d 之前的步骤请按照 bindings-generator目录下README.md进行: (注意本文指NDK不是用r9b的情况下) ### Windows 7 64bit * Download python2.7.3 (`32bit`) from (http://www.python.org/ftp/python/2.7.3/py

环境:

win7 64位

Cocos2d-JS v3.0 final

NDK r9d


之前的步骤请按照bindings-generator目录下README.md进行:(注意本文指NDK不是用r9b的情况下)

### Windows 7 64bit
* 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:Python27Libsite-packages"
* Download [64bit NDK-r9b](http://dl.google.com/android/ndk/android-ndk-r9b-windows-x86_64.zip) from [google](http://developer.android.com/tools/sdk/ndk/index.html)
* Set the environment variables (`PYTHON_ROOT` and `NDK_ROOT`) or just them in `test.bat`.


开始正文:

以引擎中的测试例子,引擎存放目录在D:根目录下为例

1.D:cocos2d-js-v3.0toolsbindings-generatortest下test.sh 49-54行注释掉


2.接着把目录下的test.ini第6行:

android_headers = -I%(androidndkdir)s/platforms/android-14/arch-arm/u sr/include -I%(androidndkdir)s/sources/cxx-stl/gnu-libstdc++/4.7/libs/armeabi-v7a/include -I%(androidndkdir)s/sources/cxx-stl/gnu-libstdc++/4.7/include
把4.7改为4.8

3.定位到该目录下,再运行test.bat,会自动生成user.cfg和userconf.ini,不定位到该目录下会报错失败的

4.回车,运行目录下的test.bat
还有一个警告

不过试了网上的一些方法还没有找到解决方法,但是既然下面提示:
那就先不管那警告啦

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读