ts-lua icon indicating copy to clipboard operation
ts-lua copied to clipboard

Compilation with lua-5.2

Open Degreane opened this issue 11 years ago • 2 comments

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.

Degreane avatar Apr 09 '14 19:04 Degreane

ts-lua can not use lua-5.2, as lua-5.2 is difference with lua-5.1, and it is hard to fix.

portl4t avatar Apr 10 '14 01:04 portl4t

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

Degreane avatar Apr 10 '14 13:04 Degreane