INSTALL 1.7 KB

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