Hi,
   I'm experimenting with wx module and I've got a few proposals for it:

1) the luamodule.wx.lua files in wxLua/apps/luamodule/src is an example, isn't it ? Shouldn't then go in wxLua/samples ?
wrapmodule.wx.lua is an utility so shouldn't it got in wxLua/utils ?

2) I'm getting a weird behaviour of lua's require: I'd like to make the "luamodule" app installable in $prefix/lib/lua/5.1; however, while everything works as expected if I put the compiled wx.so in /usr/local/lib/lua/5.1, it doesn't work if I put it in /usr/lib/lua/5.1:

wxlua-lua: luamodule.wx.lua:17: module 'wx' not found:
        no field package.preload['wx']
        no file './wx.so'
        no file '/usr/local/lib/lua/5.1/wx.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
        [C]: in function 'require'
        luamodule.wx.lua:17: in main chunk
        [C]: ?

I tried to set LUA_PATH in luamodule.wx.lua to:
LUA_PATH="/usr/lib/lua/5.1/?.so;"
*before* the require() call but then I get:

wxlua-lua: error loading module 'wx' from file '/usr/lib/lua/5.1/wx.so':
        /usr/lib/lua/5.1/wx.so:1: unexpected symbol near 'char(127)'
stack traceback:
        [C]: ?
        [C]: in function 'require'
        luamodule.wx.lua:17: in main chunk
        [C]: ?

that "unexpected symbol near 'char(127)'" is not clear to me !

This strange behaviour (lua bug?) is easy to reproduce also putting the wx.so file in /usr/local/lib/lua/5.1 and then setting:

LUA_PATH="/usr/local/lib/lua/5.1/?.so"

So, it looks that the global variable LUA_PATH, described at http://www.lua.org/pil/8.1.html, does not work... is anyone able to reproduce this "bug" ?

Thanks,
Francesco



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wxlua-users mailing list
Wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to