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
.././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_FILE_OFFSET_BITS=64 -D_LARGE_FILES
-D_LARGEFILE_SOURCE=1 -D__WXDEBUG__ -D__WXGTK__ -pthread -g -O0 -Wall -Wundef
-Wno-ctor-dtor-privacy ./wxbind/src/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_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
./../modules/wxbind/include/wxbind.h:1310:5: warning:
"wxLUA_USE_wxCriticalSection" is not defined
./../modules/wxbind/include/wxbind.h:1909:5: warning:
"wxLUA_USE_wxCriticalSectionLocker" is not defined
./../modules/wxbind/include/wxbind.h:2067:6: warning: "wxUSE_WAVE" is not
defined
./../modules/wxbind/include/wxbind.h:2455:5: warning:
"wxLUA_USE_wxCriticalSection" is not defined
./../modules/wxbind/include/wxbind.h:2736:5: warning:
"wxLUA_USE_wxCriticalSectionLocker" is not defined
./../modules/wxbind/include/wxbind.h:2758:5: warning:
"wxLUA_USE_wxCriticalSection" is not defined
./wxbind/src/wx_class.cpp:99:5: warning: "wxLUA_USE_wxCriticalSectionLocker" is
not defined
./wxbind/src/wx_class.cpp:121:5: warning: "wxLUA_USE_wxCriticalSection" is not
defined
./wxbind/src/wx_class.cpp:482:5: warning: "wxLUA_USE_wxCriticalSectionLocker"
is not defined
./wxbind/src/wx_class.cpp:601:6: warning: "wxUSE_WAVE" is not defined
./wxbind/src/wx_class.cpp:873:5: warning: "wxLUA_USE_wxCriticalSection" is not
defined
./wxbind/src/wx_class.cpp: In function âvoid
wxLua_addToTrackedMemoryList(wxLuaState&, wxAcceleratorEntry*)â:
./wxbind/src/wx_class.cpp:85: error: cast from âwxAcceleratorEntry*â to
âintâ loses precision
./wxbind/src/wx_class.cpp: In function âvoid
wxLua_addToTrackedMemoryList(wxLuaState&, wxFileName*)â:
./wxbind/src/wx_class.cpp:90: error: cast from âwxFileName*â to âintâ
loses precision
./wxbind/src/wx_class.cpp: In function âvoid
wxLua_addToTrackedMemoryList(wxLuaState&, wxArrayString*)â:
./wxbind/src/wx_class.cpp:95: error: cast from âwxArrayString*â to
âintâ loses precision
./wxbind/src/wx_class.cpp: In function âvoid
wxLua_addToTrackedMemoryList(wxLuaState&, wxCalendarDateAttr*)â:
./wxbind/src/wx_class.cpp:105: error: cast from âwxCalendarDateAttr*â to
âintâ loses precision
./wxbind/src/wx_class.cpp: In function âvoid
wxLua_addToTrackedMemoryList(wxLuaState&, wxTreeItemId*)â:
./wxbind/src/wx_class.cpp:110: error: cast from âwxTreeItemId*â to
âintâ loses precision
./wxbind/src/wx_class.cpp: In function âvoid
wxLua_addToTrackedMemoryList(wxLuaState&, wxProcess*)â:
./wxbind/src/wx_class.cpp:113: error: cast from âwxProcess*â to âintâ
loses precision
./wxbind/src/wx_class.cpp: In function âvoid
wxLua_addToTrackedMemoryList(wxLuaState&, wxXmlProperty*)â:
./wxbind/src/wx_class.cpp:116: error: cast from âwxXmlProperty*â to
âintâ loses precision
./wxbind/src/wx_class.cpp: In function âvoid
wxLua_addToTrackedMemoryList(wxLuaState&, wxXmlNode*)â:
./wxbind/src/wx_class.cpp:117: error: cast from âwxXmlNode*â to âintâ
loses precision
./wxbind/src/wx_class.cpp: In function âvoid
wxLua_addToTrackedMemoryList(wxLuaState&, wxRect2DInt*)â:
./wxbind/src/wx_class.cpp:127: error: cast from âwxRect2DInt*â to âintâ
loses precision
./wxbind/src/wx_class.cpp: In function âvoid
wxLua_addToTrackedMemoryList(wxLuaState&, wxPoint2DDouble*)â:
./wxbind/src/wx_class.cpp:128: error: cast from âwxPoint2DDouble*â to
âintâ loses precision
./wxbind/src/wx_class.cpp: In function âvoid
wxLua_addToTrackedMemoryList(wxLuaState&, wxRect2DDouble*)â:
./wxbind/src/wx_class.cpp:129: error: cast from âwxRect2DDouble*â to
âintâ loses precision
./wxbind/src/wx_class.cpp: In function âvoid
wxLua_addToTrackedMemoryList(wxLuaState&, wxPoint2DInt*)â:
./wxbind/src/wx_class.cpp:130: error: cast from âwxPoint2DInt*â to
âintâ loses precision
./wxbind/src/wx_class.cpp: In function âvoid
wxLua_addToTrackedMemoryList(wxLuaState&, wxRegEx*)â:
./wxbind/src/wx_class.cpp:135: error: cast from âwxRegEx*â to âintâ
loses precision
./wxbind/src/wx_class.cpp: In function âvoid
wxLua_addToTrackedMemoryList(wxLuaState&, wxFontEnumerator*)â:
./wxbind/src/wx_class.cpp:140: error: cast from âwxFontEnumerator*â to
âintâ loses precision
./wxbind/src/wx_class.cpp: In function âvoid
wxLua_addToTrackedMemoryList(wxLuaState&, wxArrayInt*)â:
./wxbind/src/wx_class.cpp:145: error: cast from âwxArrayInt*â to âintâ
loses precision
./wxbind/src/wx_class.cpp: In function âvoid
wxLua_addToTrackedMemoryList(wxLuaState&, wxDateSpan*)â:
./wxbind/src/wx_class.cpp:150: error: cast from âwxDateSpan*â to âintâ
loses precision
./wxbind/src/wx_class.cpp: In function âvoid
wxLua_addToTrackedMemoryList(wxLuaState&, wxPoint*)â:
./wxbind/src/wx_class.cpp:155: error: cast from âwxPoint*â to âintâ
loses precision
./wxbind/src/wx_class.cpp: In function âvoid
wxLua_addToTrackedMemoryList(wxLuaState&, wxRect*)â:
./wxbind/src/wx_class.cpp:156: error: cast from âwxRect*â to âintâ
loses precision
./wxbind/src/wx_class.cpp: In function âvoid
wxLua_addToTrackedMemoryList(wxLuaState&, wxSize*)â:
./wxbind/src/wx_class.cpp:157: error: cast from âwxSize*â to âintâ
loses precision
./wxbind/src/wx_class.cpp: In function âvoid
wxLua_addToTrackedMemoryList(wxLuaState&, wxDir*)â:
./wxbind/src/wx_class.cpp:162: error: cast from âwxDir*â to âintâ loses
precision
./wxbind/src/wx_class.cpp: In function âvoid
wxLua_addToTrackedMemoryList(wxLuaState&, wxTimeSpan*)â:
./wxbind/src/wx_class.cpp:167: error: cast from âwxTimeSpan*â to âintâ
loses precision
./wxbind/src/wx_class.cpp: In function âvoid
wxLua_addToTrackedMemoryList(wxLuaState&, wxFile*)â:
./wxbind/src/wx_class.cpp:172: error: cast from âwxFile*â to âintâ
loses precision
./wxbind/src/wx_class.cpp: In function âvoid
wxLua_addToTrackedMemoryList(wxLuaState&, wxDateTime*)â:
./wxbind/src/wx_class.cpp:177: error: cast from âwxDateTime*â to âintâ
loses precision
./wxbind/src/wx_class.cpp: In function âvoid
wxLua_addToTrackedMemoryList(wxLuaState&, wxDropSource*)â:
./wxbind/src/wx_class.cpp:182: error: cast from âwxDropSource*â to
âintâ loses precision
./wxbind/src/wx_class.cpp: In function âvoid
wxLua_addToTrackedMemoryList(wxLuaState&, wxListItemAttr*)â:
./wxbind/src/wx_class.cpp:187: error: cast from âwxListItemAttr*â to
âintâ loses precision
./wxbind/src/wx_class.cpp: In function âvoid
wxLua_addToTrackedMemoryList(wxLuaState&, wxDataObjectComposite*)â:
./wxbind/src/wx_class.cpp:192: error: cast from âwxDataObjectComposite*â to
âintâ loses precision
./wxbind/src/wx_class.cpp: In function âvoid
wxLua_addToTrackedMemoryList(wxLuaState&, wxDataFormat*)â:
./wxbind/src/wx_class.cpp:193: error: cast from âwxDataFormat*â to
âintâ loses precision
./wxbind/src/wx_class.cpp: In function âvoid
wxLua_addToTrackedMemoryList(wxLuaState&, wxCustomDataObject*)â:
./wxbind/src/wx_class.cpp:194: error: cast from âwxCustomDataObject*â to
âintâ loses precision
./wxbind/src/wx_class.cpp: In function âvoid
wxLua_addToTrackedMemoryList(wxLuaState&, wxFileDataObject*)â:
./wxbind/src/wx_class.cpp:195: error: cast from âwxFileDataObject*â to
âintâ loses precision
./wxbind/src/wx_class.cpp: In function âvoid
wxLua_addToTrackedMemoryList(wxLuaState&, wxBitmapDataObject*)â:
./wxbind/src/wx_class.cpp:196: error: cast from âwxBitmapDataObject*â to
âintâ loses precision
./wxbind/src/wx_class.cpp: In function âvoid
wxLua_addToTrackedMemoryList(wxLuaState&, wxTextDataObject*)â:
./wxbind/src/wx_class.cpp:197: error: cast from âwxTextDataObject*â to
âintâ loses precision
./wxbind/src/wx_class.cpp: In function âvoid
wxLua_addToTrackedMemoryList(wxLuaState&, wxDataObjectSimple*)â:
./wxbind/src/wx_class.cpp:198: error: cast from âwxDataObjectSimple*â to
âintâ loses precision
make: *** [wxbind_lib_wx_class.o] Error 1