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 |