ts-lua
ts-lua copied to clipboard
Compilation with lua-5.2
Good day Sir. i have to admit your code looks great and of great power of functionality, yet i have to mention that lua-5.1 is not the default on the modern systems and thus modern systems as latest fedora and latest ubuntu versions comes with lua-5.2. so In Lua 5.2 the LUA_GLOBALSINDEX value is no longer defined so this line of code no longer compiles. could you make your code detect which lua version it uses and thus compiles accordingly. on my system Fedora i had to install compat-lua and compat-lua-devel and do INC_PATH=-I/usr/include/lua-5.1 in order to get it compiled.
or the lest mention it in the docs so others may not get confused. much regards.
ts-lua can not use lua-5.2, as lua-5.2 is difference with lua-5.1, and it is hard to fix.
Ok i understand the complications and differences between lua 5.1 and lua 5.2 but as you can see Lua 5.1 last release was 2012 and most systems now comes with lua 5.2 (Linux Fedora 18,19,20 ...) and to use lua 5.1 one has to install compat-lua and do a bit of hack around to get it installed ...
and in the coming releases of Linux and once lua 5.3 be released lua 5.2 will be the compat edition. and thus the plugin won't be compiling any more.
much regards