So, since the last post, I have started embedding lua and has had some minor problems.
First I tried using luabind, which didn’t work at all for me. I didn’t want to include and build both luabind and boost (which it requires), and all of the precompiled solutions didn’t work either on my setup for different reasons, plus I just didn’t have time nor motivation to spend an hour trying to setup paths, projects, solutions, includes and so on for a library which should be precompiled.
So I thought screw luabind and I will go with tolua++. Which does almost the same thing but in a different way. Basically, luabind is like a library with a lot of macros, which you use to define your bindings in certain way in your code, and when the macros get expanded before compilation, the bindings start working. Tolua++ (and its predecessor tolua) on the other hand, only includes a very small runtime library, and most of the work is done before compilation by an external command line tool. It takes in special header files which you must write for your bindings and converts them to cpp files which you then include into your project like any other cpp file, and all the bindings are defined there. (This step is automated of course, you only define the special header and include the output file once).
tolua++ doesn’t require boost, which would mean less trouble compiling it, and also I thought that the exe file itself would be just downloadable precompiled.
However it wasn’t. But now after some time figuring out the compilation routine, I have compiled it and thought that I can put it out here for everyone who wants to save an hour or so by just fetching the file which should have been available from the author’s site from the beginning.
Anyways, here is the binary. It is for win32 and is tolua++ 1.0.93:
tolua++ 1.0.93 compiled binary (exe).
When compiling this, I have had a great help from this guide: http://lua-users.org/wiki/CompilingToluappWithoutScons
Although some things in that guide seemed to be incorrect, so here is my modified version: Tolua++ compilation guide.
As for actually using the tolua++, here is another awesome guide which should get you started: http://www.icynorth.com/forums/viewtopic.php?t=301
Disable page sliding
Rating Riot is a tool for automatic vote exchange between users of social networks.
EM is a swedish furniture manufacturer.
Habo Gruppen manufactures handles and other household items.
On Wineshare you can hire a winestock and purchase your own personal wine.