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

Reply via email to