|
From: Paul K <pau...@ya...> - 2014-01-07 21:36:43
|
Hi John,
I managed to compile wxlua by explicitly adding --enable-compat28 to
wxwidgets configuration, but would be nice to update for 3.0.
Paul.
On Mon, Jan 6, 2014 at 11:00 AM, Paul K <pau...@ya...> wrote:
> Hi John,
>
> I made a copying error: it's GetBeginPos(), GetEndPos1(), and
> GetEndPos2() methods that have been deprecated in the favor of
> GetBeginIter(), GetEndIter1() and GetEndIter2().
>
> Paul.
>
> On Sun, Jan 5, 2014 at 7:09 PM, Paul K <pau...@ya...> wrote:
>> Hi John,
>>
>> It appears that GetBeginIter(), GetEndIter1() and GetEndIter2() have
>> been deprecated in the favor of GetBeginIter(), GetEndIter1() and
>> GetEndIter2().
>>
>> #if WXWIN_COMPATIBILITY_2_8
>> // use GetBeginIter(), GetEndIter1() and GetEndIter2() instead
>> wxDEPRECATED( inline int GetBeginPos() const );
>> wxDEPRECATED( inline int GetEndPos1() const );
>> wxDEPRECATED( inline int GetEndPos2() const );
>> #endif // WXWIN_COMPATIBILITY_2_8
>>
>> Could you please update these methods as wxwidgets 3.x dropped 2.6
>> compatibility, so wxlua doesn't compile because of these errors:
>>
>> d:/Lua/ZBS-build/build/wxlua/wxLua/modules/wxbind/src/wxhtml_bind.cpp:
>> In function 'int wxLua_wxHtmlTag_GetBeginPos(lua_State*)':
>> d:/Lua/ZBS-build/build/wxlua/wxLua/modules/wxbind/src/wxhtml_bind.cpp:1470:26:
>> error: 'class wxHtmlTag' has no member named 'GetBeginPos'
>> int returns = (self->GetBeginPos());
>> ^
>> d:/Lua/ZBS-build/build/wxlua/wxLua/modules/wxbind/src/wxhtml_bind.cpp:
>> In function 'int wxLua_wxHtmlTag_GetEndPos1(lua_State*)':
>> d:/Lua/ZBS-build/build/wxlua/wxLua/modules/wxbind/src/wxhtml_bind.cpp:1486:26:
>> error: 'class wxHtmlTag' has no member named 'GetEndPos1'
>> int returns = (self->GetEndPos1());
>> ^
>> d:/Lua/ZBS-build/build/wxlua/wxLua/modules/wxbind/src/wxhtml_bind.cpp:
>> In function 'int wxLua_wxHtmlTag_GetEndPos2(lua_State*)':
>> d:/Lua/ZBS-build/build/wxlua/wxLua/modules/wxbind/src/wxhtml_bind.cpp:1502:26:
>> error: 'class wxHtmlTag' has no member named 'GetEndPos2'
>> int returns = (self->GetEndPos2());
>> ^
>> make[2]: *** [modules/luamodule/CMakeFiles/wxLuaModule.dir/__/wxbind/src/wxhtml_bind.cpp.obj]
>> Error 1
>> make[1]: *** [modules/luamodule/CMakeFiles/wxLuaModule.dir/all] Error 2
>> make: *** [all] Error 2
>>
>> Also, I ran into a strange issue with wxPrintf; I could not compile
>> wxlua until I uncommented includes in luamodule.cpp:
>>
>> #include <wx/wxprec.h>
>>
>> #ifndef WX_PRECOMP
>> #include <wx/wx.h>
>> #endif
>>
>> These are the errors I was getting:
>>
>> d:/Lua/ZBS-build/build/wxlua/wxLua/modules/luamodule/luamodule.cpp: In
>> member function 'virtual bool wxLuaModuleApp::OnInit()':
>> d:/Lua/ZBS-build/build/wxlua/wxLua/modules/luamodule/luamodule.cpp:129:90:
>> error: 'wxPrintf' was not declared in this scope
>> wxPrintf(wxT("wxLuaModule - Error loading comctl32.dll,
>> trying to continue...\n"));
>>
>> ^
>> d:/Lua/ZBS-build/build/wxlua/wxLua/modules/luamodule/luamodule.cpp: In
>> member function 'void wxLuaModuleApp::OnLuaPrint(wxLuaEvent&)':
>> d:/Lua/ZBS-build/build/wxlua/wxLua/modules/luamodule/luamodule.cpp:157:52:
>> error: 'wxPrintf' was not declared in this scope
>> wxPrintf(wxT("%s\n"), event.GetString().c_str()); fflush(stdout);
>> ^
>> d:/Lua/ZBS-build/build/wxlua/wxLua/modules/luamodule/luamodule.cpp: In
>> member function 'void wxLuaModuleApp::OnLuaError(wxLuaEvent&)':
>> d:/Lua/ZBS-build/build/wxlua/wxLua/modules/luamodule/luamodule.cpp:165:74:
>> error: 'wxPrintf' was not declared in this scope
>> wxPrintf(wxT("wxLua Runtime Error:\n%s\n"),
>> event.GetString().c_str()); fflush(stdout);
>> ^
>> d:/Lua/ZBS-build/build/wxlua/wxLua/modules/luamodule/luamodule.cpp: In
>> function 'int luaopen_wx(lua_State*)':
>> d:/Lua/ZBS-build/build/wxlua/wxLua/modules/luamodule/luamodule.cpp:197:116:
>> error: 'wxPrintf' was not declared in this scope
>> wxPrintf(wxT("wxLuaModule - Error getting HINSTANCE,
>> DllMain() wasn't called! trying to continue...\n"));
>>
>> ^
>> d:/Lua/ZBS-build/build/wxlua/wxLua/modules/luamodule/luamodule.cpp:204:94:
>> error: 'wxPrintf' was not declared in this scope
>> wxPrintf(wxT("wxLuaModule - Error calling
>> wxEntryStart(argc, argv), aborting.\n"));
>>
>> ^
>> d:/Lua/ZBS-build/build/wxlua/wxLua/modules/luamodule/luamodule.cpp:210:92:
>> error: 'wxPrintf' was not declared in this scope
>> wxPrintf(wxT("wxLuaModule - Error calling
>> wxTheApp->CallOnInit(), aborting.\n"));
>>
>> ^
>> make[2]: *** [modules/luamodule/CMakeFiles/wxLuaModule.dir/luamodule.cpp.obj]
>> Error 1
>> make[1]: *** [modules/luamodule/CMakeFiles/wxLuaModule.dir/all] Error 2
>> make: *** [all] Error 2
>>
>> Paul.
|