Re: [wxlua-users] Running a .wx.lua.....
Hi Hernan, luajit http://luajit.org/ is a just in time compiler (JIT) for lua, that means that you get machine code (as in a C or C++ source compiled) from lua which is faster (http://luajit.org/performance_x86.html) than pure Lua virtual machine code. Besides that, luajit gives you FFI (http://luajit.org/ext_ffi.html) which lets you use any module (.dll or .so) that is exporting functions from Lua directly without having to compile a Lua binding for that. Best victor - Original Message - From: Hernan Cano To: Victor Bombi Sent: Thursday, November 19, 2015 12:05 AM Subject: Re: [wxlua-users] Running a .wx.lua. Hi, Victor. Thanks for answering. I am very interested in wxLua. If you can say me something about LuaJIT (that I could understand), I appreciate it. By. 2015-11-18 11:05 GMT-05:00 Victor Bombi: But did you know that using lua53 you loose luajit...? - Original Message - From: Hernan Cano To: undisclosed-recipients Sent: Sunday, November 15, 2015 4:15 AM Subject: [wxlua-users] Running a .wx.lua. Hello, friends. I am initiating in wxLua, that is Lua with Widgets. I can run a .lua with lua51 and lua53. I am interested in Lua53. I can run a .wx.lua with lua51, but not with lua53, but I am interested in lua53. Can you tell me how can I run the wxLua examples in lua v5.3? Thank you. HERNAN CANO M. Systems Analyst - Programmer -- -- ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] Running a .wx.lua.....
But did you know that using lua53 you loose luajit...? - Original Message - From: Hernan Cano To: undisclosed-recipients Sent: Sunday, November 15, 2015 4:15 AM Subject: [wxlua-users] Running a .wx.lua. confirm 2d3d812c0ac3bb262df0416eda96a24521da9475 Hello, friends. I am initiating in wxLua, that is Lua with Widgets. I can run a .lua with lua51 and lua53. I am interested in Lua53. I can run a .wx.lua with lua51, but not with lua53, but I am interested in lua53. Can you tell me how can I run the wxLua examples in lua v5.3? Thank you. HERNAN CANO M. Systems Analyst - Programmer -- -- -- ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users -- ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] wxStyledTextCtrl:AppendText
try it without "\n" (all in a line) - Original Message - From: John Labenski To: wxlua-users@lists.sourceforge.net Sent: Friday, October 23, 2015 5:42 AM Subject: Re: [wxlua-users] wxStyledTextCtrl:AppendText On Sun, Oct 18, 2015 at 2:27 PM, Victor Bombi wrote: Hi, 32*1024 - 7 is the maximum string len that is displayed in wxStyledTextCtrl with AppendText. I have not seen anywhere information related. Is this information in any place? Is there any way to get a longer display length? Maybe there is an invalid utf8 char at that position that truncates it? I added this line to the end of the samples/editor.wx.lua LoadFile function and got all 4 lines and even tried a larger value without a problem. function LoadFile(filePath, editor, file_must_exist) ... editor:AppendText(string.rep("1234567890\n", 4)) return editor end Regards, John -- -- -- ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users -- ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
[wxlua-users] wxStyledTextCtrl:AppendText
Hi, 32*1024 - 7 is the maximum string len that is displayed in wxStyledTextCtrl with AppendText. I have not seen anywhere information related. Is this information in any place? Is there any way to get a longer display length? Best victor -- ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] Problem compiling wxlua svn 247
also, if you added -DLUA_COMPAT_MODULE after running cmake perhaps you need to delete directory and run cmake from scratch again - Original Message - From: "Philipp Überbacher" To: Sent: Monday, May 18, 2015 10:01 AM Subject: Re: [wxlua-users] Problem compiling wxlua svn 247 > On Mon, 18 May 2015 09:25:06 +0200 > Philipp Überbacher wrote: > >> On Sun, 17 May 2015 13:25:49 -0700 >> Paul K wrote: >> >> > Hi Philipp , >> > >> > > wxlbind.cpp:831:51: error: ‘luaL_register’ was not declared in >> > > this scope luaL_register(L, wx2lua(m_nameSpace), wxlualib); >> > >> > You probably also need -DLUA_COMPAT_MODULE, as luaL_register is not >> > part of Lua 5.2 if the compatibility mode is not turned on. >> > >> > Paul. >> >> >> Thanks Paul, >> >> I did add -DLUA_COMPAT_MODULE=TRUE >> >> I got the following warning, which seems to suggest that this option >> does not exist: >> >> CMake Warning: >> Manually-specified variables were not used by the project: >> >> LUA_COMPAT_MODULE >> >> And the build still fails. This option does not show up in ccmake >> either. Did I do something wrong? >> >> Regards, >> Philipp > > Answering my own question: > LUA_COMPAT_MODULE seems to be a compiletime option for Lua, not wxlua. > One that my distribution does not use. > I get the same error when I set all the wxlua options to 5.1, and that > still contains luaL_register, according to documentation > (http://www.lua.org/manual/5.1/manual.html). > > My guess is that cmake still uses whatever Lua version it can find on > the system. While I do have Lua 5.1 and 5.2 installed, the default Lua > version of my distribution is now 5.3. So, cmake probably uses that, > despite me specifying something else. I guess that counts as a bug in > the cmake script. > > I could build it successfully using the Lua 5.1 that ships with wxLua. > (-DwxLua_LUA_LIBRARY_USE_BUILTIN=1) > I just hope that things will work out with that. > > Regards, > Philipp > > -- > One dashboard for servers and applications across Physical-Virtual-Cloud > Widest out-of-the-box monitoring support with 50+ applications > Performance metrics, stats and reports that give you Actionable Insights > Deep dive visibility with transaction tracing using APM Insight. > http://ad.doubleclick.net/ddm/clk/290420510;117567292;y > ___ > wxlua-users mailing list > wxlua-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wxlua-users > -- One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] wxString::ToAscii
Yes this works because we have lua_str="\195\160" UTF8 code for à but I would like to open a plain ASCii file in which à is coded as 0xE0 in my locale and then wx_str = wx.wxString(lua_str, wxFONTENCODING_ISO8859_1) (or something similar) to get it converted to UNICODE - Original Message - From: John Labenski To: wxlua-users@lists.sourceforge.net Sent: Thursday, March 05, 2015 7:05 PM Subject: Re: [wxlua-users] wxString::ToAscii On Thu, Mar 5, 2015 at 12:11 PM, Victor Bombi wrote: >What do you plan to do with this wxString? You won't be able to display it >in the GUI since the high ASCII chars usually just show up as boxes not as >the DOS smiley faces and whatnot. I recommend sanitizing the string for >display by replacing the extended ascii and controls chars with '?' for >example. Just would like to show áéíóú Ahh, ok. Below is a list of the UTF8 chars to use. http://www.utf8-chartable.de/ I ran this in wxLuaEdit and both wxMessageBoxes showed the char à I copied and pasted from the site above. lua_str="à" print (string.len(lua_str)) wx.wxMessageBox(lua_str) wx_str = wx.wxString(lua_str) print (wx_str:Len()) wx.wxMessageBox(wx_str) output: Running lua script 'untitled.lua*' : Thu Mar 5 13:02:55 2015 2 -- note 2 byte utf8 char 1 -- wx knows that this is just a single two-byte utf8 char --- Does this not work for you? Regards, John -- -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ -- ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] wxString::ToAscii
>What do you plan to do with this wxString? You won't be able to display it >in the GUI since the high ASCII chars usually just show up as boxes not as >the DOS smiley faces and whatnot. I recommend sanitizing the string for >display by replacing the extended ascii and controls chars with '?' for >example. Just would like to show áéíóú Best victor -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] wxLua ANSI to WCHAR (was wxString::ToAscii)
Hi Jonh and Paul, From8BitData() is static and To8BitData() mentioned in (http://sourceforge.net/p/wxlua/mailman/message/32175781/) but allowing to specify codepage (wxConvISO8859_1 or whatever) would be enought best victor - Original Message - From: "Victor Bombi" To: Sent: Monday, March 02, 2015 10:58 AM Subject: [wxlua-users] wxLua ANSI to WCHAR (was wxString::ToAscii) > This is lua2wx, it seems that it takes utf8 strings instead or ANSI with > local codepage > WXLUA_USE_WXSTR_CONVCURRENT 1 should be tried? > > > #define WXLUA_USE_WXSTR_CONVUTF81 > #define WXLUA_USE_WXSTR_CONVCURRENT 0 > > // Convert a 8-bit ANSI C Lua String into a wxString > inline WXDLLIMPEXP_WXLUA wxString lua2wx(const char* luastr) > { >if (luastr == NULL) return wxEmptyString; // check for NULL > > #if WXLUA_USE_WXSTR_CONVUTF8 > >return wxString(luastr, wxConvUTF8); > > #elif WXLUA_USE_WXSTR_CONVCURRENT > >return wxString(luastr, *wxConvCurrent); > > #else //!WXLUA_USE_WXSTR_CONVCURRENT >#if wxUSE_UNICODE >wxString str(luastr, wxConvUTF8); >#else >wxString str(wxConvUTF8.cMB2WC(luastr), *wxConvCurrent); >#endif // wxUSE_UNICODE > >if (str.IsEmpty()) >str = wxConvertMB2WX(luastr); // old way that mostly works > >return str; > #endif //WXLUA_USE_WXSTR_CONVCURRENT > } > -- > > As an example compare wxLua with iconv: > It seems wxLua dont take ANSI but UTF-8 > -- > local iconv = require("iconv") > oldprint = print > require"wx" > print=oldprint > local str = "" > for i=0,255 do > str = str .. string.char(i) > end > local cd = iconv.new("utf-8" .. "//TRANSLIT", "iso-8859-1")--IGNORE > --local cd = iconv.new("iso-8859-1" .. "//TRANSLIT", "utf-8") > assert(cd, "Failed to create a converter object.") > > > function showerr(err) > if err == iconv.ERROR_INCOMPLETE then >print("ERROR: Incomplete input.") > elseif err == iconv.ERROR_INVALID then >print("ERROR: Invalid input.") > elseif err == iconv.ERROR_NO_MEMORY then >print("ERROR: Failed to allocate memory.") > elseif err == iconv.ERROR_UNKNOWN then >print("ERROR: There was an unknown error.") > end > end > > > for i=1,#str do > local char = tostring(str:byte(i)) > --ANSI to UTF8 > local conv ,err= cd:iconv(str:sub(i,i)) > showerr(err) > print(str:byte(i) , conv:byte(1,#conv)) > --ANSI to UTF8 in wx > local convwx = wx.wxString(str:sub(i,i)):GetData() > print(str:byte(i) , convwx:byte(1,#convwx)) > --UTF8 to UTF8 in wx > local convwx2 = wx.wxString(conv):GetData() > print(str:byte(i) , convwx2:byte(1,#convwx2)) > end > > > -- > Dive into the World of Parallel Programming The Go Parallel Website, > sponsored > by Intel and developed in partnership with Slashdot Media, is your hub for > all > things parallel software development, from weekly thought leadership blogs > to > news, videos, case studies, tutorials and more. Take a look and join the > conversation now. http://goparallel.sourceforge.net/ > ___ > wxlua-users mailing list > wxlua-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wxlua-users -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
[wxlua-users] wxLua ANSI to WCHAR (was wxString::ToAscii)
This is lua2wx, it seems that it takes utf8 strings instead or ANSI with local codepage WXLUA_USE_WXSTR_CONVCURRENT 1 should be tried? #define WXLUA_USE_WXSTR_CONVUTF81 #define WXLUA_USE_WXSTR_CONVCURRENT 0 // Convert a 8-bit ANSI C Lua String into a wxString inline WXDLLIMPEXP_WXLUA wxString lua2wx(const char* luastr) { if (luastr == NULL) return wxEmptyString; // check for NULL #if WXLUA_USE_WXSTR_CONVUTF8 return wxString(luastr, wxConvUTF8); #elif WXLUA_USE_WXSTR_CONVCURRENT return wxString(luastr, *wxConvCurrent); #else //!WXLUA_USE_WXSTR_CONVCURRENT #if wxUSE_UNICODE wxString str(luastr, wxConvUTF8); #else wxString str(wxConvUTF8.cMB2WC(luastr), *wxConvCurrent); #endif // wxUSE_UNICODE if (str.IsEmpty()) str = wxConvertMB2WX(luastr); // old way that mostly works return str; #endif //WXLUA_USE_WXSTR_CONVCURRENT } -- As an example compare wxLua with iconv: It seems wxLua dont take ANSI but UTF-8 -- local iconv = require("iconv") oldprint = print require"wx" print=oldprint local str = "" for i=0,255 do str = str .. string.char(i) end local cd = iconv.new("utf-8" .. "//TRANSLIT", "iso-8859-1")--IGNORE --local cd = iconv.new("iso-8859-1" .. "//TRANSLIT", "utf-8") assert(cd, "Failed to create a converter object.") function showerr(err) if err == iconv.ERROR_INCOMPLETE then print("ERROR: Incomplete input.") elseif err == iconv.ERROR_INVALID then print("ERROR: Invalid input.") elseif err == iconv.ERROR_NO_MEMORY then print("ERROR: Failed to allocate memory.") elseif err == iconv.ERROR_UNKNOWN then print("ERROR: There was an unknown error.") end end for i=1,#str do local char = tostring(str:byte(i)) --ANSI to UTF8 local conv ,err= cd:iconv(str:sub(i,i)) showerr(err) print(str:byte(i) , conv:byte(1,#conv)) --ANSI to UTF8 in wx local convwx = wx.wxString(str:sub(i,i)):GetData() print(str:byte(i) , convwx:byte(1,#convwx)) --UTF8 to UTF8 in wx local convwx2 = wx.wxString(conv):GetData() print(str:byte(i) , convwx2:byte(1,#convwx2)) end -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] wxString::ToAscii
Where I say UNICODE it should be whatever internal widebyte encoding the system and wxWidgets is using as noted in http://www.joelonsoftware.com/articles/Unicode.html the problem is converting from ANSI to UNICODE wxLua unicode build converts as if the string were UTF8 to UNICODE: return wxString(luastr, wxConvUTF8); it works from code 1 to 127 (ASCii) but fails on 128-255 which are not valid UTF 0 is discarded in lua2wx :if (luastr == NULL) return wxEmptyString; // check for NULL which is a problem for lua strings with embeded ceros using AddTextRaw uses the string as an already UNICODE string so 1-255 are visible althought 128-255 dont show ANSI caracters So would be ideal to having a function for converting from ANSI to UTF or UTF to ANSI (it depends on the ANSI codepage) as in http://docs.wxwidgets.org/trunk/overview_mbconv.html example 1 (or may be ANSI to UNICODE and UNICODE to ANSI) -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] wxString::ToAscii
actually wxMBConv and derived should be implemented because "Lua uses ANSI 8-bit strings" as says the wxLua manual but you can get in them every kind of data : unicode strings or embeded zeros. So instead of needing require"iconv", wxLua would be enought - Original Message ----- From: Victor Bombi To: wxlua-users@lists.sourceforge.net Sent: Sunday, March 01, 2015 8:37 PM Subject: Re: [wxlua-users] wxString::ToAscii the problem is converting from ANSI to UNICODE wxLua unicode build converts as if the string were UTF8 to UNICODE it works from code 1 to 127 but fails on 128-255 which are not valid UTF 0 is discarded in lua2wx if (luastr == NULL) return wxEmptyString; // check for NULL which is a problem for lua strings with embeded ceros using AddTextRaw uses the string as an already UNICODE string so 1-255 are visible althought 128-255 dont show ANSI caracters So would be ideal to having a function for converting from ANSI to UTF or UTF to ANSI (it depends on the ANSI codepage) as in http://docs.wxwidgets.org/trunk/overview_mbconv.html example 1 (or may be ANSI to UNICODE and UNICODE to ANSI) - Original Message - From: Paul K To: wxlua-users@lists.sourceforge.net Sent: Sunday, March 01, 2015 6:50 PM Subject: Re: [wxlua-users] wxString::ToAscii Hi Victor, > editor:AddText(wx.wxString(_text):ToUTF8()) > > only show caracters from 1 to 127 (fails with i=0,255) > > With Notepad plus I can convert it (i=0,255) to UTF save to a file and if If you are trying to convert to/from UTF8, you may want to check this discussion (http://sourceforge.net/p/wxlua/mailman/message/32175781/) and the methods described in it. See if this helps. Paul. -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users -- -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ -- ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] wxString::ToAscii
the problem is converting from ANSI to UNICODE wxLua unicode build converts as if the string were UTF8 to UNICODE it works from code 1 to 127 but fails on 128-255 which are not valid UTF 0 is discarded in lua2wx if (luastr == NULL) return wxEmptyString; // check for NULL which is a problem for lua strings with embeded ceros using AddTextRaw uses the string as an already UNICODE string so 1-255 are visible althought 128-255 dont show ANSI caracters So would be ideal to having a function for converting from ANSI to UTF or UTF to ANSI (it depends on the ANSI codepage) as in http://docs.wxwidgets.org/trunk/overview_mbconv.html example 1 (or may be ANSI to UNICODE and UNICODE to ANSI) - Original Message - From: Paul K To: wxlua-users@lists.sourceforge.net Sent: Sunday, March 01, 2015 6:50 PM Subject: Re: [wxlua-users] wxString::ToAscii Hi Victor, > editor:AddText(wx.wxString(_text):ToUTF8()) > > only show caracters from 1 to 127 (fails with i=0,255) > > With Notepad plus I can convert it (i=0,255) to UTF save to a file and if If you are trying to convert to/from UTF8, you may want to check this discussion (http://sourceforge.net/p/wxlua/mailman/message/32175781/) and the methods described in it. See if this helps. Paul. -- -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ -- ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] wxString::ToAscii
should not be the same? oldprint = print require"wx" print=oldprint local str = "" for i=0,127 do str = str .. string.char(i) end strwx = wx.wxString(str)--:ToUTF8()--:GetData() strwx2 = tostring(strwx) for i=1,#str do io.write(tostring(str:byte(i))) end print("\n") for i=1,#strwx2 do io.write(tostring(strwx2:byte(i))) end - Original Message - From: "Victor Bombi" To: Sent: Sunday, March 01, 2015 11:56 AM Subject: Re: [wxlua-users] wxString::ToAscii > local _text = "" > for i=1,127 do > _text = _text .. string.char(i) .. string.format(" represents %4d\r\n",i) > end > editor:AddText(wx.wxString(_text):ToUTF8()) > > only show caracters from 1 to 127 (fails with i=0,255) > > With Notepad plus I can convert it (i=0,255) to UTF save to a file and if > I > open this file in wxlua it shows all caracters in wxStyledTextCtrl > why I can do the conversion with wx.wxString(_text):ToUTF8() > > best > victor > > - Original Message - > From: "Victor Bombi" > To: > Sent: Saturday, February 28, 2015 1:58 PM > Subject: [wxlua-users] wxString::ToAscii > > >> Hello, >> >> is wxString::ToAscii implemented? >> >> victor >> >> -- >> Dive into the World of Parallel Programming The Go Parallel Website, >> sponsored >> by Intel and developed in partnership with Slashdot Media, is your hub >> for >> all >> things parallel software development, from weekly thought leadership >> blogs >> to >> news, videos, case studies, tutorials and more. Take a look and join the >> conversation now. http://goparallel.sourceforge.net/ >> ___ >> wxlua-users mailing list >> wxlua-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wxlua-users > > > -- > Dive into the World of Parallel Programming The Go Parallel Website, > sponsored > by Intel and developed in partnership with Slashdot Media, is your hub for > all > things parallel software development, from weekly thought leadership blogs > to > news, videos, case studies, tutorials and more. Take a look and join the > conversation now. http://goparallel.sourceforge.net/ > ___ > wxlua-users mailing list > wxlua-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wxlua-users -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] wxString::ToAscii
local _text = "" for i=1,127 do _text = _text .. string.char(i) .. string.format(" represents %4d\r\n",i) end editor:AddText(wx.wxString(_text):ToUTF8()) only show caracters from 1 to 127 (fails with i=0,255) With Notepad plus I can convert it (i=0,255) to UTF save to a file and if I open this file in wxlua it shows all caracters in wxStyledTextCtrl why I can do the conversion with wx.wxString(_text):ToUTF8() best victor - Original Message - From: "Victor Bombi" To: Sent: Saturday, February 28, 2015 1:58 PM Subject: [wxlua-users] wxString::ToAscii > Hello, > > is wxString::ToAscii implemented? > > victor > > -- > Dive into the World of Parallel Programming The Go Parallel Website, > sponsored > by Intel and developed in partnership with Slashdot Media, is your hub for > all > things parallel software development, from weekly thought leadership blogs > to > news, videos, case studies, tutorials and more. Take a look and join the > conversation now. http://goparallel.sourceforge.net/ > ___ > wxlua-users mailing list > wxlua-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wxlua-users -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
[wxlua-users] wxString::ToAscii
Hello, is wxString::ToAscii implemented? victor -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] wxMenu:AppendSubMenu
Dont mind. ;-) I have seen in ZerobraneStudio how this can be done with Append - Original Message - From: "Victor Bombi" To: Sent: Wednesday, February 25, 2015 8:43 PM Subject: [wxlua-users] wxMenu:AppendSubMenu > Hello, > > Is there any special reason for not having wxMenu:AppendSubMenu? > > Thankyou > victor > > -- > Dive into the World of Parallel Programming The Go Parallel Website, > sponsored > by Intel and developed in partnership with Slashdot Media, is your hub for > all > things parallel software development, from weekly thought leadership blogs > to > news, videos, case studies, tutorials and more. Take a look and join the > conversation now. http://goparallel.sourceforge.net/ > ___ > wxlua-users mailing list > wxlua-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wxlua-users -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
[wxlua-users] wxMenu:AppendSubMenu
Hello, Is there any special reason for not having wxMenu:AppendSubMenu? Thankyou victor -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] using wx in two lanes
that is what I thought when i saw: // the one and only global application object static wxAppConsole *ms_appInstance; but also had seen some topics about trying to make VST-plugins GUI with wxWidgets, as this plugins are one dll loaded multiple times by the vst-host I guess this is an imposible task also. what a pitty!! thanks victor - Original Message - From: John Labenski To: wxlua-users@lists.sourceforge.net Sent: Monday, October 27, 2014 9:44 PM Subject: Re: [wxlua-users] using wx in two lanes On Mon, Oct 27, 2014 at 8:03 AM, Victor Bombi wrote: Hello, this is related to something we talked before in the list. In order to require"wx" from two diferent lanes in luaLanes I modified luamodule.cpp: instead of static wxLuaState s_wxlState; I have wxLuaState* s_wxlState = new wxLuaState; inside luaopen_wx so that we get a different wxLuaState in each lane. In each lane a wxFrame is created and wxGetApp():MainLoop() is called at the end of the function used as the lane body. The first lane that calls wxGetApp():MainLoop() succeds but the second one fails because IsMainLoopRunning is true (as it is refering the same instance) and this lane ends. The main problem I see is that there is only one wxApp created by wxWidgets so it is not possible to have two independent message loops. (and maybe two independent wxApps) Is there something that can be done to create two different wxApp one in each lane? I'm pretty sure that having two separate wxApps in the same application is not supported by wxWidgets. Doing anything with a GUI widget from different threads at the same time is definitely not supported by any underlying GUI framework that wxWidgets uses; MSW, GTK, OSX, etc. The standard practice is to create the GUI in one and only one thread (doesn't have to be main, but typically is) and then use wxEvtHandler::QueueEvent(wx.wxCommandEvent(...)) to post messages from any other thread to the GUI thread. Basically, you connect your app to an arbitrary event type, wxEVT_COMMAND_BUTTON_CLICKED for example, with a unique ID and pass your data through the wxCommandEvent's Get/SetString/Int() etc. You may want to use lanes to do this message passing between threads if you like or if it's possible. The bottom line, I really don't think creating two wxApps in a single process is ever going to work even if the wxLua side was made thread-safe. It would be incredibly fragile. Regards, John -- -- -- ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users -- ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
[wxlua-users] using wx in two lanes
Hello, this is related to something we talked before in the list. In order to require"wx" from two diferent lanes in luaLanes I modified luamodule.cpp: instead of static wxLuaState s_wxlState; I have wxLuaState* s_wxlState = new wxLuaState; inside luaopen_wx so that we get a different wxLuaState in each lane. In each lane a wxFrame is created and wxGetApp():MainLoop() is called at the end of the function used as the lane body. The first lane that calls wxGetApp():MainLoop() succeds but the second one fails because IsMainLoopRunning is true (as it is refering the same instance) and this lane ends. The main problem I see is that there is only one wxApp created by wxWidgets so it is not possible to have two independent message loops. (and maybe two independent wxApps) Is there something that can be done to create two different wxApp one in each lane? Best victor bombi -- ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] wxlua auidemo debug error
I tested auidemo C++ sample without errors, but there are less panes than in lua sample and my error appeared when trying to make wider the bottom right pane. - Original Message - From: John Labenski To: wxlua-users@lists.sourceforge.net Sent: Monday, October 06, 2014 6:18 AM Subject: Re: [wxlua-users] wxlua auidemo debug error On Fri, Oct 3, 2014 at 1:15 PM, Victor Bombi wrote: Running auidemo from wxLua build from svn on mac osx 10.9 with wxWidgets3.0.1 , if you try to make wider the bottom right pane: ../src/common/wincmn.cpp(3271): assert "!wxMouseCapture::IsInCaptureStack(this)" failed in CaptureMouse(): Recapturing the mouse in the same window? Unfortunately, this is from within wxWidgets itself. Can you build the auidemo C++ sample and run that and does it show the same error? To build the C++ auidemo app simply go the the samples/aui dir in the wxWidgets configure build dir you created and type 'make.' I haven't check recently, but the wxLua sample was directly copied from the C++ sample and the code for the two is probably still very similar. Regards, John Call stack: [00] wxEvtHandler::ProcessEventLocally(wxEvent&) [01] wxEvtHandler::ProcessEvent(wxEvent&) [02] wxEvtHandler::SafelyProcessEvent(wxEvent&) [03] wxWidgetCocoaImpl::DoHandleMouseEvent(NSEvent*) [04] -[NSWindow(wxNSWindowSupport) WX_filterSendEvent:] [05] -[wxNSWindow sendEvent:] [06] -[NSApplication sendEvent:] [07] -[wxNSApplication sendEvent:] [08] -[NSApplication run] [09] wxGUIEventLoop::OSXDoRun() [10] wxCFEventLoop::DoRun() [11] wxEventLoopBase::Run() [12] wxAppConsoleBase::MainLoop() [13] wxApp::OnRun() [14] wxEntry(int&, wchar_t**) [15] mainwxlua.cpp:11 [16] start [17] 0x0003 -- Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users -- -- Slashdot TV. Videos for Nerds. Stuff that Matters. http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk -- ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users -- Slashdot TV. Videos for Nerds. Stuff that Matters. http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] build against luajit
> ./build-macosx.sh lua wxwidgets wxlua > ./build-macosx.sh lua jit Thanks, I will try that. -- Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] build against luajit
>I have tried build-macosx.sh from ZeroBrane (luarocks dont have wxlua, > luaDist not woking for me, so I liked to see that) > first ./build-macosx.sh lua jit > then ./build-macosx.sh wxlua and getting the same error about not finding > _luaopen_bit32 > forgot to say that in the middle ./build-macosx.sh wxwidgets -- Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] build against luajit
I have tried build-macosx.sh from ZeroBrane (luarocks dont have wxlua, luaDist not woking for me, so I liked to see that) first ./build-macosx.sh lua jit then ./build-macosx.sh wxlua and getting the same error about not finding _luaopen_bit32 - Original Message - From: "Paul K" To: Sent: Friday, October 03, 2014 6:39 PM Subject: Re: [wxlua-users] build against luajit > Victor, > >> I know I can build against wxlua provided lua5.1 and then use module from >> luajit but I got a crash doing that and that is why I try to build >> against luajit > > I only build against lua5.1, but only use LuaJIT and haven't seen any > issues on Windows/OSX/Linux during the last 1.5 years I have this > configuration in ZeroBrane Studio. > > Maybe you need to check what led to the crash. LuaJIT is stricter in > some aspects than Lua5.1; maybe you can turn jit off to see if it > still crashes. > > Paul. > > -- > Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer > Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports > Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper > Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer > http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk > ___ > wxlua-users mailing list > wxlua-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wxlua-users -- Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
[wxlua-users] wxlua auidemo debug error
Running auidemo from wxLua build from svn on mac osx 10.9 with wxWidgets3.0.1 , if you try to make wider the bottom right pane: ../src/common/wincmn.cpp(3271): assert "!wxMouseCapture::IsInCaptureStack(this)" failed in CaptureMouse(): Recapturing the mouse in the same window? Call stack: [00] wxEvtHandler::ProcessEventLocally(wxEvent&) [01] wxEvtHandler::ProcessEvent(wxEvent&) [02] wxEvtHandler::SafelyProcessEvent(wxEvent&) [03] wxWidgetCocoaImpl::DoHandleMouseEvent(NSEvent*) [04] -[NSWindow(wxNSWindowSupport) WX_filterSendEvent:] [05] -[wxNSWindow sendEvent:] [06] -[NSApplication sendEvent:] [07] -[wxNSApplication sendEvent:] [08] -[NSApplication run] [09] wxGUIEventLoop::OSXDoRun() [10] wxCFEventLoop::DoRun() [11] wxEventLoopBase::Run() [12] wxAppConsoleBase::MainLoop() [13] wxApp::OnRun() [14] wxEntry(int&, wchar_t**) [15] mainwxlua.cpp:11 [16] start [17] 0x0003 -- Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] build against luajit
I see that you provided it in lbitlib.c and with BUILD_VERBOSELY=TRUE I can see it is included in linking, so I dont know what else to look for. I know I can build against wxlua provided lua5.1 and then use module from luajit but I got a crash doing that and that is why I try to build against luajit > Hello, > > When trying to build against a external lua library (luajit in mac osx > 10.9) > it complains about not finding luaopen_bit32 > Isn't this a confusion with lua5.2? > > Best > victor > -- Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
[wxlua-users] build against luajit
Hello, When trying to build against a external lua library (luajit in mac osx 10.9) it complains about not finding luaopen_bit32 Isn't this a confusion with lua5.2? Best victor -- Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] fail to build wxlua on mac osx 10.9
I have been able to compile changing the wxWidgets configure phase this was my previous one #!/bin/sh ../configure --prefix="$(pwd)" --with-libjpeg --with-libtiff --with-libpng --with-zlib --with-opengl --with-cocoa --without-sdl --enable-aui --disable-sdltest --enable-unicode --enable-display --enable-xrc --enable-graphics_ctx --enable-monolithic --with-macosx-version-min=10.6 --enable-stl --enable-std_containers --enable-std_iostreams --enable-std_string --enable-std_string_conv_in_wxstring also tried from wxlua install.html: ../configure --prefix=$PWD \ --with-osx-cocoa \ --enable-unicode \ --disable-shared \ --enable-optimise=no \ --enable-mem_tracing=no \ --enable-profile=no \ --with-dmalloc=no \ \ --enable-debug \ --enable-debug_flag \ --enable-debug_info \ --enable-debug_gdb \ --enable-debug_cntxt \ \ --with-opengl \ --enable-sound \ --enable-mediactrl \ --enable-graphics_ctx \ --enable-controls \ --enable-dataviewctrl 2>&1 | tee configure-osx2ud.log the good one: #!/bin/sh ../configure --with-opengl --enable-unicode --enable-shared --enable-static --enable-dynamic --with-osx_cocoa --with-macosx-version-min=10.9 --with-macosx-sdk=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk there are several differences but I am not sure what is the relevant ones what do you think? Best victor - Original Message ----- From: "Victor Bombi" To: Sent: Thursday, October 02, 2014 6:41 PM Subject: Re: [wxlua-users] fail to build wxlua on mac osx 10.9 > > > >>What compiler is this one? GCC? > > in last Xcode gcc is only a symlink to clang > >>This means that wxWidgets doesn't have the body of this function linked >>in. >>Strange, what does running 'nm -a wx-XXX.dylib | grep >>GetHTMLBackgroundColour' on the wxWidgets >libs say? I'm picking this >>function since it's non-templated, but you can try it on any of them. > > I could find the reference in the dylib: > > Morundi:lib Morundi$ nm -a > /Users/Morundi/Downloads/wxWidgets-3.0.1/build-cocoa/lib/libwx_osx_cocoau_html-3.0.dylib > | grep GetHTMLBackgroundColour > 0004bbd0 T __ZNK12wxHtmlWindow23GetHTMLBackgroundColourEv > 0006f130 T __ZNK13wxHtmlListBox23GetHTMLBackgroundColourEv > 0004bbf0 T __ZThn888_NK12wxHtmlWindow23GetHTMLBackgroundColourEv > 0006f150 T __ZThn896_NK13wxHtmlListBox23GetHTMLBackgroundColourEv > > also have tried with BUILD_VERBOSELY=TRUE > and it seem linking to the correct libraries: -lwx_osx_cocoau_html-3.0 > > > Morundi:wxluabuildclang Morundi$ make wxLuaModule > /Applications/CMake.app/Contents/bin/cmake > -H/Users/Morundi/Downloads/wxLua-2.8.12.3-src > -B/Users/Morundi/Downloads/wxluabuildclang --check-build-system > CMakeFiles/Makefile.cmake 0 > /Applications/Xcode.app/Contents/Developer/usr/bin/make -f > CMakeFiles/Makefile2 wxLuaModule > /Applications/CMake.app/Contents/bin/cmake > -H/Users/Morundi/Downloads/wxLua-2.8.12.3-src > -B/Users/Morundi/Downloads/wxluabuildclang --check-build-system > CMakeFiles/Makefile.cmake 0 > /Applications/CMake.app/Contents/bin/cmake -E cmake_progress_start > /Users/Morundi/Downloads/wxluabuildclang/CMakeFiles 44 > /Applications/Xcode.app/Contents/Developer/usr/bin/make -f > CMakeFiles/Makefile2 modules/luamodule/CMakeFiles/wxLuaModule.dir/all > /Applications/Xcode.app/Contents/Developer/usr/bin/make -f > modules/lua-5.1/CMakeFiles/LuaLib.dir/build.make > modules/lua-5.1/CMakeFiles/LuaLib.dir/depend > cd /Users/Morundi/Downloads/wxluabuildclang && > /Applications/CMake.app/Contents/bin/cmake -E cmake_depends "Unix > Makefiles" > /Users/Morundi/Downloads/wxLua-2.8.12.3-src > /Users/Morundi/Downloads/wxLua-2.8.12.3-src/modules/lua-5.1 > /Users/Morundi/Downloads/wxluabuildclang > /Users/Morundi/Downloads/wxluabuildclang/modules/lua-5.1 > /Users/Morundi/Downloads/wxluabuildclang/modules/lua-5.1/CMakeFiles/LuaLib.dir/DependInfo.cmake > --color= > /Applications/Xcode.app/Contents/Developer/usr/bin/make -f > modules/lua-5.1/CMakeFiles/LuaLib.dir/build.make > modules/lua-5.1/CMakeFiles/LuaLib.dir/build > make[3]: Nothing to be done for > `modules/lua-5.1/CMakeFiles/LuaLib.dir/build'. > /Applications/CMake.app/Contents/bin/cmake -E cmake_progress_report > /Users/Morundi/Downloads/wxluabuildclang/CMakeFiles 1 2 3 4 5 6 7 8 9 10 > 11 > 12 13 14 15 > [ 34%] B
Re: [wxlua-users] fail to build wxlua on mac osx 10.9
>What compiler is this one? GCC? in last Xcode gcc is only a symlink to clang >This means that wxWidgets doesn't have the body of this function linked in. >Strange, what does running 'nm -a wx-XXX.dylib | grep >GetHTMLBackgroundColour' on the wxWidgets >libs say? I'm picking this >function since it's non-templated, but you can try it on any of them. I could find the reference in the dylib: Morundi:lib Morundi$ nm -a /Users/Morundi/Downloads/wxWidgets-3.0.1/build-cocoa/lib/libwx_osx_cocoau_html-3.0.dylib | grep GetHTMLBackgroundColour 0004bbd0 T __ZNK12wxHtmlWindow23GetHTMLBackgroundColourEv 0006f130 T __ZNK13wxHtmlListBox23GetHTMLBackgroundColourEv 0004bbf0 T __ZThn888_NK12wxHtmlWindow23GetHTMLBackgroundColourEv 0006f150 T __ZThn896_NK13wxHtmlListBox23GetHTMLBackgroundColourEv also have tried with BUILD_VERBOSELY=TRUE and it seem linking to the correct libraries: -lwx_osx_cocoau_html-3.0 Morundi:wxluabuildclang Morundi$ make wxLuaModule /Applications/CMake.app/Contents/bin/cmake -H/Users/Morundi/Downloads/wxLua-2.8.12.3-src -B/Users/Morundi/Downloads/wxluabuildclang --check-build-system CMakeFiles/Makefile.cmake 0 /Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/Makefile2 wxLuaModule /Applications/CMake.app/Contents/bin/cmake -H/Users/Morundi/Downloads/wxLua-2.8.12.3-src -B/Users/Morundi/Downloads/wxluabuildclang --check-build-system CMakeFiles/Makefile.cmake 0 /Applications/CMake.app/Contents/bin/cmake -E cmake_progress_start /Users/Morundi/Downloads/wxluabuildclang/CMakeFiles 44 /Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/Makefile2 modules/luamodule/CMakeFiles/wxLuaModule.dir/all /Applications/Xcode.app/Contents/Developer/usr/bin/make -f modules/lua-5.1/CMakeFiles/LuaLib.dir/build.make modules/lua-5.1/CMakeFiles/LuaLib.dir/depend cd /Users/Morundi/Downloads/wxluabuildclang && /Applications/CMake.app/Contents/bin/cmake -E cmake_depends "Unix Makefiles" /Users/Morundi/Downloads/wxLua-2.8.12.3-src /Users/Morundi/Downloads/wxLua-2.8.12.3-src/modules/lua-5.1 /Users/Morundi/Downloads/wxluabuildclang /Users/Morundi/Downloads/wxluabuildclang/modules/lua-5.1 /Users/Morundi/Downloads/wxluabuildclang/modules/lua-5.1/CMakeFiles/LuaLib.dir/DependInfo.cmake --color= /Applications/Xcode.app/Contents/Developer/usr/bin/make -f modules/lua-5.1/CMakeFiles/LuaLib.dir/build.make modules/lua-5.1/CMakeFiles/LuaLib.dir/build make[3]: Nothing to be done for `modules/lua-5.1/CMakeFiles/LuaLib.dir/build'. /Applications/CMake.app/Contents/bin/cmake -E cmake_progress_report /Users/Morundi/Downloads/wxluabuildclang/CMakeFiles 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 [ 34%] Built target LuaLib /Applications/Xcode.app/Contents/Developer/usr/bin/make -f modules/luamodule/CMakeFiles/wxLuaModule.dir/build.make modules/luamodule/CMakeFiles/wxLuaModule.dir/depend cd /Users/Morundi/Downloads/wxluabuildclang && /Applications/CMake.app/Contents/bin/cmake -E cmake_depends "Unix Makefiles" /Users/Morundi/Downloads/wxLua-2.8.12.3-src /Users/Morundi/Downloads/wxLua-2.8.12.3-src/modules/luamodule /Users/Morundi/Downloads/wxluabuildclang /Users/Morundi/Downloads/wxluabuildclang/modules/luamodule /Users/Morundi/Downloads/wxluabuildclang/modules/luamodule/CMakeFiles/wxLuaModule.dir/DependInfo.cmake --color= /Applications/Xcode.app/Contents/Developer/usr/bin/make -f modules/luamodule/CMakeFiles/wxLuaModule.dir/build.make modules/luamodule/CMakeFiles/wxLuaModule.dir/build Linking CXX shared library ../../lib/Debug/libwx.dylib cd /Users/Morundi/Downloads/wxluabuildclang/modules/luamodule && /Applications/CMake.app/Contents/bin/cmake -E cmake_link_script CMakeFiles/wxLuaModule.dir/link.txt --verbose=1 /usr/bin/clang++ -DHAVE_TYPE_TRAITS -I/Users/Morundi/Downloads/wxWidgets-3.0.1/include -g -dynamiclib -Wl,-headerpad_max_install_names -o ../../lib/Debug/libwx.dylib -install_name /Users/Morundi/Downloads/wxluabuildclang/lib/Debug/libwx.dylib CMakeFiles/wxLuaModule.dir/luamodule.cpp.o CMakeFiles/wxLuaModule.dir/__/wxbind/src/wxgl_bind.cpp.o CMakeFiles/wxLuaModule.dir/__/wxbind/src/wxstc_bind.cpp.o CMakeFiles/wxLuaModule.dir/__/wxbind/src/wxxrc_bind.cpp.o CMakeFiles/wxLuaModule.dir/__/wxbind/src/wxrichtext_bind.cpp.o CMakeFiles/wxLuaModule.dir/__/wxbind/src/wxhtml_bind.cpp.o CMakeFiles/wxLuaModule.dir/__/wxbind/src/wxhtml_wxlhtml.cpp.o CMakeFiles/wxLuaModule.dir/__/wxbind/src/wxmedia_bind.cpp.o CMakeFiles/wxLuaModule.dir/__/wxbind/src/wxaui_bind.cpp.o CMakeFiles/wxLuaModule.dir/__/wxbind/src/wxadv_bind.cpp.o CMakeFiles/wxLuaModule.dir/__/wxbind/src/wxadv_wxladv.cpp.o CMakeFiles/wxLuaModule.dir/__/wxbind/src/wxcore_appframe.cpp.o CMakeFiles/wxLuaModule.dir/__/wxbind/src/wxcore_bind.cpp.o CMakeFiles/wxLuaModule.dir/__/wxbind/src/wxcore_clipdrag.cpp.o CMakeFiles/wxLuaModule.dir/__/wxbind/src/wxcore_controls.cpp.o CMakeFiles/wxLuaModule.dir/__/wxbind/src/wxcore_core.cpp.o CMa
Re: [wxlua-users] fail to build wxlua on mac osx 10.9
more investigations it seems that clang++ and g++ are the same. what makes the difference between both results obtained is that one had the c++11 flag and the other not. So it seems that wxLua is not c++11 compliant as stated in previous building error messages (you will see a modification proposed but may be there are more) So now the problem is in the linking phase Linking CXX shared library ../../lib/Debug/libwx.dylib Undefined symbols for architecture x86_64: "non-virtual thunk to wxHtmlListBox::RefreshAll()", referenced from: I have tested that the html component is build in wxWidgets by compiling the html samples what now? Best victor-- Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] fail to build wxlua on mac osx 10.9
defining HAVE_TYPE_TRAITS solves this issue but then whith clang++ Linking CXX shared library ../../lib/Debug/libwx.dylib Undefined symbols for architecture x86_64: "non-virtual thunk to wxHtmlListBox::RefreshAll()", referenced from: vtable for wxWindowWithItems in wxhtml_bind.cpp.o "non-virtual thunk to wxHtmlListBox::RefreshRow(unsigned long)", referenced from: vtable for wxWindowWithItems in wxhtml_bind.cpp.o "non-virtual thunk to wxHtmlListBox::RefreshRows(unsigned long, unsigned long)", referenced from: vtable for wxWindowWithItems in wxhtml_bind.cpp.o "non-virtual thunk to wxVListBox::OnGetRowHeight(unsigned long) const", referenced from: vtable for wxWindowWithItems in wxhtml_bind.cpp.o "non-virtual thunk to wxComboCtrlBase::DoSetValue(wxString const&, int)", referenced from: vtable for wxWindowWithItems in wxadv_bind.cpp.o "non-virtual thunk to wxComboCtrlBase::SetEditable(bool)", referenced from: vtable for wxWindowWithItems in wxadv_bind.cpp.o "non-virtual thunk to wxComboCtrlBase::DoSetMargins(wxPoint const&)", referenced from: vtable for wxWindowWithItems in wxadv_bind.cpp.o "non-virtual thunk to wxComboCtrlBase::SetSelection(long, long)", referenced from: vtable for wxWindowWithItems in wxadv_bind.cpp.o "non-virtual thunk to wxComboCtrlBase::SetInsertionPoint(long)", referenced from: vtable for wxWindowWithItems in wxadv_bind.cpp.o "non-virtual thunk to wxComboCtrlBase::Cut()", referenced from: vtable for wxWindowWithItems in wxadv_bind.cpp.o "non-virtual thunk to wxComboCtrlBase::Copy()", referenced from: vtable for wxWindowWithItems in wxadv_bind.cpp.o "non-virtual thunk to wxComboCtrlBase::Redo()", referenced from: vtable for wxWindowWithItems in wxadv_bind.cpp.o "non-virtual thunk to wxComboCtrlBase::Undo()", referenced from: vtable for wxWindowWithItems in wxadv_bind.cpp.o "non-virtual thunk to wxComboCtrlBase::Paste()", referenced from: vtable for wxWindowWithItems in wxadv_bind.cpp.o "non-virtual thunk to wxComboCtrlBase::Remove(long, long)", referenced from: vtable for wxWindowWithItems in wxadv_bind.cpp.o "non-virtual thunk to wxComboCtrlBase::Replace(long, long, wxString const&)", referenced from: vtable for wxWindowWithItems in wxadv_bind.cpp.o "non-virtual thunk to wxComboCtrlBase::SetHint(wxString const&)", referenced from: vtable for wxWindowWithItems in wxadv_bind.cpp.o "non-virtual thunk to wxComboCtrlBase::WriteText(wxString const&)", referenced from: vtable for wxWindowWithItems in wxadv_bind.cpp.o "non-virtual thunk to wxComboCtrlBase::DoGetValue() const", referenced from: vtable for wxWindowWithItems in wxadv_bind.cpp.o "non-virtual thunk to wxComboCtrlBase::IsEditable() const", referenced from: vtable for wxWindowWithItems in wxadv_bind.cpp.o "non-virtual thunk to wxComboCtrlBase::DoGetMargins() const", referenced from: vtable for wxWindowWithItems in wxadv_bind.cpp.o "non-virtual thunk to wxComboCtrlBase::GetSelection(long*, long*) const", referenced from: vtable for wxWindowWithItems in wxadv_bind.cpp.o "non-virtual thunk to wxComboCtrlBase::GetLastPosition() const", referenced from: vtable for wxWindowWithItems in wxadv_bind.cpp.o "non-virtual thunk to wxComboCtrlBase::GetInsertionPoint() const", referenced from: vtable for wxWindowWithItems in wxadv_bind.cpp.o "non-virtual thunk to wxComboCtrlBase::CanRedo() const", referenced from: vtable for wxWindowWithItems in wxadv_bind.cpp.o "non-virtual thunk to wxComboCtrlBase::CanUndo() const", referenced from: vtable for wxWindowWithItems in wxadv_bind.cpp.o "non-virtual thunk to wxComboCtrlBase::GetHint() const", referenced from: vtable for wxWindowWithItems in wxadv_bind.cpp.o "non-virtual thunk to wxGenericListCtrl::GetSizeAvailableForScrollTarget(wxSize const&)", referenced from: vtable for wxLuaStackListCtrl in wxlstack.cpp.o "non-virtual thunk to wxHtmlWindow::GetHTMLWindow()", referenced from: vtable for wxLuaHtmlWindow in wxhtml_wxlhtml.cpp.o "non-virtual thunk to wxHtmlWindow::OnHTMLLinkClicked(wxHtmlLinkInfo const&)", referenced from: vtable for wxLuaHtmlWindow in wxhtml_wxlhtml.cpp.o "non-virtual thunk to wxHtmlWindow::SetHTMLStatusText(wxString const&)", referenced from: vtable for wxLuaHtmlWindow in wxhtml_wxlhtml.cpp.o "non-virtual thunk to wxHtmlWindow::SetHTMLWindowTitle(wxString const&)", referenced from: vtable for wxLuaHtmlWindow in wxhtml_wxlhtml.cpp.o "non-virtual thunk to wxHtmlWindow::SetHTMLBackgroundImage(wxBitmap const&)", referenced from: vtable for wxLuaHtmlWindow in wxhtml_wxlhtml.cpp.o "non-virtual thunk to wxHtmlWindow::SetHTMLBackgroundColour(wxColour const&)", referenced from: vtable for wxLuaHtmlWindow in wxhtml_wxlhtml.cpp.o "non-virtual thunk to wxHtmlWindow::GetHTMLCursor(wxHtmlWindowInterface::HTMLCursor) const", referenced from: vtable for wxLuaHtmlWindow in wxhtml_wxlhtml.cpp.o "non-virtual thunk to wxHtmlWindow::OnHTMLOpeningURL(wxHtmlURLType, wxString const&, wxString*) const", referenced from: vtable for wxLuaHtmlWindow in wxhtml_wxlhtml.cpp.o "non-virtual
[wxlua-users] fail to build wxlua on mac osx 10.9
Hello, I have compiled wxWidgets 3.0.1 on mac osx 10.9 (also widgets sample) when compiling wxLuaModule: Morundi:wxluabuild Morundi$ make wxLuaModule Scanning dependencies of target wxLuaModule [ 2%] Building CXX object modules/luamodule/CMakeFiles/wxLuaModule.dir/luamodule.cpp.o In file included from /Users/Morundi/Downloads/wxLua-2.8.12.3-src/modules/luamodule/luamodule.cpp:21: In file included from /Users/Morundi/Downloads/wxWidgets-3.0.1/include/wx/app.h:19: In file included from /Users/Morundi/Downloads/wxWidgets-3.0.1/include/wx/event.h:16: In file included from /Users/Morundi/Downloads/wxWidgets-3.0.1/include/wx/object.h:19: In file included from /Users/Morundi/Downloads/wxWidgets-3.0.1/include/wx/memory.h:15: In file included from /Users/Morundi/Downloads/wxWidgets-3.0.1/include/wx/string.h:46: /Users/Morundi/Downloads/wxWidgets-3.0.1/include/wx/strvararg.h:30:18: fatal error: 'tr1/type_traits' file not found #include Any thoughts? Best victor bombi -- Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] character 194
Have tried your fixUTF8, works perfect, thank you. I thought that if I couldnt use setcodepage as expected in wxSTC I would be able to use wxString:ToUTF8() but it is not working for me. - Original Message - From: "Victor Bombi" To: Sent: Friday, December 27, 2013 9:37 PM Subject: Re: [wxlua-users] character 194 > Hi Paul, > > I thought that in unicode build you could use wxSTC setting codepage to > whatever you want :-( > > http://www.scintilla.org/ScintillaDoc.html#SCI_SETCODEPAGE > > in which I (miss)understood that setting it to 0 would allow me to work > with > ansi > > victor > > - Original Message - > From: "Paul K" > To: > Sent: Friday, December 27, 2013 7:00 PM > Subject: Re: [wxlua-users] character 194 > > >> Hi Victor, >> >>> Also related to this is the fact that if I open a file in editor.wx.lua >>> with >>> ansi encoding and a symbol with byte 0xE0 for example nothing is shown >>> in >>> editor >> >> If you are running a unicode build (I'm not sure how it works in ansi >> builds), then based on my experience wxSTC will not show the content >> with invalid UTF8 characters (and your sequence is definitely invalid >> UTF8). I have a check in my IDE after loading some content into a >> wxSTC control. If #editor:GetText() == 0, I try to "fix" UTF8 content >> using this logic: >> http://notebook.kulchenko.com/programming/fixing-malformed-utf8-in-lua >> >> See if something similar works for you. >> >> Paul >> >> On Fri, Dec 27, 2013 at 7:20 AM, Victor Bombi >> wrote: >>> Also related to this is the fact that if I open a file in editor.wx.lua >>> with >>> ansi encoding and a symbol with byte 0xE0 for example nothing is shown >>> in >>> editor >>> >>> - Original Message - >>> From: "Victor Bombi" >>> To: >>> Sent: Friday, December 27, 2013 3:12 PM >>> Subject: Re: [wxlua-users] character 194 >>> >>> >>>> of course it is not a problem with 194 only >>>> >>>> for i=0,255 do >>>> SendtoLog(i,string.char(i)) >>>> end >>>> >>>> only outputs from 0 to 127 >>>> >>>> - Original Message - >>>> From: "Victor Bombi" >>>> To: >>>> Sent: Thursday, December 26, 2013 5:39 PM >>>> Subject: [wxlua-users] character 194 >>>> >>>> >>>>> Hello, >>>>> >>>>> trying to post this lua error message to wxStyledTextCtrl: >>>>> >>>>> loadfile error:C:\LUA\lua2sc\samples\charactererror.lua:4: unexpected >>>>> symbol >>>>> near '┬' >>>>> >>>>> with AppendText I dont get any output. >>>>> The problem seems to be the character with ASC code 194 >>>>> >>>>> my test is something like >>>>> >>>>> errst = >>>>> {108,111,97,100,102,105,108,101,32,101,114,114,111,114,58,67,58,92,76,85,65,92,108,117,97, >>>>> 50,115,99,92,115,97,109,112,108,101,115,92,99,104,97,114,97,99,116,101,114,101,114,114,111,114,46, >>>>> 108,117,97,58,52,58,32,117,110,101,120,112,101,99,116,101,100,32,115,121,109,98,111,108,32,110,101,97,114,32,39,194,39} >>>>> SendtoLog(string.char(unpack(errst))) >>>>> >>>>> May be it is related to character_set or encoding or whatever else >>>>> >>>>> Any help woould be appreciated >>>>> victor >>>>> >>>>> >>>>> -- >>>>> 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=84349831&iu=/4140/ostg.clktrk >>>>> ___ >>>>> wxlua-users mailing list >>>>> wxlua-users@lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/wxlua-users >>>>&g
Re: [wxlua-users] character 194
Hi Paul, I thought that in unicode build you could use wxSTC setting codepage to whatever you want :-( http://www.scintilla.org/ScintillaDoc.html#SCI_SETCODEPAGE in which I (miss)understood that setting it to 0 would allow me to work with ansi victor - Original Message - From: "Paul K" To: Sent: Friday, December 27, 2013 7:00 PM Subject: Re: [wxlua-users] character 194 > Hi Victor, > >> Also related to this is the fact that if I open a file in editor.wx.lua >> with >> ansi encoding and a symbol with byte 0xE0 for example nothing is shown in >> editor > > If you are running a unicode build (I'm not sure how it works in ansi > builds), then based on my experience wxSTC will not show the content > with invalid UTF8 characters (and your sequence is definitely invalid > UTF8). I have a check in my IDE after loading some content into a > wxSTC control. If #editor:GetText() == 0, I try to "fix" UTF8 content > using this logic: > http://notebook.kulchenko.com/programming/fixing-malformed-utf8-in-lua > > See if something similar works for you. > > Paul > > On Fri, Dec 27, 2013 at 7:20 AM, Victor Bombi > wrote: >> Also related to this is the fact that if I open a file in editor.wx.lua >> with >> ansi encoding and a symbol with byte 0xE0 for example nothing is shown in >> editor >> >> - Original Message - >> From: "Victor Bombi" >> To: >> Sent: Friday, December 27, 2013 3:12 PM >> Subject: Re: [wxlua-users] character 194 >> >> >>> of course it is not a problem with 194 only >>> >>> for i=0,255 do >>> SendtoLog(i,string.char(i)) >>> end >>> >>> only outputs from 0 to 127 >>> >>> - Original Message - >>> From: "Victor Bombi" >>> To: >>> Sent: Thursday, December 26, 2013 5:39 PM >>> Subject: [wxlua-users] character 194 >>> >>> >>>> Hello, >>>> >>>> trying to post this lua error message to wxStyledTextCtrl: >>>> >>>> loadfile error:C:\LUA\lua2sc\samples\charactererror.lua:4: unexpected >>>> symbol >>>> near '┬' >>>> >>>> with AppendText I dont get any output. >>>> The problem seems to be the character with ASC code 194 >>>> >>>> my test is something like >>>> >>>> errst = >>>> {108,111,97,100,102,105,108,101,32,101,114,114,111,114,58,67,58,92,76,85,65,92,108,117,97, >>>> 50,115,99,92,115,97,109,112,108,101,115,92,99,104,97,114,97,99,116,101,114,101,114,114,111,114,46, >>>> 108,117,97,58,52,58,32,117,110,101,120,112,101,99,116,101,100,32,115,121,109,98,111,108,32,110,101,97,114,32,39,194,39} >>>> SendtoLog(string.char(unpack(errst))) >>>> >>>> May be it is related to character_set or encoding or whatever else >>>> >>>> Any help woould be appreciated >>>> victor >>>> >>>> >>>> -- >>>> 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=84349831&iu=/4140/ostg.clktrk >>>> ___ >>>> wxlua-users mailing list >>>> wxlua-users@lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/wxlua-users >>>> >>> >>> >>> -- >>> 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=84349831&iu=/4140/ostg.clktrk >>> ___ >>> wxlua-users mailing list >>> wxlua-users@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/wxlua-users >>> >&
Re: [wxlua-users] character 194
Also related to this is the fact that if I open a file in editor.wx.lua with ansi encoding and a symbol with byte 0xE0 for example nothing is shown in editor - Original Message - From: "Victor Bombi" To: Sent: Friday, December 27, 2013 3:12 PM Subject: Re: [wxlua-users] character 194 > of course it is not a problem with 194 only > > for i=0,255 do > SendtoLog(i,string.char(i)) > end > > only outputs from 0 to 127 > > ----- Original Message - > From: "Victor Bombi" > To: > Sent: Thursday, December 26, 2013 5:39 PM > Subject: [wxlua-users] character 194 > > >> Hello, >> >> trying to post this lua error message to wxStyledTextCtrl: >> >> loadfile error:C:\LUA\lua2sc\samples\charactererror.lua:4: unexpected >> symbol >> near '┬' >> >> with AppendText I dont get any output. >> The problem seems to be the character with ASC code 194 >> >> my test is something like >> >> errst = >> {108,111,97,100,102,105,108,101,32,101,114,114,111,114,58,67,58,92,76,85,65,92,108,117,97, >> 50,115,99,92,115,97,109,112,108,101,115,92,99,104,97,114,97,99,116,101,114,101,114,114,111,114,46, >> 108,117,97,58,52,58,32,117,110,101,120,112,101,99,116,101,100,32,115,121,109,98,111,108,32,110,101,97,114,32,39,194,39} >> SendtoLog(string.char(unpack(errst))) >> >> May be it is related to character_set or encoding or whatever else >> >> Any help woould be appreciated >> victor >> >> >> -- >> 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=84349831&iu=/4140/ostg.clktrk >> ___ >> wxlua-users mailing list >> wxlua-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wxlua-users >> > > > -- > 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=84349831&iu=/4140/ostg.clktrk > ___ > wxlua-users mailing list > wxlua-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wxlua-users > -- 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=84349831&iu=/4140/ostg.clktrk ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] character 194
of course it is not a problem with 194 only for i=0,255 do SendtoLog(i,string.char(i)) end only outputs from 0 to 127 - Original Message - From: "Victor Bombi" To: Sent: Thursday, December 26, 2013 5:39 PM Subject: [wxlua-users] character 194 > Hello, > > trying to post this lua error message to wxStyledTextCtrl: > > loadfile error:C:\LUA\lua2sc\samples\charactererror.lua:4: unexpected > symbol > near '┬' > > with AppendText I dont get any output. > The problem seems to be the character with ASC code 194 > > my test is something like > > errst = > {108,111,97,100,102,105,108,101,32,101,114,114,111,114,58,67,58,92,76,85,65,92,108,117,97, > 50,115,99,92,115,97,109,112,108,101,115,92,99,104,97,114,97,99,116,101,114,101,114,114,111,114,46, > 108,117,97,58,52,58,32,117,110,101,120,112,101,99,116,101,100,32,115,121,109,98,111,108,32,110,101,97,114,32,39,194,39} > SendtoLog(string.char(unpack(errst))) > > May be it is related to character_set or encoding or whatever else > > Any help woould be appreciated > victor > > > -- > 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=84349831&iu=/4140/ostg.clktrk > ___ > wxlua-users mailing list > wxlua-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wxlua-users > -- 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=84349831&iu=/4140/ostg.clktrk ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
[wxlua-users] character 194
Hello, trying to post this lua error message to wxStyledTextCtrl: loadfile error:C:\LUA\lua2sc\samples\charactererror.lua:4: unexpected symbol near '┬' with AppendText I dont get any output. The problem seems to be the character with ASC code 194 my test is something like errst = {108,111,97,100,102,105,108,101,32,101,114,114,111,114,58,67,58,92,76,85,65,92,108,117,97, 50,115,99,92,115,97,109,112,108,101,115,92,99,104,97,114,97,99,116,101,114,101,114,114,111,114,46, 108,117,97,58,52,58,32,117,110,101,120,112,101,99,116,101,100,32,115,121,109,98,111,108,32,110,101,97,114,32,39,194,39} SendtoLog(string.char(unpack(errst))) May be it is related to character_set or encoding or whatever else Any help woould be appreciated victor -- 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=84349831&iu=/4140/ostg.clktrk ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
[wxlua-users] EVT_MOUSE_EVENTS
Hello Is there in wxlua a way to Connect afunction to all mouse events? I get nil for w.wxEVT_MOUSE_EVENTS Best victor -- Sponsored by Intel(R) XDK Develop, test and display web and hybrid apps with a single code base. Download it for free now! http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] four tabs one in each cornerwithwxAuiNotebook:Split()
Hello John >It looks like wxTabFrame is not exposed though any header file. It is defined in auibook.cpp:2799 (2.8.12) (should it be a header file?) victor -- DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access Free app hosting. Or install the open source package on any LAMP server. Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native! http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] four tabs one in each corner withwxAuiNotebook:Split()
Sorry, I dont understand!! :-( Could you please explain it with code? With my last code I get: 1 2 4 3 3 4 instead of 1 2 3 4 I am trying to improve loadNotebook and saveNotebook (for saving notebook perspectives in Zerobrane studio) to save 2D layouts instead of of just 1D. I looked at void wxAuiNotebook::Split in auibook.cpp but it uses classes I cant reach (as wxTabFrame) and function FindTab which depends on wxTabFrame also. Thank you very much. victor - Original Message - From: John Labenski To: wxlua-users@lists.sourceforge.net Sent: Tuesday, October 22, 2013 4:28 AM Subject: Re: [wxlua-users] four tabs one in each corner withwxAuiNotebook:Split() On Mon, Oct 21, 2013 at 2:01 PM, Victor Bombi wrote: Hello: How could I use wxAuiNotebook:Split() to get four tabs one in each corner. I think you may need to insert a page into the beginning to get that last split. Add three pages, split into three parts. That part is straightforward, but to get that last split you probably need to insert a page before/after the single half-page then split that to get four quarter-pages. Regards, John -- -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk -- ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
[wxlua-users] four tabs one in each corner with wxAuiNotebook:Split()
Hello: How could I use wxAuiNotebook:Split() to get four tabs one in each corner. With the following code I cant get exactly that splits = {false,wx.wxRIGHT,wx.wxBOTTOM,wx.wxRIGHT} Log = {} for i=1,4 do Log[i] = CreateLog() notebookLogs:AddPage(Log[i], "Log"..i) if splits[i] then notebookLogs:Split(notebookLogs:GetPageIndex(Log[i]),splits[i]) end end Best Regards victor bombi -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] wxGLCanvas
solved replacing render: function render() local dc = wx.wxPaintDC(canvas) canvas:SetCurrent(context) gl.ClearColor(0, 0, 0, 0) gl.Clear(gl.COLOR_BUFFER_BIT) gl.Begin('TRIANGLES') gl.Vertex( 0, 0.75, 0) gl.Vertex(-0.75, -0.75, 0) gl.Vertex( 0.75, -0.75, 0) gl.End() canvas:SwapBuffers() dc:delete() end - Original Message - From: "Victor Bombi" To: Sent: Friday, August 16, 2013 3:29 PM Subject: [wxlua-users] wxGLCanvas > Hello, > > this is the sample that comes with luagl for using it with wxlua. >>From the docs it seems that should be called: > wx.wxGLCanvas(frame, wx.wxID_ANY, {},wx.wxDefaultPosition, > wx.wxDefaultSize, > wx.wxEXPAND) > instead of: > wx.wxGLCanvas(frame, wx.wxID_ANY,wx.wxDefaultPosition, wx.wxDefaultSize, > wx.wxEXPAND) > to get a canvas without a glcontext > > But in both cases it happens the same > application is not responsive you can only do ctrl-C and crash > > Is there another example anywhere? > Somethig should be changed? > > best > victor bombi > > > - > -- Name: glcanvas.wx.lua > -- Purpose: wxLua and LuaGL sample > -- Author: Tin Benjamin Matuka > -- Created: 31/01/2011 > -- Copyright: (c) 2011 Tin Benjamin Matuka. All rights reserved. > -- Licence: Public Domain > -- Comment: I only left in comments for code that deals with making > -- wxLua and LuaGL interact > - > package.cpath = > package.cpath..";./?.dll;./?.so;../lib/?.so;../lib/vc_dll/?.dll;../lib/bcc_dll/?.dll;../lib/mingw_dll/?.dll;/usr/lib/lua/5.1/?.so;" > require("wx") > require("luagl") > function render() > context:SetCurrent(canvas) > gl.ClearColor(0, 0, 0, 0) > gl.Clear(gl.COLOR_BUFFER_BIT) > gl.Begin('TRIANGLES') > gl.Vertex( 0, 0.75, 0) > gl.Vertex(-0.75, -0.75, 0) > gl.Vertex( 0.75, -0.75, 0) > gl.End() > canvas:SwapBuffers() > end > frame = nil > frame = wx.wxFrame( wx.NULL, wx.wxID_ANY, "wxLua + LuaGL Demo", > wx.wxDefaultPosition, wx.wxSize(450, 450), wx.wxDEFAULT_FRAME_STYLE ) > local fileMenu = wx.wxMenu() > fileMenu:Append(wx.wxID_EXIT, "E&xit", "Quit the program") > local helpMenu = wx.wxMenu() > helpMenu:Append(wx.wxID_ABOUT, "&About", "About the wxLua + LuaGL Demo") > local menuBar = wx.wxMenuBar() > menuBar:Append(fileMenu, "&File") > menuBar:Append(helpMenu, "&Help") > frame:SetMenuBar(menuBar) > frame:CreateStatusBar(1) > frame:SetStatusText("Welcome to wxLua + LuaGL Demo.") > frame:Connect(wx.wxID_EXIT, wx.wxEVT_COMMAND_MENU_SELECTED, > function (event) frame:Close(true) end ) > frame:Connect(wx.wxID_ABOUT, wx.wxEVT_COMMAND_MENU_SELECTED, > function (event) > wx.wxMessageBox('wxLua + LuaGL Demo.\n'.. > 'Written by Tin Benjamin Matuka\n'.. > 'www.sh1fty.com', > "About wxLua + LuaGL Demo", > wx.wxOK + wx.wxICON_INFORMATION, > frame) > end ) > -- This is where the GLCanvas is created > canvas = wx.wxGLCanvas(frame, wx.wxID_ANY, wx.wxDefaultPosition, > wx.wxDefaultSize, wx.wxEXPAND) > -- A GLContext is created > context = wx.wxGLContext(canvas) > -- Connect the PAINT event to the render function > canvas:Connect(wx.wxEVT_PAINT, render) > -- Refresh the canvas so that it gets properly resized and rendered. > canvas:Refresh() > frame:Show(true) > wx.wxGetApp():MainLoop() > > > -- > Get 100% visibility into Java/.NET code with AppDynamics Lite! > It's a free troubleshooting tool designed for production. > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk > ___ > wxlua-users mailing list > wxlua-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wxlua-users -- Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed for production. Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
[wxlua-users] wxGLCanvas
Hello, this is the sample that comes with luagl for using it with wxlua. >From the docs it seems that should be called: wx.wxGLCanvas(frame, wx.wxID_ANY, {},wx.wxDefaultPosition, wx.wxDefaultSize, wx.wxEXPAND) instead of: wx.wxGLCanvas(frame, wx.wxID_ANY,wx.wxDefaultPosition, wx.wxDefaultSize, wx.wxEXPAND) to get a canvas without a glcontext But in both cases it happens the same application is not responsive you can only do ctrl-C and crash Is there another example anywhere? Somethig should be changed? best victor bombi - -- Name: glcanvas.wx.lua -- Purpose: wxLua and LuaGL sample -- Author: Tin Benjamin Matuka -- Created: 31/01/2011 -- Copyright: (c) 2011 Tin Benjamin Matuka. All rights reserved. -- Licence: Public Domain -- Comment: I only left in comments for code that deals with making -- wxLua and LuaGL interact - package.cpath = package.cpath..";./?.dll;./?.so;../lib/?.so;../lib/vc_dll/?.dll;../lib/bcc_dll/?.dll;../lib/mingw_dll/?.dll;/usr/lib/lua/5.1/?.so;" require("wx") require("luagl") function render() context:SetCurrent(canvas) gl.ClearColor(0, 0, 0, 0) gl.Clear(gl.COLOR_BUFFER_BIT) gl.Begin('TRIANGLES') gl.Vertex( 0, 0.75, 0) gl.Vertex(-0.75, -0.75, 0) gl.Vertex( 0.75, -0.75, 0) gl.End() canvas:SwapBuffers() end frame = nil frame = wx.wxFrame( wx.NULL, wx.wxID_ANY, "wxLua + LuaGL Demo", wx.wxDefaultPosition, wx.wxSize(450, 450), wx.wxDEFAULT_FRAME_STYLE ) local fileMenu = wx.wxMenu() fileMenu:Append(wx.wxID_EXIT, "E&xit", "Quit the program") local helpMenu = wx.wxMenu() helpMenu:Append(wx.wxID_ABOUT, "&About", "About the wxLua + LuaGL Demo") local menuBar = wx.wxMenuBar() menuBar:Append(fileMenu, "&File") menuBar:Append(helpMenu, "&Help") frame:SetMenuBar(menuBar) frame:CreateStatusBar(1) frame:SetStatusText("Welcome to wxLua + LuaGL Demo.") frame:Connect(wx.wxID_EXIT, wx.wxEVT_COMMAND_MENU_SELECTED, function (event) frame:Close(true) end ) frame:Connect(wx.wxID_ABOUT, wx.wxEVT_COMMAND_MENU_SELECTED, function (event) wx.wxMessageBox('wxLua + LuaGL Demo.\n'.. 'Written by Tin Benjamin Matuka\n'.. 'www.sh1fty.com', "About wxLua + LuaGL Demo", wx.wxOK + wx.wxICON_INFORMATION, frame) end ) -- This is where the GLCanvas is created canvas = wx.wxGLCanvas(frame, wx.wxID_ANY, wx.wxDefaultPosition, wx.wxDefaultSize, wx.wxEXPAND) -- A GLContext is created context = wx.wxGLContext(canvas) -- Connect the PAINT event to the render function canvas:Connect(wx.wxEVT_PAINT, render) -- Refresh the canvas so that it gets properly resized and rendered. canvas:Refresh() frame:Show(true) wx.wxGetApp():MainLoop() -- Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed for production. Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] compliling for 5.2
Hello, I told Benoit Germain and he changed Lanes in order to work with LUA_COMPAT_ALL Everything is fine now Best Victor Bombi -- Minimize network downtime and maximize team effectiveness. Reduce network management and security costs.Learn how to hire the most talented Cisco Certified professionals. Visit the Employer Resources Portal http://www.cisco.com/web/learning/employer_resources/index.html ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] compliling for 5.2
> Can you explain why these other modules cannot work with > LUA_COMPAT_ALL enabled? Are they providing their own duplicate > versions of Lua's functions and you get linker errors? > > Also, can you explain line 25 here? > https://github.com/diegonehab/luasocket/blob/unstable/src/luasocket.h > That true luasocket seems to need LUA_COMPAT_ALL This is the explanation for Lua Lanes: Lua 5.2 introduced a hash randomizer seed which causes table iteration to yield a different key order on different VMs even when the tables are populated the exact same way. When Lua is built with compatibility options (such as LUA_COMPAT_ALL), this causes several base libraries to register functions under multiple names. This, with the randomizer, can cause the first encountered name of a function to be different on different VMs, which breaks function transfer. This means that Lua 5.2 must be built WITHOUT compatibility options to be able to use Lanes. Even under Lua 5.1, this may cause trouble (even if this would be much less frequent). Unfortunately, we get bitten by string.gfind/string.gmatch when Lua 5.1 is built with LUA_COMPAT_GFIND (which is the case of LuaBinaries), so for the time being, Lanes fails only for Lua 5.2 as the randomizer is the real show breaker here. For me Lanes is the most essential module in Lua. Victor Bombi -- Minimize network downtime and maximize team effectiveness. Reduce network management and security costs.Learn how to hire the most talented Cisco Certified professionals. Visit the Employer Resources Portal http://www.cisco.com/web/learning/employer_resources/index.html ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] compliling for 5.2
perhaps luaL_requiref is the answer? >I recompiled lua52 with LUA_COMPAT_ALL and managed to compile wx.lua > The problem I have is that I use other lua modules also: Lanes, Luasocket > ... > Lanes cant be used with LUA_COMPAT_ALL (only pure 5.1 or 5.2) so I wont be > able > to use 5.2 in my project. > Looking into the future I thing that wxlua should get rid of > LUA_COMPAT_ALL > to be compatible > with other modules. > > Best > victor -- Own the Future-Intel® Level Up Game Demo Contest 2013 Rise to greatness in Intel's independent game demo contest. Compete for recognition, cash, and the chance to get your game on Steam. $5K grand prize plus 10 genre and skill prizes. Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] compliling for 5.2
I recompiled lua52 with LUA_COMPAT_ALL and managed to compile wx.lua The problem I have is that I use other lua modules also: Lanes, Luasocket ... Lanes cant be used with LUA_COMPAT_ALL (only pure 5.1 or 5.2) so I wont be able to use 5.2 in my project. Looking into the future I thing that wxlua should get rid of LUA_COMPAT_ALL to be compatible with other modules. Best victor -- Own the Future-Intel® Level Up Game Demo Contest 2013 Rise to greatness in Intel's independent game demo contest. Compete for recognition, cash, and the chance to get your game on Steam. $5K grand prize plus 10 genre and skill prizes. Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] compliling for 5.2
after commenting all inicializations. Compile is ok but Linking CXX shared library ..\..\bin\Release\wx.dll cd /d C:\LUA\wxlua-sources\buildzzz2\modules\luamodule && "C:\Program Files\CMake 2.8\bin\cmake.exe" -E cmake_link_script CMa keFiles\wxLuaModule.dir\link.txt --verbose=1 "C:\Program Files\CMake 2.8\bin\cmake.exe" -E remove -f CMakeFiles\wxLuaModule.dir/objects.a C:\MinGWORI\bin\ar.exe cr CMakeFiles\wxLuaModule.dir/objects.a @CMakeFiles\wxLuaModule.dir\objects1.rsp C:\MinGWORI\bin\g++.exe -shared -o ..\..\bin\Release\wx.dll -Wl,--out-implib,..\..\lib\Release\libwx.dll.a -Wl,--major-im age-version,0,--minor-image-version,0 -Wl,--whole-archive CMakeFiles\wxLuaModule.dir/objects.a -Wl,--no-whole-archive C:\LUA\ lua-5.2.2\build2\liblua52.dll.a C:\wxWidgets-2.8.12\lib\gcc_lib\libwxmsw28u_xrc.a C:\wxWidgets-2.8.12\lib\gcc_lib\libwxbase28 u_xml.a C:\wxWidgets-2.8.12\lib\gcc_lib\libwxbase28u_net.a C:\wxWidgets-2.8.12\lib\gcc_lib\libwxmsw28u_media.a C:\wxWidgets-2 .8.12\lib\gcc_lib\libwxmsw28u_richtext.a C:\wxWidgets-2.8.12\lib\gcc_lib\libwxmsw28u_aui.a C:\wxWidgets-2.8.12\lib\gcc_lib\li bwxmsw28u_stc.a C:\wxWidgets-2.8.12\lib\gcc_lib\libwxmsw28u_html.a C:\wxWidgets-2.8.12\lib\gcc_lib\libwxmsw28u_adv.a C:\wxWid gets-2.8.12\lib\gcc_lib\libwxmsw28u_core.a C:\wxWidgets-2.8.12\lib\gcc_lib\libwxbase28u.a C:\wxWidgets-2.8.12\lib\gcc_lib\lib wxpng.a C:\wxWidgets-2.8.12\lib\gcc_lib\libwxtiff.a C:\wxWidgets-2.8.12\lib\gcc_lib\libwxjpeg.a C:\wxWidgets-2.8.12\lib\gcc_l ib\libwxzlib.a C:\wxWidgets-2.8.12\lib\gcc_lib\libwxregexu.a C:\wxWidgets-2.8.12\lib\gcc_lib\libwxexpat.a -lwinmm -lcomctl32 -lrpcrt4 -lwsock32 -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32 Creating library file: ..\..\lib\Release\libwx.dll.a CMakeFiles\wxLuaModule.dir/objects.a(wxlbind.cpp.obj):wxlbind.cpp:(.text+0x1f2): undefined reference to `_luaL_openlib' CMakeFiles\wxLuaModule.dir/objects.a(wxlstate.cpp.obj):wxlstate.cpp:(.text+0x74): undefined reference to `_luaL_openlib' CMakeFiles\wxLuaModule.dir/objects.a(wxlstate.cpp.obj):wxlstate.cpp:(.text+0xa109): undefined reference to `_luaL_openlib' collect2.exe: error: ld returned 1 exit status I think that luaL_openlib was deprecated for luaL_register in 5.1 and for luaL_setfuncs in 5.2 Best victor -- Own the Future-Intel(R) Level Up Game Demo Contest 2013 Rise to greatness in Intel's independent game demo contest. Compete for recognition, cash, and the chance to get your game on Steam. $5K grand prize plus 10 genre and skill prizes. Submit your demo by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2 ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] compliling for 5.2
> I see that on that line I am trying to properly initialize a lua_Debug > struct, probably the struct has changed since 5.1? You can rem that > line out for now... As far as I know it is not unsigned char. After removing inicialization I get C:\LUA\wxlua-sources\wxlua\wxLua\modules\wxlua\debug\wxldebug.cpp: In member function 'int wxLuaDebugData::EnumerateStack(lua _State*)': C:\LUA\wxlua-sources\wxlua\wxLua\modules\wxlua\debug\wxldebug.cpp:177:26: error: braces around scalar initializer for type 'u nsigned char' C:\LUA\wxlua-sources\wxlua\wxLua\modules\wxlua\debug\wxldebug.cpp: In member function 'int wxLuaDebugData::EnumerateStackEntr y(lua_State*, int, wxArrayInt&)': C:\LUA\wxlua-sources\wxlua\wxLua\modules\wxlua\debug\wxldebug.cpp:218:26: error: braces around scalar initializer for type 'u nsigned char' -- Own the Future-Intel(R) Level Up Game Demo Contest 2013 Rise to greatness in Intel's independent game demo contest. Compete for recognition, cash, and the chance to get your game on Steam. $5K grand prize plus 10 genre and skill prizes. Submit your demo by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2 ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] svn request password
> Is this for wxstedit? The external in wxLua/modules? Try deleting the > wxLua/modules/wxstedit dir and update again. > Yes, it is related to wxstedit. I did a new svn checkout and it does not work victor -- Own the Future-Intel(R) Level Up Game Demo Contest 2013 Rise to greatness in Intel's independent game demo contest. Compete for recognition, cash, and the chance to get your game on Steam. $5K grand prize plus 10 genre and skill prizes. Submit your demo by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2 ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
[wxlua-users] svn request password
Hello, I cant get the lattest svn : a password and user is requested Best victor bombi-- Own the Future-Intel(R) Level Up Game Demo Contest 2013 Rise to greatness in Intel's independent game demo contest. Compete for recognition, cash, and the chance to get your game on Steam. $5K grand prize plus 10 genre and skill prizes. Submit your demo by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
[wxlua-users] compliling for 5.2
Hello, My CMAKE command line is: "C:\Program Files\CMake 2.8\bin\cmake" -G"MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release -DwxWidgets_ROOT_DIR=C:/wxWidgets-2.8.12/ -DwxWidgets_LIB_DIR=C:/wxWidgets-2.8.12/lib/gcc_lib -DwxWidgets_CONFIGURATION=mswu -D wxWidgets_VERSION=2.8.x -DBUILD_VERBOSELY=TRUE -DBUILD_SHARED_LIBS=FALSE -DwxLua_LUA_LIBRARY_VERSION=5.2 -DwxLua_LUA_LIBRARY_USE_BUILTIN=FALSE -DwxLua_LUA_LIBRARY=C:/LUA/lua-5.2.2/build2/liblua52.dll.a -DwxLua_LUA_INCLUDE_DIR=C:/LUA/lua-5.2.2/src ../wxlua/wxlua It worked when compiling for 5.1, but with 5.2 I get: [ 20%] Building CXX object modules/wxlua/CMakeFiles/wxLuaLib.dir/wxlconsole.cpp.obj cd /d C:\LUA\wxlua-sources\buildzzz2\modules\wxlua && C:\MinGWORI\bin\g++.exe -DUNICODE -D_UNICODE -DwxUSE_UNICODE=1 -DwxLU A_USEBINDING_WXGL=0 -DwxLUA_USEBINDING_WXSTC=1 -DwxLUA_USEBINDING_WXXRC=1 -DwxLUA_USEBINDING_WXRICHTEXT=1 -DwxLUA_USEBINDING_ WXHTML=1 -DwxLUA_USEBINDING_WXMEDIA=1 -DwxLUA_USEBINDING_WXAUI=1 -DwxLUA_USEBINDING_WXADV=1 -DwxLUA_USEBINDING_WXCORE=1 -DwxL UA_USEBINDING_WXXML=1 -DwxLUA_USEBINDING_WXNET=1 -DwxLUA_USEBINDING_WXBASE=1 -DwxLUA_USEBINDING_WXGL=0 -DwxLUA_USEBINDING_WXS TC=1 -DwxLUA_USEBINDING_WXXRC=1 -DwxLUA_USEBINDING_WXRICHTEXT=1 -DwxLUA_USEBINDING_WXHTML=1 -DwxLUA_USEBINDING_WXMEDIA=1 -Dwx LUA_USEBINDING_WXAUI=1 -DwxLUA_USEBINDING_WXADV=1 -DwxLUA_USEBINDING_WXCORE=1 -DwxLUA_USEBINDING_WXXML=1 -DwxLUA_USEBINDING_W XNET=1 -DwxLUA_USEBINDING_WXBASE=1 -DwxLUA_USEBINDING_WXGL=0 -DwxLUA_USEBINDING_WXSTC=1 -DwxLUA_USEBINDING_WXXRC=1 -DwxLUA_US EBINDING_WXRICHTEXT=1 -DwxLUA_USEBINDING_WXHTML=1 -DwxLUA_USEBINDING_WXMEDIA=1 -DwxLUA_USEBINDING_WXAUI=1 -DwxLUA_USEBINDING_ WXADV=1 -DwxLUA_USEBINDING_WXCORE=1 -DwxLUA_USEBINDING_WXXML=1 -DwxLUA_USEBINDING_WXNET=1 -DwxLUA_USEBINDING_WXBASE=1 -Wall - O3 -DNDEBUG @CMakeFiles/wxLuaLib.dir/includes_CXX.rsp -o CMakeFiles\wxLuaLib.dir\wxlconsole.cpp.obj -c C:\LUA\wxlua-sources \wxlua\wxLua\modules\wxlua\wxlconsole.cpp C:\LUA\wxlua-sources\wxlua\wxLua\modules\wxlua\wxlconsole.cpp: In member function 'void wxLuaConsole::DisplayStack(const wxLu aState&)': C:\LUA\wxlua-sources\wxlua\wxLua\modules\wxlua\wxlconsole.cpp:233:26: error: braces around scalar initializer for type 'unsig ned char' In file included from C:\LUA\wxlua-sources\wxlua\wxLua\modules\wxlua\wxlconsole.cpp:21:0: C:/LUA/wxlua-sources/wxlua/wxLua/art/wxlua.xpm: At global scope: C:/LUA/wxlua-sources/wxlua/wxLua/art/wxlua.xpm:2:21: warning: 'LUA_xpm' defined but not used [-Wunused-variable] mingw32-make[2]: *** [modules/wxlua/CMakeFiles/wxLuaLib.dir/wxlconsole.cpp.obj] Error 1 mingw32-make[2]: Leaving directory `C:/LUA/wxlua-sources/buildzzz2' mingw32-make[1]: *** [modules/wxlua/CMakeFiles/wxLuaLib.dir/all] Error 2 mingw32-make[1]: Leaving directory `C:/LUA/wxlua-sources/buildzzz2' mingw32-make: *** [all] Error 2 Best Regards victor bombi -- Own the Future-Intel(R) Level Up Game Demo Contest 2013 Rise to greatness in Intel's independent game demo contest. Compete for recognition, cash, and the chance to get your game on Steam. $5K grand prize plus 10 genre and skill prizes. Submit your demo by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
[wxlua-users] strange editor.wx.lua behaviour 2.9.4
Hello, this only happens with wx.lua linked against wxwidgets 2.9.4 (not 2.8.12) to reproduce strange behaviour 1- open editor.wx.lua 2- create a text of several lines surrounded by --[[ and ]]-- 3- change betwen --[[ and ---[[ strange behaviour: lines only get colour updated when you position the cursor on that line. I also had other strange behaviour about updating deleted lines but I dont have reproducing sequence. Best Victor Bombi-- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnmore_123012___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] sizers and wxCollapsiblePane
> > This was tough to find, but by remming out parts I was able to find > where the code that caused the crash came from. > Thanks a lot. I think I have understood basic things about sizers that I could not find in any web tutorial Best Victor Bombi -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnmore_122712 ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] sizers and wxCollapsiblePane
Auto answering. I made a function (Collapsible) for getting what I wanted require("wx") frame = nil -- Generate a unique new wxWindowID local ID_IDCOUNTER = wx.wxID_HIGHEST + 1 function NewID() ID_IDCOUNTER = ID_IDCOUNTER + 1 return ID_IDCOUNTER end function main() -- create the frame window frame = wx.wxFrame( wx.NULL, wx.wxID_ANY, "wxLua Very Minimal Demo", wx.wxDefaultPosition, wx.wxSize(450, 450), wx.wxDEFAULT_FRAME_STYLE ) panel = wx.wxPanel(frame, wx.wxID_ANY) panelSizer = wx.wxBoxSizer( wx.wxVERTICAL ) ---[[ for i=1,3 do local colsiz = Collapsible(panel,panelSizer,"collap "..i) local cc=wx.wxStaticText(panel, wx.wxID_ANY, "vadsfklj "..i, wx.wxDefaultPosition,wx.wxDefaultSize, wx.wxALIGN_CENTRE) colsiz:Add(cc,0) panelSizer:Hide(colsiz,true) end --]] last = wx.wxStaticText(panel, wx.wxID_ANY, "last 1", wx.wxDefaultPosition,wx.wxDefaultSize, wx.wxALIGN_CENTRE) panelSizer:Add(last,1) last2 = wx.wxStaticText(panel, wx.wxID_ANY, "last 2", wx.wxDefaultPosition,wx.wxDefaultSize, wx.wxALIGN_CENTRE) panelSizer:Add(last2,1) panel:SetSizer(panelSizer); panelSizer:SetSizeHints(panel); -- show the frame window frame:Show(true) end function Collapsible(parent,parentSizer,texto) local panelSizer = wx.wxBoxSizer( wx.wxVERTICAL ) local ids = NewID() local button = wx.wxToggleButton(parent,ids,texto,wx.wxDefaultPosition,wx.wxSize(40,20)) button:SetFont(wx.wxSMALL_FONT) panelSizer:Add(button, 0, wx.wxALL, 0); local collapSizer = wx.wxBoxSizer( wx.wxVERTICAL ) parent:Connect(ids, wx.wxEVT_COMMAND_TOGGLEBUTTON_CLICKED, function(event) if button:GetValue() then panelSizer:Show(collapSizer,true) else panelSizer:Hide(collapSizer,true) end parent:Layout() end) panelSizer:Add(collapSizer, 0, wx.wxALL, 0); parentSizer:Add(panelSizer,0) panelSizer:Hide(collapSizer,true) return collapSizer end main() wx.wxGetApp():MainLoop() /// but I have another question now: I need two windows (one will be for AUImanager) I wrote this. It does not work as I expected and also crashes on closing / require("wx") frame = nil -- Generate a unique new wxWindowID local ID_IDCOUNTER = wx.wxID_HIGHEST + 1 function NewID() ID_IDCOUNTER = ID_IDCOUNTER + 1 return ID_IDCOUNTER end function main() -- create the frame window frame = wx.wxFrame( wx.NULL, wx.wxID_ANY, "wxLua Very Minimal Demo", wx.wxDefaultPosition, wx.wxSize(450, 450), wx.wxDEFAULT_FRAME_STYLE ) panel = wx.wxPanel(frame, wx.wxID_ANY) paneltop = wx.wxPanel(panel, wx.wxID_ANY) panelbottom = wx.wxPanel(panel, wx.wxID_ANY) paneltopSizer = wx.wxBoxSizer( wx.wxHORIZONTAL ) panelbottomSizer = wx.wxBoxSizer( wx.wxHORIZONTAL ) for i=1,3 do local cc=wx.wxStaticText(paneltop, wx.wxID_ANY, "top "..i, wx.wxDefaultPosition,wx.wxDefaultSize, wx.wxALIGN_CENTRE) paneltopSizer:Add(cc,0,wx.wxGROW) end for i=1,3 do local cc=wx.wxStaticText(panelbottom, wx.wxID_ANY, "bottom "..i, wx.wxDefaultPosition,wx.wxDefaultSize, wx.wxALIGN_CENTRE) panelbottomSizer:Add(cc,0,wx.wxGROW) end paneltop:SetSizer(paneltopSizer); paneltopSizer:SetSizeHints(paneltop); panelbottom:SetSizer(panelbottomSizer); panelbottomSizer:SetSizeHints(panelbottom); panelSizer = wx.wxBoxSizer( wx.wxVERTICAL ) panelSizer:Add(paneltopSizer,1,wx.wxGROW) panelSizer:Add(panelbottomSizer,1,wx.wxGROW) panel:SetSizer(panelSizer); panelSizer:SetSizeHints(panel); -- show the frame window frame:Show(true) end main() wx.wxGetApp():MainLoop() Best Regards and thanyou for reading Victor Bombi -- Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery and much more. Keep your Java skills current with LearnJavaNow - 200+ hours of step-by-step video tutorials by Java experts. SALE $49.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122612 ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
[wxlua-users] sizers and wxCollapsiblePane
Hello, Cant get this test with sizers and wxCollapsiblePane to work!! What am I doing wrong // require("wx") frame = nil function main() -- create the frame window frame = wx.wxFrame( wx.NULL, wx.wxID_ANY, "wxLua Very Minimal Demo", wx.wxDefaultPosition, wx.wxSize(450, 450), wx.wxDEFAULT_FRAME_STYLE ) panel = wx.wxPanel(frame, wx.wxID_ANY) panelSizer = wx.wxBoxSizer( wx.wxVERTICAL ) collaps = {} ---[[ for i=1,3 do collaps[i] = wx.wxCollapsiblePane(panel, wx.wxID_ANY, "efecto"..i, wx.wxDefaultPosition, wx.wxSize(20,20)) panelSizer:Add(collaps[i], 0, wx.wxGROW + wx.wxALL, 5); local wincolap = (collaps[i]):GetPane() paneSz = wx.wxBoxSizer(wx.wxVERTICAL); local cc=wx.wxStaticText(wincolap, wx.wxID_ANY, "vadsfklj "..i, wx.wxDefaultPosition,wx.wxDefaultSize, wx.wxALIGN_CENTRE) paneSz:Add(cc, 1, wx.wxGROW + wx.wxALL, 2); wincolap:SetSizer(paneSz); paneSz:SetSizeHints(wincolap); --panelSizer:Add(paneSz, 0, wx.wxALL, 0) end --]] last = wx.wxStaticText(panel, wx.wxID_ANY, "last 1", wx.wxDefaultPosition,wx.wxDefaultSize, wx.wxALIGN_CENTRE) panelSizer:Add(last,0) last2 = wx.wxStaticText(panel, wx.wxID_ANY, "last 2", wx.wxDefaultPosition,wx.wxDefaultSize, wx.wxALIGN_CENTRE) panelSizer:Add(last2,0) panel:SetSizer(panelSizer); panelSizer:SetSizeHints(panel); -- show the frame window frame:Show(true) end main() wx.wxGetApp():MainLoop()-- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122412___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] print numbers
Hello, This is what I get: >lua.exe Lua 5.1.5 Copyright (C) 1994-2012 Lua.org, PUC-Rio > print(1.234, string.format("%f", 2.345), os.setlocale()) 1.234 2.345000C > require("wx") > print(1.234, string.format("%f", 2.345), os.setlocale()) 1,234 2,345000Spanish_Spain.1252 > print(os.setlocale("", "all")) Spanish_Spain.1252 > print(1.234, string.format("%f", 2.345), os.setlocale()) 1,234 2,345000Spanish_Spain.1252 > manual from lua.51 says: If locale is the empty string, the current locale is set to an implementation-defined native locale. May be Spanish locale was hard coded in my lua.exe compilation and wxlua calls os.setlocale("", "all")? I have used os.setlocale("C") in my lua script after require"wx" and everything works as I expected (but of course wx.wxMessageBox prints 1.234 which is not anoying for me). Would be good idea to mention in the FAQ what is happenig with the locale. Best Regards -- Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] print numbers
Hello, > wxLua does not change the locale, but wxWidgets might to make the UI > numeric display appropriate for users. That`s true: with print(os.locale()) before and after the require"wx" I get C Spanish_Spain.1252 > What OS are you on? If you're in Linux you can apply the patch below > and recompile the wxLua module lib. Please let me know if it works for > you and I will apply it to svn. My OS is windows. Perhaps the solution would be just calling os.locale("C") after require"wx"? Best Regards Victor Bombi -- Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
[wxlua-users] print numbers
Hello, this script: print(0.4) require("wx") print(0.4) does this output: 0.4 0,4 For me is very bad because I cant serialize floats. Is there any reason for changing tostring method for numbers or could be reverted? Thank you Victor Bombi-- Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] Build fixed for MingW
> To be sure, everything builds and works? (except for having to run > cmake twice which is probably unavoidable) I have just compiled and everything seems OK. Thank you for all your work with wxLua!! Best Regards Victor Bombi -- Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] Build fixed for MingW
>> There is not cursor resource assert now but I get wxWidgets lib in dll >> where >> I got before everything in wx.dll with this command line: > > I don't know what this means. I meant that wx.dll depends on WXBASE294U_NET_GCC_CUSTOM.DLL for example, althought in the command line I asked for BUILD_SHARED_LIBS=FALSE and pointed to gcc_lib. When I run first time I get BUILD_SHARED_LIBS=FALSE but libraries point to gcc_dll. When I rerun command line without deleting previous results I get BUILD_SHARED_LIBS=FALSE and libraries correctly pointing to gcc_lib. So running command line twice seems to solve the problem for me, but it is confusing and I dont know if it is intended to be that way. Best Regards Victor Bombi -- Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] Build fixed for MingW
There is not cursor resource assert now but I get wxWidgets lib in dll where I got before everything in wx.dll with this command line: "C:\Program Files\CMake 2.8\bin\cmake" -G"MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release -DwxWidgets_ROOT_DIR=C:/LUA/wxWidgets-2.9.4 -DwxWidgets_LIB_DIR=C:/LUA/wxWidgets-2.9.4/lib/gcc_lib -DwxWidgets_CONFIGURATION=mswu -D wxWidgets_VERSION=2.9.x -DBUILD_VERBOSELY=TRUE -DBUILD_SHARED_LIBS=FALSE -DwxLua_LUA_LIBRARY_USE_BUILTIN=FALSE -DwxLua_LUA_LIBRARY=C:/LUA/luabuildmingw/lua51.dll -DwxLua_LUA_INCLUDE_DIR=C:/LUA/lua-5.1.5/include ../wxlua/wxlua -- Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] wxSTC in 2.9.4
>> >> I tryed with wx.dll compiled by me with mingw against 2.8.12 and 2.9.4. >> wxWidgets >> I run "lua editor.wx.lua" with both of them , the error appears only in >> 2.9.4 version > > It does not happen running from wxLuaFreeze.exe > More complete -2.8.12 with wxLuaFreeze.exe I see right arrow -2.8.12 with lua.exe I see left arrow -2.9.4 with wxLuaFreeze.exe I see right arrow -2.9.4 with lua.exe crash So it seems that the correct resource is never loaded using lua.exe but it crash in wxWidgets 2.9.4 because it asserts. I saw the resources from wx.dll compiled by you and the mingw compiled by me: Resouce numbers from cursors are different 1 to 11 in mingw but 4 to 14 in your compilation -- Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] wxSTC in 2.9.4
> > I tryed with wx.dll compiled by me with mingw against 2.8.12 and 2.9.4. > wxWidgets > I run "lua editor.wx.lua" with both of them , the error appears only in > 2.9.4 version It does not happen running from wxLuaFreeze.exe -- Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] wxSTC in 2.9.4
> You use mingw? > This problem occurs in 2.9.4 running "lua editor.wx.lua", but not with > "wxluafreeze editor.wx.lua"? > Does this problem occur with 2.8.12 in mingw? (the wxlua-2.8.12.zip is > built using Visual Studio) > I tryed with wx.dll compiled by me with mingw against 2.8.12 and 2.9.4. wxWidgets I run "lua editor.wx.lua" with both of them I the error appears only in 2.9.4 version -- Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] wxSTC in 2.9.4
There was a mistake in post: I mean running editor.wx.lua sample with wx.dll compiled against 2.9.4 wxWidgets I have also tryed the stc sample of wxWidgets 2.9.4 but I dont get the same error. -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://ad.doubleclick.net/clk;258768047;13503038;j? http://info.appdynamics.com/FreeJavaPerformanceDownload.html ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
[wxlua-users] wxSTC in 2.9.4
I am afraid that this post got lost because I was mixing threads. So I repost it in new thread: Compiling wxLua with wxWidgets 2.9.4 but not with 2.8.12 I get an assertion when running wx.lua.sample and mouse is over the left margin (markers and so on) of a wxstc.editor assert "Assert failure" failed in InitFromStock(): Loading a cursor defined by wxWidgets failed, did you include include/wx/msw/wx.rc file from your resource file? 'LoadCursor' failed with error 0x0714 (there was not resource section on the image after continuing the program 'LoadCursor' failed with error 0x (no error) If not on debugger the program just crashes after assert. Best Regards Victor Bombi -- How fast is your code? 3 out of 4 devs don\\\'t know how their code performs in production. Find out how slow your code is with AppDynamics Lite. http://ad.doubleclick.net/clk;262219672;13503038;z? http://info.appdynamics.com/FreeJavaPerformanceDownload.html ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] wxPointList was Re: Which wxWidgets?
> Something like that, but quite a bit more work is involved to do it > the right way and have it reusable in similar functions. Lot of work indeed!! Thank you -- How fast is your code? 3 out of 4 devs don\\\'t know how their code performs in production. Find out how slow your code is with AppDynamics Lite. http://ad.doubleclick.net/clk;262219672;13503038;z? http://info.appdynamics.com/FreeJavaPerformanceDownload.html ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] Which wxWidgets?
Still testing 2.9.4 against 2.8.12. I get very often this assertion with 2.9.4 in the debuger: assert "Assert failure" failed in InitFromStock(): Loading a cursor defined by wxWidgets failed, did you include include/wx/msw/wx.rc file from your resource file? 'LoadCursor' failed with error 0x0714 (there was not resource section on the image after continuing the program 'LoadCursor' failed with error 0x (no error) I not on debugger the program just crashes after assert. // I have tryed with editor.wx.lua sample and I get the same error when mouse is over the left margin (markers and so on) of a wxstc.editor. So it seems it is not a lua lanes problem. Best Regards Victor Bombi -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] wxPointList was Re: Which wxWidgets?
> > It can't be used currently. I have wondered if it's really worth it. > The idea is that you can optimize the drawing with a list, but in a > scripting language the creation of the list itself may negate any > benefits. > The list should be a lua table for optimization and then could be something like: static int LUACALL wxLua_wxDC_DrawPolygon1(lua_State *L) { // get number of arguments int argCount = lua_gettop(L); // wxPolygonFillMode fill_style = wxODDEVEN_RULE wxPolygonFillMode fill_style = (argCount >= 5 ? (wxPolygonFillMode)wxlua_getenumtype(L, 5) : wxODDEVEN_RULE); // wxCoord yoffset = 0 wxCoord yoffset = (argCount >= 4 ? (wxCoord)wxlua_getnumbertype(L, 4) : 0); // wxCoord xoffset = 0 wxCoord xoffset = (argCount >= 3 ? (wxCoord)wxlua_getnumbertype(L, 3) : 0); // const wxList points luaL_checktype(L, 2, LUA_TTABLE); int n = lua_objlen(L, 2); /* get size of table */ double x,y; wxList pointList; for (int i = 1; i <= n; i++) { lua_rawgeti(L, 2, i); /* get next point as {x,y} */ luaL_checktype(L, -1, LUA_TTABLE); lua_rawgeti(L,-1,1); if (!lua_isnumber(L, -1)) luaL_error(L, "coordinate x not a number"); x = lua_tonumber(L ,-1) lua_pop(L,1); lua_rawgeti(L,-1,2); if (!lua_isnumber(L, -1)) luaL_error(L, "coordinate Y not a number"); y = lua_tonumber(L ,-1) lua_pop(L,1); lua_pop(L,1); pointList:Append(wxPoint(x,y)); } //const wxList * points = (const wxList *)wxluaT_getuserdatatype(L, 2, wxluatype_wxList); // get this wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); // call DrawPolygon self->DrawPolygon(&pointList, xoffset, yoffset, fill_style); return 0; } It is called as paintDC:DrawLines({{0,0},{20,40},{50,50}}) Similar for DrawLines. I dont know how to insert it in wxLua code and how you control function overloadings. Also perhaps you use something different than luaL_error. Best Regards Victor Bombi -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] Which wxWidgets?
> I am trying to use dc:DrawLines but I cant understand how wxList or > wxPointList work: I have been searching on mailing list and code. I seems only for 2.9 is implemented. I would like a version with pairs of coordinates in a lua table. Could be something like: static int LUACALL wxLua_wxDC_DrawPolygon1(lua_State *L) { // get number of arguments int argCount = lua_gettop(L); // wxPolygonFillMode fill_style = wxODDEVEN_RULE wxPolygonFillMode fill_style = (argCount >= 5 ? (wxPolygonFillMode)wxlua_getenumtype(L, 5) : wxODDEVEN_RULE); // wxCoord yoffset = 0 wxCoord yoffset = (argCount >= 4 ? (wxCoord)wxlua_getnumbertype(L, 4) : 0); // wxCoord xoffset = 0 wxCoord xoffset = (argCount >= 3 ? (wxCoord)wxlua_getnumbertype(L, 3) : 0); // const wxList points luaL_checktype(L, 2, LUA_TTABLE); int n = lua_objlen(L, 2); /* get size of table */ double x,y; wxList pointList; for (int i = 1; i <= n; i++) { lua_rawgeti(L, 2, i); /* get next point as {x,y} */ luaL_checktype(L, -1, LUA_TTABLE); lua_rawgeti(L,-1,1); if (!lua_isnumber(L, -1)) luaL_error(L, "coordinate x not a number"); x = lua_tonumber(L ,-1) lua_pop(L,1); lua_rawgeti(L,-1,2); if (!lua_isnumber(L, -1)) luaL_error(L, "coordinate Y not a number"); y = lua_tonumber(L ,-1) lua_pop(L,1); lua_pop(L,1); pointList:Append(wxPoint(x,y)); } //const wxList * points = (const wxList *)wxluaT_getuserdatatype(L, 2, wxluatype_wxList); // get this wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); // call DrawPolygon self->DrawPolygon(&pointList, xoffset, yoffset, fill_style); return 0; } It is called as paintDC:DrawLines({{0,0},{20,40},{50,50}}) Similar for DrawLines. I dont know how to insert it in wxLua code and how you control function overloadings. Also perhaps you use something different than luaL_error. Best Regards Victor Bombi -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] Which wxWidgets?
Trying both compilations: 2.8.12 behaves as always 2.9.4 wx gets hung specially when I run I lane that reads output from another exe with io.popen which sometimes gives erratic assertions. The assertions corresponding to wxSizer::GetItem didnt happen in 2.8.12 althought they were activated in this widgets. I will check if I did something different in both compilations (which could be one possibility) the other possibility is that the threading model has changed something from 2.8.12 to 2.9.4. In my experience realy 2.8.12 is stable and 2.9.4 unstable Best Regards Victor Bombi -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] Which wxWidgets?
Thanyou for everything: I have managed to compile in mingw with 2.9.4 and 2.8.12 (all unicode not shared) with last svn modifications I can now call if sizer:GetChildren():GetCount() > 0 then althought I find that the assert of wxWidgets in wxSizerItem* wxSizer::GetItem( size_t index ) { wxCHECK_MSG( index < m_children.GetCount(), NULL, wxT("GetItem index is out of range") ); return m_children.Item( index )->GetData(); } is abusive because the wxNULL return in this case should be enough, with the assert testing wxNULL return is useless /// I am trying to use dc:DrawLines but I cant understand how wxList or wxPointList work: local plist=wx.wxPointList --plist:Append(wx.wxPoint(0,0)) plist[0]=0 plist[30]=30 --plist:Append(wx.wxPoint(30,30)) dc:DrawLines(plist) Append is not recognized as a method, plist is said to be not a wxPointList. I cant imagine how should be done. Best Regards Victor Bombi -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] Which wxWidgets?
When wxWidgets is build with DEBUG_FLAG=0 On wxLua compilation I get: ..\..\lib\libwxstedit-wx29mswu-1.6.0.a(steprint.cpp.obj):steprint.cpp:(.text+0x19a9): undefined reference to `_wxTheAssertHan dler' ..\..\lib\libwxstedit-wx29mswu-1.6.0.a(steprint.cpp.obj):steprint.cpp:(.text+0x19dd): undefined reference to `wxOnAssert(char const*, int, char const*, char const*, wchar_t const*)' ..\..\lib\libwxstedit-wx29mswu-1.6.0.a(steprint.cpp.obj):steprint.cpp:(.text+0x1c33): undefined reference to `_wxTheAssertHan dler' May there is any flag that should be activated? -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://ad.doubleclick.net/clk;258768047;13503038;j? http://info.appdynamics.com/FreeJavaPerformanceDownload.html ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] Which wxWidgets?
I have found one of the asserts I get with 2.9.4: I am using local ind=0 while true do local item=sizer:GetItem(ind) if item==wx.wxNULL then break end ... end but when sizer has not items I get the assertion from sizer.cpp wxSizerItem* wxSizer::GetItem( size_t index ) { wxCHECK_MSG( index < m_children.GetCount(), NULL, wxT("GetItem index is out of range") ); return m_children.Item( index )->GetData(); } As I cant acces m_children whith GetChildren (was possible in 2.8.12) I can avoid the assertion for an empty sizer. I can only set DEBUG_FLAG=0 at building wxWidgets to avoid all assertions (docs say it avoids assertions but not the check_msg which is also done but outputs nothing??!!) Best Regards Victor Bombi -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://ad.doubleclick.net/clk;258768047;13503038;j? http://info.appdynamics.com/FreeJavaPerformanceDownload.html ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] Which wxWidgets?
> > You should remove propgrid from your list of wxWidget_COMPONENTS... > I was not setting this variable. I thought that cmake would take care off that >> ADD_SUBDIRECTORY(C:/LUA/wxlua-sources/wxLua/modules/wxstedit) >> Call Stack (most recent call first): >> CMakeLists.txt:248 (add_subdirectory) > > Why don't you have this directory? Did you delete it or are you not > allowing svn to checkout externals? I was using tarball. I will use svn > > I recommend building the wxWidgets 'stc' library, rather than removing > 'stc' from the list of wxWidgets_COMPONENTS since I've never tried > building wxLua without it. I have now build it with C:\wxWidgets-2.8.12\contrib\build\stc>mingw32-make.exe -f makefile.gcc SHARED=0 RUNTIME_LIBS=static UNICODE=1 BUILD=release then cmake (I have not still removed propgrid and gl but it seems ok) /// C:\LUA\wxlua-sources\buid_min_static_unicode2.8>"C:\Program Files\CMake 2.8\bin\cmake" -G"MinGW Makefiles" -DCMAKE_BUILD_TYP E=MinSizeRel -DwxWidgets_ROOT_DIR="C:/wxWidgets-2.8.12/" -DwxWidgets_CONFIGURATION=mswu -DBUILD_VERBOSELY=TRUE -DBUILD_SHARED_LIBS=FALSE -DwxLua_LUA_LIBRARY_USE_BUILTIN=FALSE -DwxLua_LUA_LIBRARY="C:/LUA/luabuildmingw/lua51.dll" -DwxLua_LUA_INCLUDE_DIR="C:/LUA/lua-5.1.5/include" ../wxlua/wxlua -- The C compiler identification is GNU 4.7.0 -- The CXX compiler identification is GNU 4.7.0 -- Check for working C compiler: C:/MinGW/bin/gcc.exe -- Check for working C compiler: C:/MinGW/bin/gcc.exe -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: C:/MinGW/bin/g++.exe -- Check for working CXX compiler: C:/MinGW/bin/g++.exe -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- * --- -- * CMake command line options and tips specific to this project -- * -- * In the CMake GUI you can set values and press configure a few times since -- * sometimes once is not enough, after a few configurations, press generate. -- * -- * Usage: cmake -D[OPTION_NAME]=[OPTION_VALUE] /path/to/CMakeLists.txt/ -- * --- -- * -DHELP=TRUE -- * Show this help message and exit, no files will be generated. -- * -DCMAKE_BUILD_TYPE=[Debug, Release, RelWithDebInfo, MinSizeRel] : (Default Debug) -- * Makefiles : Set the build type to Debug, Release... -- * MSVC GUI : No need to set this since you choose it in the GUI. -- * -DBUILD_SHARED_LIBS=[TRUE, FALSE] : (Default static in MSW, shared in Linux) -- * Build shared (DLL) or static libraries. -- * Currently ONLY an all shared (DLL) or all static build is supported. -- * I.E. If you choose shared you must link to shared wxWidgets libs. -- * -- * Finding wxWidgets for MSW and MSVC -- * -DwxWidgets_ROOT_DIR=[path] : (e.g. /path/to/wxWidgets/) -- * Path to the root of the wxWidgets build, must at least set this. -- * -DwxWidgets_LIB_DIR=[path] : (e.g. /path/to/wxWidgets/lib/vc_lib/) -- * Path to the wxWidgets lib dir also set this if libs can't be found. -- * -DwxWidgets_CONFIGURATION=[configuration] : -- * Set wxWidgets configuration; e.g. msw, mswu, mswunivu... -- * Where 'u' = unicode and 'd' = debug. -- * MSVC GUI : You need only choose msw, mswu, mswuniv, mswunivu since -- * release or debug mode is chosen in the GUI. -- * -DwxWidgets_COMPONENTS=[...stc;html;adv;core;base or mono] : -- * For non-monolithic builds choose the wxWidgets libs to link to. -- *xrc;xml;gl;net;media;propgrid;richtext;aui;stc;html;adv;core;base -- * For monolithic builds choose mono and the contribs libs. -- *stc;mono -- * The extra decorations, e.g. wxmsw28ud_adv.lib, will be searched for. -- * Libs that cannot be found will be printed below, please fix/remove -- * them to be able to build this project. -- * You will get strange compilation/linker errors if wxWidgets is not found. -- * -- * Finding wxWidgets for GCC and Unix type systems -- * -DwxWidgets_CONFIG_EXECUTABLE=[path/to/wx-config] : -- * Specify path to wx-config script for GCC and Unix type builds -- * --- -- -- -- * -- * BUILD TYPE:MinSizeRel -- * BUILD_SHARED_LIBS: FALSE -- * -- * System is 32-bit TRUE, is 64-bit FALSE -- * -- * CMAKE_SOURCE_DIR = C:/LUA/wxlua-sources/wxlua/wxLua -- * CMAKE_BINARY_DIR = C:/LUA/wxlua-sources/buid_min_static_unicode2.8 -- * -- -- * Note: wxWidgets libs; Removing 'propgrid' lib from wxWidgets_COMPONENTS since it didn't exit in wx <
Re: [wxlua-users] Which wxWidgets?
aving directory `C:/LUA/wxlua-sources/buid_min_static_unicode2.8' mingw32-make[1]: *** [modules/wxlua/CMakeFiles/wxLuaLib.dir/all] Error 2 mingw32-make[1]: Leaving directory `C:/LUA/wxlua-sources/buid_min_static_unicode2.8' mingw32-make: *** [all] Error 2 / this is directory gcc_lib / C:\wxWidgets-2.8.12\lib\gcc_lib>dir El volumen de la unidad C es ACER El número de serie del volumen es: 30E5-BC56 Directorio de C:\wxWidgets-2.8.12\lib\gcc_lib 21/09/2012 16:26 . 21/09/2012 16:26 .. 21/09/2012 16:14 2.049.590 libwxbase28u.a 21/09/2012 16:14 313.088 libwxbase28u_net.a 21/09/2012 16:2340.222 libwxbase28u_xml.a 21/09/2012 16:12 214.314 libwxexpat.a 21/09/2012 16:11 166.954 libwxjpeg.a 21/09/2012 16:22 2.061.176 libwxmsw28u_adv.a 21/09/2012 16:25 720.704 libwxmsw28u_aui.a 21/09/2012 16:21 9.982.748 libwxmsw28u_core.a 21/09/2012 16:23 1.389.714 libwxmsw28u_html.a 21/09/2012 16:22 343.364 libwxmsw28u_media.a 21/09/2012 16:26 1.683.048 libwxmsw28u_richtext.a 21/09/2012 16:24 1.690.030 libwxmsw28u_xrc.a 21/09/2012 16:11 187.402 libwxpng.a 21/09/2012 16:11 104.342 libwxregexu.a 21/09/2012 16:12 354.950 libwxtiff.a 21/09/2012 16:1180.504 libwxzlib.a 21/09/2012 16:26 mswu 16 archivos 21.382.150 bytes 3 dirs 33.699.495.936 bytes libres // this is setup.h path // C:\wxWidgets-2.8.12\lib\gcc_lib\mswu\wx>dir El volumen de la unidad C es ACER El número de serie del volumen es: 30E5-BC56 Directorio de C:\wxWidgets-2.8.12\lib\gcc_lib\mswu\wx 21/09/2012 16:11 . 21/09/2012 16:11 .. 21/09/2012 16:11 msw 28/01/2010 10:2646.413 setup.h 1 archivos 46.413 bytes 3 dirs 33.699.495.936 bytes libres / A lot of text this time ;) Than you for your attention Victor Bombi -- How fast is your code? 3 out of 4 devs don\\\'t know how their code performs in production. Find out how slow your code is with AppDynamics Lite. http://ad.doubleclick.net/clk;262219672;13503038;z? http://info.appdynamics.com/FreeJavaPerformanceDownload.html ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] Which wxWidgets?
The first difference is because I try to use gcc_libmin (a custom wxWidgetds lib created with CFG option in Makefile) this is not managed in the cmake (setting -DwxWidgets_LIB_DIR has no effect) which used gcc_lib that I had in 2.9.4 but not in 2.8.12. Then I am now using the standard gcc_lib but cmake complains: -- * Note: wxWidgets libs; Removing 'propgrid' lib from wxWidgets_COMPONENTS since it didn't exit in wx < 2.9 -- * Using these wxWidgets components: xrc;xml;net;media;richtext;aui;stc;html;adv;core;base -- Could NOT find wxWidgets (missing: wxWidgets_FOUND) -- * CMake Warning at build/CMakewxAppLib.cmake:585 (message): * WARNING: Could not find wxWidgets! Please see help above. Call Stack (most recent call first): CMakeLists.txt:37 (FIND_WXWIDGETS) -- * - wxWidgets_VERSION = 2.8.12 = 2.8.12 -- * - wxWidgets_COMPONENTS= xrc;xml;net;media;richtext;aui;stc;html;adv;core;base -- * - wxWidgets_INCLUDE_DIRS = C:/wxWidgets-2.8.12/lib/gcc_lib/mswu;C:/wxWidgets-2.8.12/include and althought INCLUDE_DIRS is ok it seems it is not set for the compiler because it complains: C:\LUA\wxlua-sources\wxLua\modules\wxlua\dummy.cpp:20:23: error fatal: wx/wxprec.h: No such file or directory -- Got visibility? Most devs has no idea what their production app looks like. Find out how fast your code is with AppDynamics Lite. http://ad.doubleclick.net/clk;262219671;13503038;y? http://info.appdynamics.com/FreeJavaPerformanceDownload.html ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] Which wxWidgets?
> To keep it simple I would like to make a compilation as the one provided > in > wxLua sourceforge wxLua-2.8.12.2-MSW-Unicode > > I did it with wxWidgets 2.9.4 but libwx.dll is about 14000 kb instead of > 5000Kb. I get some asserts running my scripts > Did you use the same wxWidgets or another version? > > Best Regards > Victor Bombi I have found in the module info that it is 2.8.12 so I have tryed to compile with this. First difference: I had to run Cmake twice to get the libraries detected althought it was set with: "C:\Program Files\CMake 2.8\bin\cmake" -G"MinGW Makefiles" -DCMAKE_BUILD_TYPE=MinSizeRel -DwxWidgets_ROOT_DIR=C:/wxWidgets-2.8.12 -DwxWidgets_LIB_DIR=C:/wxWidgets-2.8.12/lib/gcc_libmin -DwxWidgets_CONFIGURATION=mswu -D wxWidgets_VERSION=2.8.x -DBUILD_VERBOSELY=TRUE -DBUILD_SHARED_LIBS=FALSE -DwxLua_LUA_LIBRARY_USE_BUILTIN=FALSE -DwxLua_LUA_LIBRARY=C:/LUA/luabuildmingw/lua51.dll -DwxLua_LUA_INCLUDE_DIR=C:/LUA/lua-5.1.5/include ../wxlua Second difference: The include path is not properly set. I get: [ 1%] Building CXX object modules/wxlua/CMakeFiles/wxLuaLib.dir/dummy.cpp.obj cd /d C:\LUA\wxlua-sources\buid_min_static_unicode2.8\modules\wxlua && C:\MinGW\bin\g++.exe -DwxLUA_USEBINDING_WXGL=0 -DwxL UA_USEBINDING_WXSTC=1 -DwxLUA_USEBINDING_WXXRC=1 -DwxLUA_USEBINDING_WXRICHTEXT=1 -DwxLUA_USEBINDING_WXHTML=1 -DwxLUA_USEBINDI NG_WXMEDIA=1 -DwxLUA_USEBINDING_WXAUI=1 -DwxLUA_USEBINDING_WXADV=1 -DwxLUA_USEBINDING_WXCORE=1 -DwxLUA_USEBINDING_WXXML=1 -Dw xLUA_USEBINDING_WXNET=1 -DwxLUA_USEBINDING_WXBASE=1 -Os -DNDEBUG @CMakeFiles/wxLuaLib.dir/includes_CXX.rsp -o CMakeFiles\wx LuaLib.dir\dummy.cpp.obj -c C:\LUA\wxlua-sources\wxLua\modules\wxlua\dummy.cpp C:\LUA\wxlua-sources\wxLua\modules\wxlua\dummy.cpp:20:23: error fatal: wx/wxprec.h: No such file or directory Best Regards Victor Bombi -- Got visibility? Most devs has no idea what their production app looks like. Find out how fast your code is with AppDynamics Lite. http://ad.doubleclick.net/clk;262219671;13503038;y? http://info.appdynamics.com/FreeJavaPerformanceDownload.html ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
[wxlua-users] Which wxWidgets?
To keep it simple I would like to make a compilation as the one provided in wxLua sourceforge wxLua-2.8.12.2-MSW-Unicode I did it with wxWidgets 2.9.4 but libwx.dll is about 14000 kb instead of 5000Kb. I get some asserts running my scripts Did you use the same wxWidgets or another version? Best Regards Victor Bombi -- Got visibility? Most devs has no idea what their production app looks like. Find out how fast your code is with AppDynamics Lite. http://ad.doubleclick.net/clk;262219671;13503038;y? http://info.appdynamics.com/FreeJavaPerformanceDownload.html ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] LuaLans threading, was Re: mingw compiling wxlua problems
> > The big question is: Can wxLua know when the LuaLane created lua_State > is destroyed so that the associated wxLuaState can be destroyed too? My knowledge of lualanes "deepthings" is still not very big. But which is the usual way in which wxLua knows when the lua_State is destroyed? -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://ad.doubleclick.net/clk;258768047;13503038;j? http://info.appdynamics.com/FreeJavaPerformanceDownload.html ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] LuaLans threading, was Re: mingw compiling wxlua problems
> Can you change it to this and see if you can load it multiple times as > you used to? > I have never been able to do it: My problem is that lualanes creates a completely new lua_State running in a separate thread and a call to require on wx makes luaopen_wx return lua_getglobal(newState, "wx"); which is nil in that new lua_State. The other part in luaopen_wx is not called because s_wxlState is a static wxLuaState so !s_wxlState.Ok() fails because is was inited in a pevious lane (lua_State) So I can require it in ANY lane I want but only on ONE. Best Regards Victor Bombi -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] mingw compiling wxlua problems
> Please read this for a better understanding, only > wxEvtHander::AddPendingEvent() is safe from worker threads. > http://docs.wxwidgets.org/trunk/overview_thread.html Yes but this is for just one window messaging system. I would like to have two independent window messaging systems connected by lindas. > Is there any difference between luaBitOp and the one wxLua provides? The main reason I am using it is because I need it in secondary lanes.(requiring wx for that would be too much, besides it cant be done) > If, and only if, all you want to get at is > wxEvtHander::AddPendingEvent() perhaps Lindas will work for you? > Again, I've never used LuaLanes, but sending Lindas to the main thread > look like they were made for this purpose. I use wxEVT_IDLE for receiving linda messages. I wanted to have two completely independent wx lua_States because it would make some tasks more easy. > On the other hand, if you want to use wxWidgets structures like a > wxImage, wxRect, etc, then consider that calling require("wx") takes a > fair amount of time itself and it may not be worth creating the > thread. Perhaps you can extract the work that needs to be done in > pure-Lua structures. I am not sure about what you mean. If you mean sending by lindas some kind of description for the work to be done by the wx lane and receiving the answer by lindas also, That is what I am already doing for creating windows from other lanes or using wxDir. Best Regards Victor Bombi -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] mingw compiling wxlua problems
Hi Paul, Thank you for your reply. I think this is not the same case.My problem is that lualanes creates a completely new lua_State running in a separate thread and a call to require on wx returns lua_getglobal(L, "wx"); which is nil in that new lua_State. The other part in luaopen_wx is not called because s_wxlState is a static wxLuaState so !s_wxlState.Ok() fails because is was inited in a pevious lane (lua_State) So I can require it any lane I want but only on one. The strange other problems I had seem to be a lualanes issue which I solved as I explained in my last email. And I am still not being able to compile with SHARED=0. Best Regards Victor Bombi -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] mingw compiling wxlua problems
> Can you add this line to modules/luamodule/luamodule.cpp to help > figure out what is happening and recompile? > > 50 BOOL APIENTRY DllMain( HANDLE hModule, DWORD ul_reason_for_call, > LPVOID ) > 51 { > > printf("AAA %p %d : a %d d %d\n", hModule, > (int)ul_reason_for_call, (int)DLL_PROCESS_ATTACH, > (int)DLL_PROCESS_DETACH); fflush(stdout); > > 52 switch (ul_reason_for_call) > 53 { > ... > Thank you for answering. I have solved the problems in my lualanes and wx application. It seems that something is not working if I do require"something" inside a lane that has not been required in the lua_state where wx is loaded. When the lane is finished wx gets hanged (I guess that when unloading the dll) so I am now requiring everything in the main lua_state even if I dont need it. Another problem came from wx defining bit instead of wx.bit so when I use bit from luaBitOp lanes get confused also (I renamed it bitOp for solving). I have always wanted to require wx in a lane but because of "only once" dll initialization it does not work. I am able to require wx from a lane if it has not been required from the "main" lua_State. Do you thing it could be changed anyhow so that luaopen_wx does not return lua_getglobal(L, "wx");? Would that break wx? Best Regards Victor Bombi -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] mingw compiling wxlua problems
some other strange asserts. the samples seem too work but not my program which uses lualanes for do multitasking. It has been working with wx 2.8.10 binarys downloaded and everything else compiled with msvc2005. Also with binarys wx2.8.12 and everything compiled with msvc2005 but when I have compiled with mingw all the lua modules I got strange hangs in wx 2.8.12 , so I decided to compile by myself. Now behaviour is worse. Any ideas? Any relation with unicode? Best Regards Victor Bombi -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://ad.doubleclick.net/clk;258768047;13503038;j? http://info.appdynamics.com/FreeJavaPerformanceDownload.html ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] mingw compiling wxlua problems
There is an assert complain about resources not being loaded and something about wx.rc. The message doesnt appear know, application simply crash I saw in the code that __WXMSW__ should be defined for remembering the dllinstance for loading resources. Must I define it? Where? Best Regards Victor Bombi -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://ad.doubleclick.net/clk;258768047;13503038;j? http://info.appdynamics.com/FreeJavaPerformanceDownload.html ___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] mingw compiling wxlua problems
Solved the problem of not dll linking to lua51.dll with -DwxLua_LUA_LIBRARY=C:/LUA/luabuildmingw/lua51.dll -DwxLua_LUA_INCLUDE_DIR=C:/LUA/lua-5.1.5/include So I have tryed the build and while testing if unicode is ok for my program I found that wx.wxOPEN is not longer defined but instead wx.wxFLD_OPEN. Can I get the defines as before? Best Regards Victor Bombi-- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://ad.doubleclick.net/clk;258768047;13503038;j? http://info.appdynamics.com/FreeJavaPerformanceDownload.html___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
Re: [wxlua-users] mingw compiling wxlua problems
I have finally been able to compile with "C:\Program Files\CMake 2.8\bin\cmake" -G"MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release -DwxWidgets_ROOT_DIR=C:/LUA/wxWidgets-2.9.4 -DwxWidgets_LIB_DIR=C:/LUA/wxWidgets-2.9.4/lib/gcc_dll -DwxWidgets_CONFIGURATION=mswu -D wxWidgets_VERSION=2.9.x -DBUILD_VERBOSELY=TRUE -DBUILD_SHARED_LIBS=TRUE -DCMAKE_C_FLAGS=-shared-libgcc -DCMAKE_CXX_FLAGS=-shared-libgcc ../wxlua after building wxWidgets for SHARED. Only for shared wxwidgets is not so bad for me but only unicode may be problematic. Another problem with this compilation is that libwx.dll is dll linked with libwxlua_lua51-wx29mswu-2.8.12.dll and not lua51.dll which is what I need Best Regards Victor Bombi-- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://ad.doubleclick.net/clk;258768047;13503038;j? http://info.appdynamics.com/FreeJavaPerformanceDownload.html___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users
[wxlua-users] mingw compiling wxlua problems
Hello, I am triying to compile wxlua with mingw. wxWidgets 2.9.4 was compiled with mingw : mingw32-make.exe -f makefile.gcc SHARED=0 UNICODE=0 BUILD=release and mingw32-make.exe -f makefile.gcc SHARED=0 UNICODE=1 BUILD=release compiled test named aui with unicode=0 and unicode=1 without problems Then Cmake with "C:\Program Files\CMake 2.8\bin\cmake" -G"MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release -DwxWidgets_ROOT_DIR=C:/LUA/wxWidgets-2.9.4 -DwxWidgets_LIB_DIR=C:/LUA/wxWidgets-2.9.4/lib/gcc_lib -DwxWidgets_CONFIGURATION=msw -D wxWidgets_VERSION=2.9.x -DBUILD_VERBOSELY=TRUE -DBUILD_SHARED_LIBS=FALSE -DCMAKE_C_FLAGS=-shared-libgcc -DCMAKE_CXX_FLAGS=-shared-libgcc ../wxlua stops in linking CMakeFiles\wxLuaModule.dir/objects.a(luamodule.cpp.obj):luamodule.cpp:(.text+0x29d): undefined reference to `wxFormatString:: AsWChar()' ... the same Cmake but with -DwxWidgets_CONFIGURATION=mswu stops in: Creating library file: ..\..\lib\libwxlua_bind-wx29mswu-2.8.12.dll.a C:\LUA\wxWidgets-2.9.4\lib\gcc_lib\libwxmsw29u_core.a(corelib_gdicmn.o):gdicmn.cpp:(.text+0x0): multiple definition of `wxGDI Object::GetClassInfo() const' ..\..\lib\libwxlua-wx29mswu-2.8.12.dll.a(d018392.o):(.text+0x0): first defined here Any help would be appreciated. Best Regards Victor Bombi ...-- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://ad.doubleclick.net/clk;258768047;13503038;j? http://info.appdynamics.com/FreeJavaPerformanceDownload.html___ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users