LibreCAD / LibreCAD_3

LibreCAD 3 is a next generation 2D CAD application written to be modular, with a core independent from GUI toolkits. Scripting is possible with Lua.
http://librecad.org
Other
314 stars 103 forks source link

Error building librecad3 #359

Closed jaisekjames closed 4 years ago

jaisekjames commented 4 years ago

When build with Lua 5.4

error: too few arguments to function ‘int lua_resume error: ‘LUA_ERRGCMM’ was not declared in this scope

seems to [http://www.lua.org/manual/5.4/manual.html#8.3]

Pls fix it.

feragon commented 4 years ago

The library we use for Lua bindings (https://github.com/satoren/kaguya) doesn't support Lua 5.4.

We can't fix those errors on our side now.

flywire commented 4 years ago

Thank you.

Updated Required libraries

7) Lua >= 5.2 and <= 5.3.5

jaisekjames commented 4 years ago

Please add an option to build using different lua version in kaguya mnetioned in readme file.

"If you don’t want to use the default (system) library, add these 3 options to the cmake command cmake -DLUA_INCLUDE_DIRS=path/to/lua/header/dir DLUA_LIBRARY_DIRS=/abspath/to/lua/library/dir -DLUA_LIBRARIES=lualibname"

In arch linux, default is lua 5.4.

flywire commented 4 years ago

@jaisekjames wiki is public. Can you edit https://github.com/LibreCAD/LibreCAD_3/wiki/Building directly?