怎样在linux下安装使用tolua++
来源:百度知道 编辑:UC知道 时间:2024/06/02 18:34:14
cd tolua++-1.0.93
用vi 创建文件custom.py内容如下
## BEGIN custom.py
CCFLAGS = ['-I/usr/local/include/', '-O2', '-ansi']
LIBPATH = ['/usr/local/lib']
LIBS = ['lua', 'dl', 'm']
tolua_bin = 'tolua++'
tolua_lib = 'tolua++'
TOLUAPP = 'tolua++'
## END custom.py
scons all
scons install
问题解决了。谢谢一楼的热心帮助。分数还是给你吧。
This version of tolua++ uses SCons to compile (http://www.scons.org). SCons uses
pythin. If you don't want to install python, check "Installation without scons"
below.
* Installation
1. Edit the "config" file for your platform to suit your environment,
if at all necessary (for cygwin, mingw, BSD and mac OSX use
'config_posix')
2. Then, type "scons".
You can use 'scons -h' to see a list of available command line options.
* What you get
If "scons" succeeds, you get:
* an executable to generate binding code in ./bin;
* the C library to be linked in your application in ./lib;
* the include file needed to compile your application in ./include.
These are the only directories you need for development, besides Lua.
You can use