Hi, I'm trying to understand how to build the wx.so lib as a standalone, to use it with a standard Lua interpreter, but i can't quite grasp what's needed to succeed. I've been trying for a few hours, to no avail.
I'm using Ubuntu 9.04 x64, and have all the compilers and libs needed to compile stuff. Here's what i did: 1. I downloaded Lua 5.1 source code, libs and headers (well actually it comes from Lua Binaries). In case i wouldn't, there's a built in version with wxLua anyway. It works, and i've successfully build some C modules against it (luaglut and its examples work perfectly) 2. Since i wanted to control the wxWidgets version used, i downloaded the source (2.8.10), configured and compiled it, without installing it. It worked, but i must admit i'm not sure about the configure options i should use that could have a (positive or negative) influence on step 3., i.e. the compilation of wxLua (i'm only interested in wx.so). I've tried to compile wxWidgets with shared enabled, disabled, and with/without the monolithic option. I guess what i want is shared, and monolithic (unlesse there's a way to compile wxWidgets statically, then create a shared wx.so using it?) 3. I downloaded the wxLua source code, configured it so it would find my "system" Lua (the one i downloaded, not the Ubuntu packaged one). This works. I also configured it to find the custom compiled wxWidgets directories. This works too. The part i'm not sure about is the same as for wxWidgets, i.e. the shared option, the luamodule and monolithic-luamodule options, etc. The only way i manage to get wx.so built is by enabling the shared option. That's ok, but when i try to put the resulting lib/wx.so in my lua bin directory from step 1., then require "wx", it complains about missing "sub libs" that wx.so depends upon. I thought that "shared" was to create a wx.so, but that monolithic would make it independent from anything else. True, when i run ldd on wx.so, the missing libs are mentioned. On the other hand, a pre-compiled wx.so like the one in Lua All in One shows no such dependencies, so there must be a way... What am i doing (or getting) wrong here ? Any help would be appreciated. Thanks in advance. ------------------------------------------------------------------------------ _______________________________________________ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users