Re: [wxlua-users] Building wxLua with wxWidgets-3.0.0

2014-01-07 Thread John Labenski
On Tue, Jan 7, 2014 at 3:27 PM, Les Newell les.new...@fastmail.co.ukwrote:

 Hi,

 I'm trying to build wxLua with wxWidgets-3.0.0, unicode shared release
 on Linux. Using cmake-gui, when I press the 'configure' button I get a
 warning 'Error in configuration process'.  I don't know if it makes a
 difference but I am using a non-standard install prefix.



CMake Warning at build/CMakeFunctions.cmake:271 (message):
File doesn't exist on disk : 'src/lcode.c' from dir
'/home/les/Documents/src/wxlua/build'
 Call Stack (most recent call first):
build/CMakeFunctions.cmake:807 (ADD_FILE_TO_LIST)
modules/CMakeLists.txt:156 (ADD_LIBRARY_FULL)
modules/lua-5.1/CMakeLists.txt:3 (wxLua_Modules_Lua_TARGETS)

 ...



 CMake Warning at bindings/CMakeLists.txt:48 (if):
given arguments:

  GREATER -1

Unknown arguments specified
 Call Stack (most recent call first):
bindings/CMakeLists.txt:92 (FUNCTION_ARG_PARSER)
bindings/CMakeLists.txt:183 (ADD_WXLUABIND_GENERATION)




What Linux distro and what version of CMake do you use? I suspect that it
may be CMake 2.6 which is fairly old and is missing the string(FIND ...)
function.  I have committed a change that may fix the problem, but there
may be more.

CMake builds from source pretty easily on most systems, but you can also
use the CMake binaries here:

http://www.cmake.org/cmake/resources/software.html


Hope this helps,
John
--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET,  PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk___
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users


Re: [wxlua-users] Deprecated: GetBeginPos(), GetEndPos1(), and GetEndPos2()

2014-01-07 Thread Paul K
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 paulclin...@yahoo.com 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 paulclin...@yahoo.com 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.

--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't