From: John L. <jla...@gm...> - 2013-08-09 04:11:59
|
On Thu, Aug 8, 2013 at 5:58 PM, klaas.holwerda <ng...@kl...> wrote: > Hi John, > > I managed to update wxArt2D to use the new binding rules. > Great, hopefully it wasn't too hard and the benefit is that the binding headers are now valid C++ code, though they need to be very simple. On windows all works again. > On Linux (Centos 6.4 and openSuse12.3) i am able to compile and install > wxLua. (-fPIC stilled needed for wxWidgest2.9.5) > I use Centos 6 and I didn't need to add -fPIC to either building wxWidgets or wxLua. Do you remember what you added -fPIC to? > Also i am able to compile wxArt2D with wxLua within again. > Now i need to link and i get this the errors down here. > I build wxLua with BUILD_SHARED_LIBS disabled, and debug. > > I have the libraries, the libwxlua_lua51-wx29gtk2ud-2.8.12.so is not > static it seems, don't know why? > > I made the static build also optionally build the shared libwx.so, for Lua's require("wx"), and this needs a shared Lua lib. You can also make this static by setting wxLua_LUA_LIBRARY_BUILD_SHARED=TRUE. > klaas@dhcppc2:/usr/local/lib> ls libwxlua* > libwxlua_bind-wx29gtk2ud-2.8.12.a libwxlua_debugger-wx29gtk2ud-2.8.12.a > libwxlua_debug-wx29gtk2ud-2.8.12.a libwxlua_lua51-wx29gtk2ud-2.8.12.so > libwxlua-wx29gtk2ud-2.8.12.a > > Do you see something wrong? Like order of libraries to link, or maybe a > missing library?? > I know they are there several times, but normally that does not cause > problems, although order of libraries did before. > > It looks ok, this would be the ideal order of the libs. wxart2d libs libwxlua_bind-wx28gtk2ud-2.8.12.a libwxlua_debugger-wx28gtk2ud-2.8.12.a libwxlua_debug-wx28gtk2ud-2.8.12.a libwxlua-wx28gtk2ud-2.8.12.a libwxlua_lua51-wx28gtk2ud-2.8.12.so wxwidgets libs libpng etc. The only thing I can really suggest is to do the clean and rebuild thing and hope it fixes it. The functions you're missing are in libwxlua-wx28gtk2ud-2.8.12.a, which is the main wxLua lib. Regards, John |