On Fri, Oct 15, 2010 at 4:02 PM, Jean-Yves F. Barbier <12u...@gmail.com> wrote: > On Fri, 15 Oct 2010 13:14:04 -0400, John Labenski <jlaben...@gmail.com> > > # make > (cd ./modules/ && make ) > make[1]: entrant dans le répertoire > « /usr/src/LOCAL/LUA/wxLua_CVS_NCP/modules > » /usr/src/LOCAL/LUA/wxLua/bk-deps g++ -c -o wxbindadv_dll_wxadv_bind.o > -I.pch/wxprec_wxbindadv_dll -I../modules/wxbind/setup -I../modules -I./.. > -I/usr/include/lua5.1 -DWXMAKINGDLL_WXBINDADV -fPIC -DPIC > -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 > -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread > -DwxLUA_USEBINDING_WXMEDIA=0 -I/usr/src/LOCAL/LUA/wxstedit/include > -O2 ./wxbind/src/wxadv_bind.cpp > ./wxbind/src/wxadv_bind.cpp:30:23: > erreur: .pch/wxprec_wxbindadv_dll/wx/wxprec.h : Aucun fichier ou dossier de > ce type > make[1]: *** [wxbindadv_dll_wxadv_bind.o] Erreur 1 > make[1]: quittant le répertoire « /usr/src/LOCAL/LUA/wxLua_CVS_NCP/modules > » > make: *** [modules] Erreur 2
wx/wxprec.h should be from wxWidgets/include/wx/wxprec.h not .pch/wxprec_wxbindadv_dll/wx/wxprec.h, which I'm sure shouldn't exist. Is wxprec.h not in /usr/include/wx-2.8? > Yep for almost all, except I have 2 msgs for both wxSashLayoutWindow & > wxSashWindow: xxxxxx must have a top level windows as parent. > > I don't remember if it was the case yesterday, but I clearly remember > that first time I tested it I had these widgets working. This is probably ok, I don't get this message for some reason, but the controls.wx.lua sample exercises nearly every control in wxWidgets that wxLua wraps and stuffs them into a wxScrolledWindow just for demo purposes. This is something that nobody would do in practice. You can also use the Makefiles to build wxLua. For example, go into wxLua/apps/wxlua/src and type $make. This will build wxLua using the Lua in wxLua/modules/lua and put the libs into the dir that $wx-config --exec-prefix returns. You can override where the libs are built into by using this. $make WXLUA_LIBDIR=/path/to/where/you/want/the/libs/put If you poke though the Makefiles and wxLua/build/Makefile_wx-config.in and Makefile_wx-config_targets.in you can override all of the variables on the command line as above. >> Try putting some print statements for the wxBitmapCombobox to prove >> that it's really valid and works. >> >> print(control:GetSize():GetWidth()) >> print(control:GetName()) > > Don't work: > > $ lua JY_controls.wx.lua > lua: JY_controls.wx.lua:515: wxLua: Unable to call an unknown method > 'GetSize' on a 'wxBitmapComboBox' type. stack traceback: > [C]: ? > JY_controls.wx.lua:515: in function 'CreateControlsWindow' > JY_controls.wx.lua:1085: in function 'main' > JY_controls.wx.lua:1124: in main chunk > [C]: ? Interesting? I'd stick with the CVS version in case there was some bug in the bindings back then, but I don't think that's the case. In any case since you're building it, use the CVS version, that's what I use. Regards, John ------------------------------------------------------------------------------ Download new Adobe(R) Flash(R) Builder(TM) 4 The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly Flex(R) Builder(TM)) enable the development of rich applications that run across multiple browsers and platforms. Download your free trials today! http://p.sf.net/sfu/adobe-dev2dev _______________________________________________ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users