Hi there,

CVS was up, so I was able to try the very latest wxLua version. 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.

2. The file 'wxluasetup.h' was not installed by 'make install'. I had
to copy manually.

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. :-)

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?

I'll now start to try doing some real work with wxLua. So far it looks great!

Regards and congratulations for the work,

LMB

Reply via email to