| 1 |
<head> |
| 2 |
<title>toLua++ - binding c/c++ code to lua</title> |
| 3 |
</head> |
| 4 |
|
| 5 |
<body bgcolor="white"> |
| 6 |
|
| 7 |
<h1> |
| 8 |
<img src="toluapp.gif">tolua++ - Home</h1> |
| 9 |
<p> |
| 10 |
|
| 11 |
<a href="#news">news</a> - |
| 12 |
<a href="#download">download</a> - <a href="#documentation">documentation</a> - <a href="#installing">installing</a> - |
| 13 |
<a href="mailto:[email protected]">contact</a> - <a href="lua_qt/">lua_qt</a> - <a href="http://www.codenix.com">Codenix</a> |
| 14 |
<br> |
| 15 |
|
| 16 |
<hr> |
| 17 |
|
| 18 |
<b>tolua++</b> is an extended version of <a href="http://www.tecgraf.puc-rio.br/~celes/tolua/">tolua</a>, a tool to integrate |
| 19 |
C/C++ code with <A HREF="http://www.tecgraf.puc-rio.br/lua">Lua</A>. <b>tolua++</b> |
| 20 |
includes new features oriented to c++ such as: |
| 21 |
<p> |
| 22 |
|
| 23 |
<ul> |
| 24 |
<li> Support for <b>std::string</b> as a <a href="#basics">basic type</a> (this can be turned off by a command line option).</li> |
| 25 |
<li> Support for <a href="#templates">class templates</a></li> |
| 26 |
</ul> |
| 27 |
<p> |
| 28 |
|
| 29 |
As well as other features and bugfixes. |
| 30 |
|
| 31 |
<hr> |
| 32 |
<a name="news"></a> |
| 33 |
<h3>News:</h3> |
| 34 |
<p> |
| 35 |
|
| 36 |
<b>15/02/09</b>: Version <b><a href="tolua++-1.0.93.tar.bz2">1.0.93</a></b> released. Some bugfixes and new features: |
| 37 |
<p> |
| 38 |
<ul> |
| 39 |
<li> Build process bootstraps. |
| 40 |
<li> Added hooks to handle custom types. |
| 41 |
<li> Added hooks to handle exceptions. |
| 42 |
<li> Fixed issues with newer GCC compilers. |
| 43 |
<li> Changed to MIT license. See <a href="COPYRIGHT">COPYRIGHT</a> file for details. |
| 44 |
</ul> |
| 45 |
|
| 46 |
<b>27/04/06</b>: Version <b><a href="tolua++-1.0.92.tar.bz2">1.0.92</a></b> released. Some bugfixes and new features: |
| 47 |
<p> |
| 48 |
<ul> |
| 49 |
<li> Fixed garbage collector bug for C objects. |
| 50 |
<li> Fixed problems with C compilers (including microsoft's) |
| 51 |
<li> Added a .proj file to build with Visual Studio 7 (contributed by Makoto Hamanaka). |
| 52 |
<li> New command line option: <tt>-E</tt> to define extra values |
| 53 |
<li> New command line option: <tt>-t</tt> to associate C++ types with their lua names (see the <a href="tolua++.html">manual</a> for details) |
| 54 |
</ul> |
| 55 |
|
| 56 |
<b>25/02/06</b>: Version <b><a href="tolua++-1.0.91.tar.bz2">1.0.91</a></b> released. This version contains a small garbage collection bugfix for 1.0.90 (thanks to Rolf E. Thorup for the report), everyone should upgrade. |
| 57 |
<p> |
| 58 |
|
| 59 |
<b>18/02/06</b>: Version <b><a href="tolua++-1.0.90.tar.bz2">1.0.90</a></b> released. Some bugfixes and new features: |
| 60 |
<p> |
| 61 |
<ul> |
| 62 |
<li> <b>lua 5.1</b> support (see <tt>README-5.1</tt>) |
| 63 |
<li> Support for casting operators (for example <tt>operator const char();</tt>) |
| 64 |
<li> New utility functions, <tt>tolua.setpeer</tt> and <tt>tolua.getpeer</tt>, for easier (and faster) inheritance from C/C++ objects (only for lua 5.1) |
| 65 |
<li> Some small API changes (see the <a href="tolua++.html#compatibility">compatibility section</a> of the manual) |
| 66 |
</ul> |
| 67 |
<p> |
| 68 |
|
| 69 |
<b>18/10/05</b>: Version <b><a href="tolua++_1.0.7-1.tar.gz">1.0.7</a></b> released. Some bugfixes and new features: |
| 70 |
<p> |
| 71 |
<ul> |
| 72 |
<li> New command line option: -C, to disable the cleanup of included lua code (for easier debugging). |
| 73 |
<li> Merged <a href="http://lua-users.org/lists/lua-l/2005-09/msg00227.html">Mildred's</a> patch: embedded lua chunks have better names, code on package initializer function is nested. |
| 74 |
<li> New hook: <tt>parser_hook</tt>, allows modifications to the behavior of the main parser. |
| 75 |
<li> Objects can be private (or protected). This doesn't affect the normal usage (everything is public by default), but it's useful to declare types that don't export any code, but serve |
| 76 |
as 'support' for other declarations. |
| 77 |
<li> Misc bugfixes. |
| 78 |
</ul> |
| 79 |
<p> |
| 80 |
|
| 81 |
<b>01/9/05</b>: Version <b><a href="tolua++_1.0.6-1.tar.gz">1.0.6</a></b> released. Several bugfixes and new features: |
| 82 |
<p> |
| 83 |
<ul> |
| 84 |
<li> Classes can have properties, using the 'tolua_property' keyboard. Property types are customizable. |
| 85 |
<li> Added a command line flag -D, to disable automatic generation of destructors for all classes with constructors (for compatibility with tolua5) |
| 86 |
<li> Classes with protected or private destructors can be tagged individually using the "TOLUA_PROTECTED_DESTRUCTOR" macro. |
| 87 |
<li> Added utility function "tolua.inherit", to allow a lua table to "inherit" from an instance of a C/C++ class |
| 88 |
<li> Fixed class constructor bug (it is now possible to use 'ClassName()' to create a lua-owned instance of the class without problems) |
| 89 |
<li> Misc bugfixes. |
| 90 |
</ul> |
| 91 |
<p> |
| 92 |
|
| 93 |
<b>10/4/05</b>: Version <b><a href="tolua++_1.0.5-1.tar.gz">1.0.5</a></b> released. This version contains some minor bugfixes and a new feature, |
| 94 |
the <b>tolua_outside</b> keyword, used to specify regular functions as methods of classes or structs. This release is also paired with <a href="lua_qt/">lua_qt</a> |
| 95 |
version 0.0.1a. |
| 96 |
<p> |
| 97 |
|
| 98 |
<b>1/2/05</b>: version <b><a href="tolua++-1.0.4.tar.bz2">1.0.4</a></b> released. This version contains some bugfixes and new features: |
| 99 |
<p> |
| 100 |
<ul> |
| 101 |
<li> Ability to customize tolua++'s behaviour to add functionality. |
| 102 |
<li> Basic support for multiple inheritance. |
| 103 |
<li> Several bugfixes on the parser. |
| 104 |
<li> <a href="tolua++_1.0.4-3_i386.deb">Debian package</a> available for download. |
| 105 |
</ul> |
| 106 |
<p> |
| 107 |
|
| 108 |
Most of the changes on this version were added for <a href="lua_qt/">lua_qt</a>, a package |
| 109 |
to bind the <a href="http://www.trolltech.com/products/qt/index.html">Qt</a> toolkit to lua. |
| 110 |
<p> |
| 111 |
|
| 112 |
<b>20/9/04</b>: version <b><a href="tolua++-1.0.3.tar.bz2">1.0.3</a></b> released. This version contains major bugfixes: |
| 113 |
<p> |
| 114 |
<ul> |
| 115 |
<li> Fixed bugs in object tracking (the 'memory address' bug; there's still some work left, but people should be able to use <tt>union</tt>s with no problems)</li> |
| 116 |
<li> Fixed parser bugs, functions with template parameters should work, also functions with default parameters that call constructos and with commas on them should work.</li> |
| 117 |
<li> Added a <tt>__call</tt> method for class names, to replace <tt>new_local</tt> to create instances owned by lua. |
| 118 |
<li> Fixed other minor bugs.</li> |
| 119 |
<li> Removed the link to win32 binaries, since I aparently don't know what the hell I'm doing with a microsoft compiler ;-)</li> |
| 120 |
</ul> |
| 121 |
<p> |
| 122 |
|
| 123 |
Everyone should upgrade. |
| 124 |
<p> |
| 125 |
|
| 126 |
<b>23/10/03</b>: version <b><a href="tolua++-1.0.2.tar.bz2">1.0.2</a></b> released. This version contains major bugfixes: |
| 127 |
<p> |
| 128 |
<ul> |
| 129 |
<li> Fixed bugs in gargabe collection (thanks to <b>Christian Vogler</b> for doing all the work :-)</li> |
| 130 |
<li> <tt>namespace</tt>s and nested types are now fully supported.</li> |
| 131 |
<li> Fixed other minor bugs.</li> |
| 132 |
</ul> |
| 133 |
<p> |
| 134 |
|
| 135 |
Everyone should upgrade. |
| 136 |
|
| 137 |
<hr> |
| 138 |
|
| 139 |
<a name="download"></a> |
| 140 |
<h3>Downloading</B></H3> |
| 141 |
|
| 142 |
The latest development version of the code is available through SVN from tolua++'s BerliOS project page. You can checkout using: |
| 143 |
|
| 144 |
svn checkout svn://svn.berlios.de/toluapp/trunk |
| 145 |
|
| 146 |
The <B>tolua++</B> source is freely available by http. |
| 147 |
The software provided under the terms of the MIT license. See the <a href="COPYRIGHT">COPYRIGHT</a> file distributed |
| 148 |
with the source. |
| 149 |
<p> |
| 150 |
|
| 151 |
Current version is <b><a href="tolua++-1.0.93.tar.bz2">1.0.93</a></b>, older versions: |
| 152 |
<p> |
| 153 |
<li> <a href="tolua++-1.0.93.tar.bz2">tolua++-1.0.93.tar.bz2</a> |
| 154 |
<li> <a href="tolua++-1.0.92.tar.bz2">tolua++-1.0.92.tar.bz2</a> |
| 155 |
<li> <a href="tolua++-1.0.91.tar.bz2">tolua++-1.0.91.tar.bz2</a> |
| 156 |
<li> <a href="tolua++_1.0.7-1.tar.gz">tolua++_1.0.7-1.tar.gz</a> [<a href="tolua++_1.0.7-1_i386.deb">deb</a>] |
| 157 |
<li> <a href="tolua++_1.0.6-1.tar.gz">tolua++_1.0.6-1.tar.gz</a> [<a href="tolua++_1.0.6-1_i386.deb">deb</a>] |
| 158 |
<li> <a href="tolua++_1.0.5-1.tar.gz">tolua++_1.0.5-1.tar.gz</a> [<a href="tolua++_1.0.5-1_i386.deb">deb</a>] |
| 159 |
<li> <a href="tolua++-1.0.4.tar.bz2">tolua++-1.0.4.tar.bz2</a> [<a href="tolua++_1.0.4-3_i386.deb">deb</a>] |
| 160 |
<li> <a href="tolua++-1.0.3.tar.bz2">tolua++-1.0.3.tar.bz2</a> |
| 161 |
<li> <a href="tolua++-1.0.2.tar.bz2">tolua++-1.0.2.tar.bz2</a> |
| 162 |
<li> <a href="tolua++-1.0.tar.bz2">tolua++-1.0.tar.bz2</a> |
| 163 |
|
| 164 |
<hr> |
| 165 |
|
| 166 |
<a name="documentation"></a> |
| 167 |
<h3>Documentation</h3> |
| 168 |
<p> |
| 169 |
You can find the manual <a href="tolua++.html">here</a> or under the doc/ directory |
| 170 |
on the distribution. |
| 171 |
<p> |
| 172 |
|
| 173 |
I'll also be adding interesting addons/examples to <a href="http://lua-users.org/wiki/ArielManzur">my page</a> |
| 174 |
on the <a href="http://lua-users.org/">lua-users wiki</a>. |
| 175 |
|
| 176 |
<hr> |
| 177 |
|
| 178 |
<a name="installing"></a> |
| 179 |
<h3>Instalation</h3> |
| 180 |
<p> |
| 181 |
|
| 182 |
tolua++ uses <a href="http://www.scons.org">SCons</a> to build. SCons is based on |
| 183 |
python, you can get a stand-alone version on <a href="http://www.scons.org"> |
| 184 |
their website</a>. After you have SCons, follow this simple instructions: |
| 185 |
<p> |
| 186 |
|
| 187 |
<li> Type '<b>scons all</b>' to compile.</li> |
| 188 |
<li> Type '<b>scons install</b>'. The default install prefix is /usr/local, so if you are |
| 189 |
on a POSIX system, it should work. On other systems, you can change it with the |
| 190 |
'<b>prefix</b>' option on command line. |
| 191 |
<p> |
| 192 |
|
| 193 |
<b>scons prefix=/usr install</b> |
| 194 |
<p> |
| 195 |
<i>or on windows</i> |
| 196 |
<p> |
| 197 |
<b>scons "prefix=c:\Program Files\Visual C" install</b> |
| 198 |
<p> |
| 199 |
|
| 200 |
Use <b>scons -h</b> to see a list of available command line options. |
| 201 |
|
| 202 |
<p> |
| 203 |
The files you need (in case you want to do a <b>manual install</b>) are: |
| 204 |
<ul> |
| 205 |
<li> bin/tolua++[.exe] - the main binary |
| 206 |
<li> include/tolua++.h - the header file |
| 207 |
<li> lib/libtolua++.a <i>or</i> lib/tolua++.lib - the library |
| 208 |
</ul> |
| 209 |
|
| 210 |
<li> See INSTALL for instructions on how to install without SCons. There are also instructions on how |
| 211 |
to build without scons at the <a href="http://lua-users.org/wiki/CompilingToluappWithoutScons">lua-users wiki</a> |
| 212 |
(if you know the author of this, <a href="mailto:[email protected]">contact me</a>)</li> |
| 213 |
|
| 214 |
<li> For <b>lua 5.1</b>, see <tt>README-5.1</tt> |
| 215 |
|
| 216 |
<hr> |
| 217 |
|
| 218 |
<b>tolua++</b> and this website are maintained by Ariel Manzur.<br> |
| 219 |
<a href="http://www.codenix.com/index.php?section=contact">Contact us</a> with any |
| 220 |
bugs, fixes, suggestions, or questions about this package. |
| 221 |
|
| 222 |
<hr> |
| 223 |
|
| 224 |
|
| 225 |
</body> |
| 226 |
|