On 5/8/06, Steve Kieu <[EMAIL PROTECTED]> wrote:
I would like to use luasql with wxlua and failled. Do googling and saw some
old thread about it but not sure how to resolve.

If I do a cd  to the lua dir inside wxLua distribution and make; a binary
lua will be created in bin of wxLua. Using that binary ;
require'luasqlmysql'  is fine.

However if I use the binary  wxlua and type require'luasqlmysl'  in the
editor window and run, the console prints the error:

error loading module 'luasqlmysql' from file './luasqlmysql.so':
        dynamic libraries not enabled; check your Lua installation

how can I enable it in wxlua? which is a bit strange as the lua core built
exactly the same produce lua baniry and works,

It is strange indeed, what platform are you using? I'm guessing Linux?

I just looked at the Makefiles in modules/lua and it looks like the
exact same object files are used for the lualib and the lua executable
so the code in loadlib.c should compile this #ifdefed code for both.

#if defined(LUA_DL_DLOPEN)
...

In the Makefile in apps/wxlua/src it uses this to compile lua, is this
what you did when you compile lua yourself?

lua:
       @(cd $(WXLUA_DIR)/modules/lua && make linux)

Regards,
   John Labenski


-------------------------------------------------------
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&kid0709&bid&3057&dat1642
_______________________________________________
Wxlua-users mailing list
Wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to