From: John L. <jla...@gm...> - 2006-01-23 05:35:21
|
> >>Could we commit the generated bindings in CVS ? > > > > Ok, I'll do that this weekend. > good Sorry, not yet, let me sort out the coroutine problems first. I have some thinking to do about it, it needs to be an elegant solution. > >>We also really need some way to: > >>1) produce luasetup.h from luasetup.h.in (maybe adding 'wx' prefix to > >>both as we discussed time ago): I had to manually change it to exclude > >>the contrib wx headers which I do not have installed and wxFontMapper > >>(see point #3) > > > > This is supposed to be like wxWidgets/include/wx/msw/setup0.h where > > you select what you want included with your wxLua bindings build. I > > will change it to wxluasetup.h this weekend. > ok, on win32 I'd keep it exactly like wx's setup0.h but on unix we need > (like wx does) a wxluasetup.h.in which is transformed into wxluasetup.h. I don't think you need to do anything, there's nothing in it that depends on anything that configure could figure out. Hopefully all of the bindings take into account the wxWidgets wxUSE_XXX defines appropriately and so the wxLUA_USE_XXX are a way to not compile in wxLua bindings to parts of the wxWidgets library that either may or may not be compiled in. If this is not the case please tell me where it's wrong. > >>2) fix warnings about non-existing symbols (I get ton of messages like: > >> > >>./modules/wxbind/include/wxbind.h:127:6: warning: "wxUSE_WAVE" is not > >>defined > >>./../modules/wxbind/include/wxbind.h:328:5: warning: > >>"wxLUA_USE_wxCriticalSection" is not defined > >>./../modules/wxbind/include/wxbind.h:506:5: warning: > >>"wxLUA_USE_wxCriticalSectionLocker" is not defined > >>./../modules/wxbind/include/wxbind.h:919:5: warning: > >>"wxLUA_USE_wxCriticalSectionLocker" is not defined > >>./../modules/wxbind/include/wxbind.h:1038:6: warning: "wxUSE_WAVE" is > >>not defined > >>... > > > > These should all be defined! I'll get a new cvs head checkout at home > > in linux (mine is probably a month old) and see if I get them. The > > wxLUA_USE_XXX are certainly defined in luasetup.h though. > I don't know why but the wxUSE_WAVE and > wxLUA_USE_wxCriticalSectionLocker symbols are not defined... These are all defined in my last wxWidgets checkout, I'm sorry but I can't understand why iut doesn't work for you. Could you try some things out like putting #if wxUSE_WAVE in the wxWidgets minimal sample and see if you get the warning there? > >>3) now compilation stops on my file: > >> > >>./wxbind/src/gdi.cpp:2289: error: 'class wxFontMapper' has no member > >>named 'SetConfig' Fixed. > .././bk-deps g++ -c -o wxbind_lib_wx_class.o -I./../modules -I/usr/local/= lib/wx/include/gtk2-ansi-debug-static-2.7 -I/usr/local/include/wx-2.7 -D_FI= LE_OFFSET_BITS=3D64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=3D1 -D__WXDEBUG__ -D= __WXGTK__ -pthread -g -O0 -Wall -Wundef -Wno-ctor-dtor-privacy ./wxbind/sr= c/wx_class.cpp > In file included from ./wxbind/src/wx_class.cpp:26: > ./../modules/wxbind/include/wxbind.h:127:6: warning: "wxUSE_WAVE" is not = defined > ./../modules/wxbind/include/wxbind.h:328:5: warning: "wxLUA_USE_wxCritica= lSection" is not defined You seem to only get these two warnings, why only these? > ./wxbind/src/wx_class.cpp: In function 'void wxLua_addToTrackedMemoryList= (wxLuaState&, wxTreeItemId*)': All of these are fixed, hopefully. Regards, John Labenski |