<i>(see "Do Not Link Modules to the Lua Core Libraries"), right ?</i>
 
No no no :)
 
 
What's described in the wiki is <i>static</i> linking, not dynamic linking.  You do NOT want to statically link each module with the lua binaries, but you DO want to dynamically link.  This way each module is sharing a copy of the single lua binary, precisely what the wiki describes you want to do.
 
The confusion comes from the fact that under windows, static libraries are called ".lib" files while .DLL import files are <i>also</i> called ".lib" files.  IIRC under unix there are no shared library <i>import</i> files.  You just link against the ".so" shared library, or the ".a" static library if you are linking statically.
<i>Just for curiosity: how did you manage to rebuild all modules ?
Hacking the makefiles ?</i>
 
Yes.  I only rebuilt a few (my own modules), but it worked fine after I did.

Francesco Montorsi <[EMAIL PROTECTED]> wrote:
Josh Turpen ha scritto:
>
> I see I'm not the only one having problems. In order for other binary
> modules to work with wxLua, wxLua needs to link against a seperate
> Lua.DLL, a DLL which the modules also link against.
I know - it's the same issue described at

http://lua-users.org/wiki/BuildingModules

(see "Do Not Link Modules to the Lua Core Libraries"), right ?



> In the current
> binary release of wxLua the only way to make it work is to rebuild all
> of the modules and have them link against wxLua.dll to get the lua symbols.
>
> Please please please add/fix the SHARED options to the build system :)
Just for curiosity: how did you manage to rebuild all modules ?
Hacking the makefiles ?

>
>
> I have 3D rendering working inside a wxFrame using wxLua and IrrLua.
>
> http://irrlua.sourceforge.net/14.wxWindow.lua
very interesting project !
Maybe we should add a "projects using wxLua" section in wxLuaWebsite...


>
> Unfortunately it only works with wxLua 2.4 due to the linking issues
> I've described above, which this SHARED option would solve.
>
> Linking against the LuaBinaries would be best of all. If everybody
> links against the same binaries, all of our modules will play together
> without the need for a recompile somewhere. Just download the .DLL/.so
> and go.
I think it should be not very difficult to reach this compatibility: we
just need to build luamodule against the verbatim version of lua.

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

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

Reply via email to