From: Francesco M. <f18...@ya...> - 2006-01-20 22:36:07
|
Hi, John Labenski ha scritto: >>>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. >> >>grr; I always forgot about that step. >> >>Could we commit the generated bindings in CVS ? > > > Ok, I'll do that this weekend. good >>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. Last, there are also the <option name="WXLUASETUP_DIR" category="path"> <default-value>$(WXLUASETUP_DIR_DEFAULT)</default-value> <description>The folder where wxluasetup.h is searched</description> </option> <option name="WXLUABINDLIB_DIR" category="path"> <default-value>$(WXLUABINDLIB_DIR_DEFAULT)</default-value> <description>The folder where wxLuaBind library is sent</description> </option> options to connect to the build system... >>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... >>3) now compilation stops on my file: >> >>./wxbind/src/gdi.cpp:2289: error: 'class wxFontMapper' has no member >>named 'SetConfig' >> >>this is probably because I use wxCVS. >>I see in gdi.i: >> >>%class %noclassinfo wxFontMapper >>.... >> void SetConfig(wxConfigBase *config = NULL) >>... >>%endclass >> >>can something like >> > > %class %noclassinfo wxFontMapper > .... > !%wxchkver27 void SetConfig(wxConfigBase *config = NULL) > ... > %endclass > > Again, I'll do a wxWidgets cvs update and see if I get the same errors > and fix them. Ok, great ! >>4) disabling wxFontMapper I now get all the errors in the attached log. >>This is because I'm on a 64bit machine. >>Is wxbind/src/wx_class.cpp something automatically generated ? >>If yes, the wxlua wrapper generator should be changed to output (long) >>casts instead of (int) ones... > > > There was no log attached, could you resend it? sorry ! Francesco |