From: Philipp Ü. <mu...@tu...> - 2015-05-18 08:02:14
|
On Mon, 18 May 2015 09:25:06 +0200 Philipp Überbacher <mu...@tu...> wrote: > On Sun, 17 May 2015 13:25:49 -0700 > Paul K <pau...@ya...> wrote: > > > Hi Philipp , > > > > > wxlbind.cpp:831:51: error: ‘luaL_register’ was not declared in > > > this scope luaL_register(L, wx2lua(m_nameSpace), wxlualib); > > > > You probably also need -DLUA_COMPAT_MODULE, as luaL_register is not > > part of Lua 5.2 if the compatibility mode is not turned on. > > > > Paul. > > > Thanks Paul, > > I did add -DLUA_COMPAT_MODULE=TRUE > > I got the following warning, which seems to suggest that this option > does not exist: > > CMake Warning: > Manually-specified variables were not used by the project: > > LUA_COMPAT_MODULE > > And the build still fails. This option does not show up in ccmake > either. Did I do something wrong? > > Regards, > Philipp Answering my own question: LUA_COMPAT_MODULE seems to be a compiletime option for Lua, not wxlua. One that my distribution does not use. I get the same error when I set all the wxlua options to 5.1, and that still contains luaL_register, according to documentation (http://www.lua.org/manual/5.1/manual.html). My guess is that cmake still uses whatever Lua version it can find on the system. While I do have Lua 5.1 and 5.2 installed, the default Lua version of my distribution is now 5.3. So, cmake probably uses that, despite me specifying something else. I guess that counts as a bug in the cmake script. I could build it successfully using the Lua 5.1 that ships with wxLua. (-DwxLua_LUA_LIBRARY_USE_BUILTIN=1) I just hope that things will work out with that. Regards, Philipp |