Jan 7th, 08:38
Tutorial
OOLua is a test driven, cross platform, non intrusive code generator framework for binding C++ and Lua code. Code is generated via macros which internally use templates to provide type safety where possible.
Building OOLua
To build OOLua you will need a C++ compiler. This tutorial will use Visual Studio 2008.
Downloads
- Download [oolua-release-1.2.1.zip]
- Download [Premake 3] (later versions will use [Premake 4] or above)
Create VS2008 Solution files
- Extract oolua-release-1.2.1.zip to a directory. Eg: C:/Dev/2008/oolua/
- Extract premake.exe to the directory Eg: C:/Dev/2008/oolua/
Build the .libs
- Run vs2008×86.bat
This creates a folder /lib with oolua_d.lib and oolua.lib (debug and release versions). You will then have to setup VC2008 include and library directories for your project
Testing
Download the test files. It includes OOLua sample code and .lib binaries (built using VS2008). You will also need Lua 5.1 .lib files (http://luabinaries.luaforge.net/)
References
VC++ Directories
OOLua Building Reference
Premake User Guide