On 3/4/06, Marcos <[EMAIL PROTECTED]> wrote: > But, I think wxlua.exe must correctly use the require function without > recompile libraries, because my goal is to use the binaries disposed on > the web. Example is luasql, luazip, luasocket and so..
I agree, it should work, but I'm not sure why it doesn't. wxLua shouldn't be doing anything that would affect how require works. As I said, I think it's more of a path issue than anything else since I could get it to work. You have to duplicate the path structure that lua.exe has where "require" does work for you for wxlua.exe. In fact, why not just copy wxlua.exe to where you have lua.exe working with the "require" code and see if that works? > Another question is: You have a project to build wxLua module(dll,so) for > dynamic load with lua.exe? This will take some additional work. There was a modified version of the original wxLua that could be loaded as a dll from lua.exe, but I have not attempted to look at what was necessary to make it work. I think that it is not so simple since wxWidgets has it's own event loop and so you have to install it into lua.exe's C main() somehow. Apparently it's possible, but I haven't had time to look into it. Regards, John Labenski ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Wxlua-users mailing list Wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users