also, if you added -DLUA_COMPAT_MODULE after running cmake perhaps you need 
to delete directory and run cmake from scratch again

----- Original Message ----- 
From: "Philipp Überbacher" <mu...@tuxfamily.org>
To: <wxlua-users@lists.sourceforge.net>
Sent: Monday, May 18, 2015 10:01 AM
Subject: Re: [wxlua-users] Problem compiling wxlua svn 247


> On Mon, 18 May 2015 09:25:06 +0200
> Philipp Überbacher <mu...@tuxfamily.org> wrote:
>
>> On Sun, 17 May 2015 13:25:49 -0700
>> Paul K <paulclin...@yahoo.com> 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
>
> ------------------------------------------------------------------------------
> 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
> 


------------------------------------------------------------------------------
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

Reply via email to