摘要: 下载scons http://www.scons.org/ version = 2.3 阅读README python setup.py install 进行安装 下载tolua++ 5.1 阅读READM5.1.ME 按要求修改custom.py scons all scons all isntall 之后确保 /usr/local/include 下面有 lua.hpp lualib.h luaconf.h luaxlib.h tolua++.h等头文件(没有的去lua和tolua的目录下考就是了,以上代码不一定都有,只要考过来就行了) /usr/local/lib 下面有li... 阅读全文
posted @ 2013-10-25 17:01 AssassinPig 阅读(384) 评论(0) 推荐(0) 编辑
摘要: 使用cpp新建tclass.pkg $#include "tclass.h" $cfile "tclass.h" 新建tclass.h 1 #ifndef TCLASS_H 2 #define TCLASS_H 3 // 简单的类 4 class A //tolua_export 5 { //tolua_export 6 public: 7 int a; 8 9 A( int nTemp ); //tolua_export 10 ... 阅读全文
posted @ 2013-10-25 16:59 AssassinPig 阅读(479) 评论(0) 推荐(0) 编辑