On Mon, 18 May 2015 18:14:58 -0400 John Labenski <jlaben...@gmail.com> wrote:
> On Mon, May 18, 2015 at 4:01 AM, Philipp Überbacher > <mu...@tuxfamily.org> wrote: > > > On Mon, 18 May 2015 09:25:06 +0200 > > Philipp Überbacher <mu...@tuxfamily.org> wrote: > > > > > > > > > > > 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. > > > > > > > > > What you have seems right when you call cmake. > > In the CMakeLists.txt in the root wxLua dir is this check for Lua 5.2 > to add the LUA_COMPAT_ALL #define, which also #defines > LUA_COMPAT_MODULE in luaconf.h. > > if (${wxLua_LUA_LIBRARY_VERSION} VERSION_EQUAL 5.2) > set(wxLua_CXX_DEFINITIONS ${wxLua_CXX_DEFINITIONS} > -DLUA_COMPAT_ALL) # Match build used in default 5.2 Makefile > endif() > > > When you build run: > > $ make -j1 VERBOSE=1 > > and post back what is printed. It should show that "-I" is specified > to your Lua include dir and the link path to your Lua lib as well as > having the -DLUA_COMPAT_ALL flag. > > You might want to also check that the lua.h you want is in > "-DwxLua_LUA_INCLUDE_DIR=/usr/include" and that you're not pulling in > some other lua.h file. A very simple check is to temporarily put some > invalid code in your /uar/include/lua.h to force an error. > > Regards, > John Thanks John, I did not try that. However, the issue could be fixed by being more explicit about the include directory: -DwxLua_LUA_INCLUDE_DIR=/usr/include/lua5.2 \ instead of: -DwxLua_LUA_INCLUDE_DIR=/usr/include \ Regards, Philipp ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y _______________________________________________ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users