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GluZyB0aGUgTHVhICdwcmludCgpJyBmdW5jdGlvbiBmcm9tIGEgc2NyaXB0IHJ1biB1 c2luZwond3hMdWFTdGF0ZTo6UnVuRmlsZSgpJyBkb2Vzbid0IHByaW50IGFueXRoaW5nIGF0IHRo ZSB0ZXJtaW5hbC4gSXMKdGhpcyBiZWluZyByZWRpcmVjdGVkIHRvIHNvbWV3aGVyZT8KCkknbGwg bm93IHN0YXJ0IHRvIHRyeSBkb2luZyBzb21lIHJlYWwgd29yayB3aXRoIHd4THVhLiBTbyBmYXIg aXQgbG9va3MgZ3JlYXQhCgpSZWdhcmRzIGFuZCBjb25ncmF0dWxhdGlvbnMgZm9yIHRoZSB3b3Jr LAoKTE1CCg== |
From: Francesco M. <f18...@ya...> - 2006-04-02 22:11:27
|
Leandro Motta Barros ha scritto: > Hi there, > > CVS was up, so I was able to try the very latest wxLua version. strange: I still get errors when trying to access it - maybe only developer CVS is down ? John, are you able to access it ? > So > far, I have just created a very simple C++application that links to > wxLua and runs a script that creates an user interface (I just grabbed > the script at wxLua's front page). > > I have just took a very quick look at the examples that come with > wxLua, but it seems that the one I created is simpler than those, so > it may be useful for other beginners, too. I've uploaded it to > http://cscience.org/~lmb/MinimalEmbeddedWXLuaApp.zip. If the current > distribution really lacks an example as simple as this one, please > feel free to review and add this one to the distribution or to the > wxLua page. > > Up to this moment, I have only five notes: > > 1. My wxWidgets installation doesn't include wxSTC, and I had to > manually pass the '--disable-wxbindstc' flag to the 'configure' > script. It would be nice if 'configure' could test for 'wxSTC' > presence and disable it automatically if it isn't found. configure already tests for wxSTC... didn't you get a message 'wxSTC could not be found etc etc' ? It does not disable it automatically if not found for choice: wxSTC is required for both wxLuaApp and wxLuaEdit applications... if you don't have wxSTC then you miss two nice apps ;) > 2. The file 'wxluasetup.h' was not installed by 'make install'. I had > to copy manually. this is sure a big problem - thanks for reporting it. Fixed in CVS (wxluasetup.h was erroneously installed into $PREFIX/src/wxbind/setup instead of $PREFIX/include/wxbind/setup) > > 3. I think that the 'include' directory in '#include > <wxbind/include/wxbind.h>' is a bit cumbersome (I would prefer just > something like '#include <wxbind/wxbind.h>', for example). I can live > with this, though. :-) this was not to pollute the compiler line with a lot of include paths (we would need one for each subfolder in modules\ ...). > 4. I had to link with 'wxlua_gtk2_wxluasocket-2.6', even though I > don't use sockets. Otherwise, I get some linking errors concerning > names that I would expect to find at 'wxlua_gtk2_wxluadebug-2.6' > instead: > > /usr/local/lib/libwxlua_gtk2_wxbind-2.6.so: undefined reference to > `wxLuaDebugServer::DisplayStackDialog(wxWindow*)' > /usr/local/lib/libwxlua_gtk2_wxbind-2.6.so: undefined reference to > `wxLuaDebugServer::wxLuaDebugServer(int)' > /usr/local/lib/libwxlua_gtk2_wxbind-2.6.so: undefined reference to > `wxLuaDebugServer::StartClient()' > /usr/local/lib/libwxlua_gtk2_wxbind-2.6.so: undefined reference to > `wxEVT_WXLUA_DEBUG_CLIENT_CONNECTED' > /usr/local/lib/libwxlua_gtk2_wxbind-2.6.so: undefined reference to > `wxEVT_WXLUA_DEBUG_EVALUATE_EXPR' > /usr/local/lib/libwxlua_gtk2_wxbind-2.6.so: undefined reference to > `wxLuaDebugServer::Compile(wxString const&, wxString const&)' > /usr/local/lib/libwxlua_gtk2_wxbind-2.6.so: undefined reference to > `wxEVT_WXLUA_DEBUG_ERROR' > /usr/local/lib/libwxlua_gtk2_wxbind-2.6.so: undefined reference to > `wxLuaDebugServer::StartServerThread()' > /usr/local/lib/libwxlua_gtk2_wxbind-2.6.so: undefined reference to > `wxEVT_WXLUA_DEBUG_PRINT' > /usr/local/lib/libwxlua_gtk2_wxbind-2.6.so: undefined reference to > `wxLuaDebugServer::EvaluateExpr(int, wxString const&)' > /usr/local/lib/libwxlua_gtk2_wxbind-2.6.so: undefined reference to > `wxEVT_WXLUA_DEBUG_TABLE_ENUM' > /usr/local/lib/libwxlua_gtk2_wxbind-2.6.so: undefined reference to > `wxEVT_WXLUA_DEBUG_BREAK' > /usr/local/lib/libwxlua_gtk2_wxbind-2.6.so: undefined reference to > `wxLuaDebugEvent::ms_classInfo' > /usr/local/lib/libwxlua_gtk2_wxbind-2.6.so: undefined reference to > `wxEVT_WXLUA_DEBUG_STACK_ENUM' > /usr/local/lib/libwxlua_gtk2_wxbind-2.6.so: undefined reference to > `wxEVT_WXLUA_DEBUG_EXIT' > /usr/local/lib/libwxlua_gtk2_wxbind-2.6.so: undefined reference to > `wxEVT_WXLUA_DEBUG_STACK_ENTRY_ENUM' > > 5. Calling the Lua 'print()' function from a script run using > 'wxLuaState::RunFile()' doesn't print anything at the terminal. Is > this being redirected to somewhere? these last two are meat for John, I think ;) > > I'll now start to try doing some real work with wxLua. So far it looks great! > > Regards and congratulations for the work, Thanks! Francesco |
From: Leandro M. B. <lmb...@gm...> - 2006-04-03 01:33:24
|
T24gNC8yLzA2LCBGcmFuY2VzY28gTW9udG9yc2kgPGYxOG1fY3BwMjE3ODI4QHlhaG9vLml0PiB3 cm90ZToKPiBMZWFuZHJvIE1vdHRhIEJhcnJvcyBoYSBzY3JpdHRvOgo+ID4gMS4gTXkgd3hXaWRn ZXRzIGluc3RhbGxhdGlvbiBkb2Vzbid0IGluY2x1ZGUgd3hTVEMsIGFuZCBJIGhhZCB0bwo+ID4g bWFudWFsbHkgcGFzcyB0aGUgJy0tZGlzYWJsZS13eGJpbmRzdGMnIGZsYWcgdG8gdGhlICdjb25m aWd1cmUnCj4gPiBzY3JpcHQuIEl0IHdvdWxkIGJlIG5pY2UgaWYgJ2NvbmZpZ3VyZScgY291bGQg dGVzdCBmb3IgJ3d4U1RDJwo+ID4gcHJlc2VuY2UgYW5kIGRpc2FibGUgaXQgYXV0b21hdGljYWxs eSBpZiBpdCBpc24ndCBmb3VuZC4KPiBjb25maWd1cmUgYWxyZWFkeSB0ZXN0cyBmb3Igd3hTVEMu Li4gZGlkbid0IHlvdSBnZXQgYSBtZXNzYWdlICd3eFNUQwo+IGNvdWxkIG5vdCBiZSBmb3VuZCBl dGMgZXRjJyA/CgpZZXMsIGJ1dCAnY29uZmlndXJlJyBhYm9ydGVkIGp1c3QgYWZ0ZXIgdGhlIG1l c3NhZ2UuIEkgdGhvdWdodCBpdApzaG91bGQga2VlcCBnb2luZywganVzdCB3aXRoIHd4U1RDIHN1 cHBvcnQgZGlzYWJsZWQuIElzc3VpbmcgYSB3YXJuaW5nCnBlcmhhcHMuCgo+IEl0IGRvZXMgbm90 IGRpc2FibGUgaXQgYXV0b21hdGljYWxseSBpZiBub3QgZm91bmQgZm9yIGNob2ljZTogd3hTVEMg aXMKPiByZXF1aXJlZCBmb3IgYm90aCB3eEx1YUFwcCBhbmQgd3hMdWFFZGl0IGFwcGxpY2F0aW9u cy4uLiBpZiB5b3UgZG9uJ3QKPiBoYXZlIHd4U1RDIHRoZW4geW91IG1pc3MgdHdvIG5pY2UgYXBw cyA7KQoKOi0pCgo+ID4gMy4gSSB0aGluayB0aGF0IHRoZSAnaW5jbHVkZScgZGlyZWN0b3J5IGlu ICcjaW5jbHVkZQo+ID4gPHd4YmluZC9pbmNsdWRlL3d4YmluZC5oPicgaXMgYSBiaXQgY3VtYmVy c29tZSAoSSB3b3VsZCBwcmVmZXIganVzdAo+ID4gc29tZXRoaW5nIGxpa2UgJyNpbmNsdWRlIDx3 eGJpbmQvd3hiaW5kLmg+JywgZm9yIGV4YW1wbGUpLiBJIGNhbiBsaXZlCj4gPiB3aXRoIHRoaXMs IHRob3VnaC4gOi0pCj4gdGhpcyB3YXMgbm90IHRvIHBvbGx1dGUgdGhlIGNvbXBpbGVyIGxpbmUg d2l0aCBhIGxvdCBvZiBpbmNsdWRlIHBhdGhzCj4gKHdlIHdvdWxkIG5lZWQgb25lIGZvciBlYWNo IHN1YmZvbGRlciBpbiBtb2R1bGVzXCAuLi4pLgoKT0ssIG5vIHByb2JsZW0gOi0pCgpMTUIK |
From: Francesco M. <f18...@ya...> - 2006-04-12 18:07:32
|
Leandro Motta Barros ha scritto: > On 4/2/06, Francesco Montorsi <f18...@ya...> wrote: >> Leandro Motta Barros ha scritto: >>> 1. My wxWidgets installation doesn't include wxSTC, and I had to >>> manually pass the '--disable-wxbindstc' flag to the 'configure' >>> script. It would be nice if 'configure' could test for 'wxSTC' >>> presence and disable it automatically if it isn't found. >> configure already tests for wxSTC... didn't you get a message 'wxSTC >> could not be found etc etc' ? > > Yes, but 'configure' aborted just after the message. I thought it > should keep going, just with wxSTC support disabled. Issuing a warning > perhaps. Thinking deeper about it you're probably right: a successfull compilation is the most important thing to make sure the user tries the program. So, I've changed it from an error to a big warning. Without wxSTC now compilations will proceed but wxLuaApp and wxLuaEdit apps will be disabled. Francesco |
From: Leandro M. B. <lmb...@gm...> - 2006-04-12 20:36:44
|
T24gNC8xMi8wNiwgRnJhbmNlc2NvIE1vbnRvcnNpIDxmMThtX2NwcDIxNzgyOEB5YWhvby5pdD4g d3JvdGU6Cj4gTGVhbmRybyBNb3R0YSBCYXJyb3MgaGEgc2NyaXR0bzoKPiA+IE9uIDQvMi8wNiwg RnJhbmNlc2NvIE1vbnRvcnNpIDxmMThtX2NwcDIxNzgyOEB5YWhvby5pdD4gd3JvdGU6Cj4gPj4g TGVhbmRybyBNb3R0YSBCYXJyb3MgaGEgc2NyaXR0bzoKPiA+Pj4gMS4gTXkgd3hXaWRnZXRzIGlu c3RhbGxhdGlvbiBkb2Vzbid0IGluY2x1ZGUgd3hTVEMsIGFuZCBJIGhhZCB0bwo+ID4+PiBtYW51 YWxseSBwYXNzIHRoZSAnLS1kaXNhYmxlLXd4YmluZHN0YycgZmxhZyB0byB0aGUgJ2NvbmZpZ3Vy ZScKPiA+Pj4gc2NyaXB0LiBJdCB3b3VsZCBiZSBuaWNlIGlmICdjb25maWd1cmUnIGNvdWxkIHRl c3QgZm9yICd3eFNUQycKPiA+Pj4gcHJlc2VuY2UgYW5kIGRpc2FibGUgaXQgYXV0b21hdGljYWxs eSBpZiBpdCBpc24ndCBmb3VuZC4KPiA+PiBjb25maWd1cmUgYWxyZWFkeSB0ZXN0cyBmb3Igd3hT VEMuL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2UgQ1ZTIHRha2Ug c28gbXVjaCB0aW1lIHRvIG1ha2UgdGhlCnVwZGF0ZXMgYXZhaWxhYmxlIG9yIEkgYW0gZG9pbmcg c29tZXRoaW5nIHdyb25nIGhlcmU/CgpMTUIK |
From: Francesco M. <f18...@ya...> - 2006-04-12 22:15:28
|
Leandro Motta Barros ha scritto: > On 4/12/06, Francesco Montorsi <f18...@ya...> wrote: >> Leandro Motta Barros ha scritto: >>> On 4/2/06, Francesco Montorsi <f18...@ya...> wrote: >>>> Leandro Motta Barros ha scritto: >>>>> 1. My wxWidgets installation doesn't include wxSTC, and I had to >>>>> manually pass the '--disable-wxbindstc' flag to the 'configure' >>>>> script. It would be nice if 'configure' could test for 'wxSTC' >>>>> presence and disable it automatically if it isn't found. >>>> configure already tests for wxSTC... didn't you get a message 'wxSTC >>>> could not be found etc etc' ? >>> Yes, but 'configure' aborted just after the message. I thought it >>> should keep going, just with wxSTC support disabled. Issuing a warning >>> perhaps. >> Thinking deeper about it you're probably right: a successfull >> compilation is the most important thing to make sure the user tries the >> program. So, I've changed it from an error to a big warning. Without >> wxSTC now compilations will proceed but wxLuaApp and wxLuaEdit apps will >> be disabled. > > Nice, thanks :-) > > Just a note: I've just recompiled wxLua from updated CVS sources, and > this change was not yet there. In fact, 'wxluasetup.h' is still being > installed at 'src/wxbind/setup/' (and this was fixed a week ago, > perhaps). Does the SourgeForge CVS take so much time to make the > updates available or I am doing something wrong here? reading SF status page I see that anonymous-developer CVS synch is still not working... that's a real pity :( Hopefully it will be reenabled before next release. Francesco |
From: John L. <jla...@gm...> - 2006-04-03 01:27:58
|
On 4/2/06, Francesco Montorsi <f18...@ya...> wrote: > Leandro Motta Barros ha scritto: > > CVS was up, so I was able to try the very latest wxLua version. > strange: I still get errors when trying to access it - maybe only > developer CVS is down ? John, are you able to access it ? Not yet. :/ > > So > > far, I have just created a very simple C++application that links to > > wxLua and runs a script that creates an user interface (I just grabbed > > the script at wxLua's front page). > > > > I have just took a very quick look at the examples that come with > > wxLua, but it seems that the one I created is simpler than those, so > > it may be useful for other beginners, too. I've uploaded it to > > http://cscience.org/~lmb/MinimalEmbeddedWXLuaApp.zip. If the current > > distribution really lacks an example as simple as this one, please > > feel free to review and add this one to the distribution or to the > > wxLua page. This is hopefully what the "freeze" type program will do. It has to be written of course, but it'll be simple like yours. > > Up to this moment, I have only five notes: > > > > 1. My wxWidgets installation doesn't include wxSTC, and I had to You're using a RPM of wxWidgets or something else? > > manually pass the '--disable-wxbindstc' flag to the 'configure' > > script. It would be nice if 'configure' could test for 'wxSTC' > > presence and disable it automatically if it isn't found. > configure already tests for wxSTC... didn't you get a message 'wxSTC > could not be found etc etc' ? > > It does not disable it automatically if not found for choice: wxSTC is > required for both wxLuaApp and wxLuaEdit applications... if you don't > have wxSTC then you miss two nice apps ;) > > > 2. The file 'wxluasetup.h' was not installed by 'make install'. I had > > to copy manually. > this is sure a big problem - thanks for reporting it. > Fixed in CVS (wxluasetup.h was erroneously installed into > $PREFIX/src/wxbind/setup instead of $PREFIX/include/wxbind/setup) Thanks. > > 3. I think that the 'include' directory in '#include > > <wxbind/include/wxbind.h>' is a bit cumbersome (I would prefer just > > something like '#include <wxbind/wxbind.h>', for example). I can live > > with this, though. :-) > this was not to pollute the compiler line with a lot of include paths > (we would need one for each subfolder in modules\ ...). Agreed, this may not be "standard", but all you have to include is the modules dir to get everything. > > 4. I had to link with 'wxlua_gtk2_wxluasocket-2.6', even though I > > don't use sockets. Otherwise, I get some linking errors concerning > > names that I would expect to find at 'wxlua_gtk2_wxluadebug-2.6' > > instead: The problem is from the wxluasetup.h having #define wxLUA_USE_wxLuaDebugServer 1 which makes the wxlbind lib #include "wxluasocket/include/wxldserv.h" This is set by default so that the wxlua app program works. We had a discussion a while back about how to most simply allow multiple wxluasetup.h files to generate different wxbind libs for different programs, but found that "tricks" that would work for one compiler would fail for others. > > /usr/local/lib/libwxlua_gtk2_wxbind-2.6.so: undefined reference to > > `wxLuaDebugServer::DisplayStackDialog(wxWindow*)' > > /usr/local/lib/libwxlua_gtk2_wxbind-2.6.so: undefined reference to > > `wxLuaDebugServer::wxLuaDebugServer(int)' ... > > 5. Calling the Lua 'print()' function from a script run using > > 'wxLuaState::RunFile()' doesn't print anything at the terminal. Is > > this being redirected to somewhere? > these last two are meat for John, I think ;) It's being sent as an wxEVT_LUA_CONSOLE (see wxlstate.h) event from the function wxLua_lua_printFunction that's pushed on the lua_State, see bool wxLuaState::Create(wxEvtHandler *handler, wxWindowID id) I think you can just call wxLuaState::RegisterFunction(NULL, wxT("print")); to get back the original print function. or pushing the original function back will work lbaselib.c:static int luaB_print (lua_State *L) > > I'll now start to try doing some real work with wxLua. So far it looks = great! > > > > Regards and congratulations for the work, > Thanks! Thanks, John Labenski |
From: Leandro M. B. <lmb...@gm...> - 2006-04-03 01:43:12
|
T24gNC8yLzA2LCBKb2huIExhYmVuc2tpIDxqbGFiZW5za2lAZ21haWwuY29tPiB3cm90ZToKCj4g PiA+IDEuIE15IHd4V2lkZ2V0cyBpbnN0YWxsYXRpb24gZG9lc24ndCBpbmNsdWRlIHd4U1RDLCBh bmQgSSBoYWQgdG8KPgo+IFlvdSdyZSB1c2luZyBhIFJQTSBvZiB3eFdpZGdldHMgb3Igc29tZXRo aW5nIGVsc2U/CgpTb21ldGhpbmcgZWxzZSA6LSkgIEkgdXNlIGEgcXVpdGUgYWx0ZXJuYXRpdmUg ZGlzdHJpYnV0aW9uCih3d3cuZ29ib2xpbnV4Lm9yZyksIHdoaWNoIGhhcyBhIHZlcnkgb3duIHBh Y2thZ2luZyBhbmQgY29tcGlsaW5nCnN5c3RlbS4KCkJ1dCBubyBwcm9ibGVtIGZvciBtZSBoZXJl LiBTbyBmYXIgSSdtIG5vdCBtaXNzaW5nIHd4THVhRWRpdCBhbmQgZnJpZW5kcy4KCj4gPiA+IDMu IEkgdGhpbmsgdGhhdCB0aGUgJ2luY2x1ZGUnIGRpcmVjdG9yeSBpbiAnI2luY2x1ZGUKPiA+ID4g PHd4YmluZC9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