Mac 下 Cocos2d-x 3.0 正式版 lua绑定问题

说一下我的步骤。
1.创建lua工程
2.用mac os x10.9 系统自带的 python2.7 用命令行 下载安装了 PyYAML,Cheetah
3.下载了android-ndk-r9b 放到工程中
4.用命令行 设置了 NDK_ROOT=/path/to/android-ndk-r9b
5…/genbindings.py 开始绑定出现了错误

好吧。他给了我一个警告 写着

UserWarning:
You don’t have the C version of NameMapper installed! I’m disabling Cheetah’s useStackFrames option as it is painfully slow with the Python version of NameMapper. You should get a copy of Cheetah with the compiled C version of NameMapper.
出的错误 和 这个 Cheetah 有关吗。
我的步骤 好像没有拉下哪一步。

顺带的 补充一点。已经在我设置好的路径里 生成出了 两个文件.hpp与.cpp。
可是文件里面没有 却没有绑定好的 实现。只有文件头

截图如下

论坛上有个教程,你搜索一下

马良兄,你的问题解决了吗?我也有类似问题。

按教程上做的还是有这个问题,在线等,等不到自宫

我就不信了,顶

怒顶~~~~~~~~~~~~~~~~~~

ding…

问题已经解决。哈哈,坐等楼上自宫。

解决了就共享一下方法吧

就是按照教程来的,先执行自带的genbindings.py看看是否ok,如果ok那么copy一份修改就行了。

自带的genbindings.py都不ok怎么办?

D:\Python27\lib\site-packages\Cheetah\Compiler.py:1509: UserWarning:
You don’t have the C version of NameMapper installed! I’m disabling Cheetah’s useStackFrames option
as it is painfully slow with the Python version of NameMapper. You should get a copy of Cheetah with
the compiled C version of NameMapper.
"\nYou don’t have the C version of NameMapper installed! "

我就看看,我不说话

这个错误不影响

D:\Python27\lib\site-packages\Cheetah\Compiler.py:1509: UserWarning:
You don’t have the C version of NameMapper installed! I’m disabling Cheetah’s useStackFrames option
as it is painfully slow with the Python version of NameMapper. You should get a copy of Cheetah with
the compiled C version of NameMapper.
"\nYou don’t have the C version of NameMapper installed! "

这个绑定,没法实现C++的回调,还得手写C++的回调

麻烦问一下 你的问题解决了吗