| 1 |
This version of tolua++ uses SCons to compile (http://www.scons.org). SCons uses |
| 2 |
pythin. If you don't want to install python, check "Installation without scons" |
| 3 |
below. |
| 4 |
|
| 5 |
* Installation |
| 6 |
|
| 7 |
1. Edit the "config" file for your platform to suit your environment, |
| 8 |
if at all necessary (for cygwin, mingw, BSD and mac OSX use |
| 9 |
'config_posix') |
| 10 |
2. Then, type "scons". |
| 11 |
|
| 12 |
You can use 'scons -h' to see a list of available command line options. |
| 13 |
|
| 14 |
* What you get |
| 15 |
|
| 16 |
If "scons" succeeds, you get: |
| 17 |
* an executable to generate binding code in ./bin; |
| 18 |
* the C library to be linked in your application in ./lib; |
| 19 |
* the include file needed to compile your application in ./include. |
| 20 |
These are the only directories you need for development, besides Lua. |
| 21 |
|
| 22 |
You can use 'scons install' to install the files, see the 'prefix' option. |
| 23 |
|
| 24 |
* Installation without scons |
| 25 |
|
| 26 |
The instructions for building tolua++ without scons depend on the particular |
| 27 |
compiler you are using. |
| 28 |
The simplest way is to create a folder with all .c and .h files except |
| 29 |
'toluabind_default.c', and then create a project for the executable and the |
| 30 |
library, as follows: |
| 31 |
|
| 32 |
tolua.exe: all *.c *.h in src/bin (except toluabind_default.c) |
| 33 |
tolua.lib: all *.c *.h in src/lib. |
| 34 |
|
| 35 |
* Installation with Microsoft Visual Studio |
| 36 |
|
| 37 |
The directory 'win32' contains project files for Microsoft Visual Studio 7 |
| 38 |
(contributed by Makoto Hamanaka). The project has 4 different build options: |
| 39 |
withLua50_Release, withLua51_Release, withLua50_Debug and withLua51_Debug. |
| 40 |
They all expect the lua library names used by the LuaBinaries packages |
| 41 |
(http://luabinaries.luaforge.net/). The resulting files are built on /lib and |
| 42 |
/bin (for the library and tolua++.exe). |