From: John L. <jla...@gm...> - 2006-01-20 16:43:13
|
On 1/20/06, Francesco Montorsi <f18...@ya...> wrote: > make[1]: Entering directory `/home/frm/work/wxLua/modules/wxlua/src' > g++ -shared -o /usr/local/lib/libwx_gtk2ud_wxlua-2.7.so.1.5.0 internal.o > wxlbind.o wxlcallb.o wxlintrp.o wxlstate.o > /usr/bin/ld: internal.o: relocation R_X86_64_32 against `a local symbol' > can not be used when making a shared object; recompile with -fPIC > internal.o: could not read symbols: Bad value > collect2: ld returned 1 exit status > make[1]: *** [/usr/local/lib/libwx_gtk2ud_wxlua-2.7.so.1.5.0] Error 1 > make[1]: Leaving directory `/home/frm/work/wxLua/modules/wxlua/src' > make: *** [wxLuaLib] Error 2 > frm@genius:~/work/wxLua/apps/wxlua/src$ > > And this did not work with both a static and a shared build of wxWidgets. > > Last, I searched for the unresolved linker symbols: i.e. > s_wxluatag_wxWindow, s_wxluatag_wxBitmap, s_wxluatag_wxEvtHandler, > s_wxluatag_wxEvent and I found that they are all declared as extern > symbols at the beginning of some CPP files (like wxlstate.cpp) but then > they are not defined anywhere. > > How did you manage to compile these sources ? > Do I have to run some bind generator ? > Or you have some un-committed sources in your local copy ? You have to run make in bindings/wxwidgets to generate the bindings in modules/wxbind/. This is because of the number of changes being made to the binding generator. Regards, John Labenski |