Ok,
       Was finally able to run wxlua applications. They seem to be running
but the media.wx.lua does not run. Gives the error:

lua: media.wx.lua:131: attempt to call field 'wxMediaCtrl' (a nil value)
stack traceback:
media.wx.lua:131: in function 'main'
media.wx.lua:305: in main chunk
[C]: ?


Don't know why that is the case. Also don't have the wxlua executable
anywhere. I only see wxluacan and wxluafreeze. I did skip the wxstedit
compilation, maybe that prevented wxlua creation? Trying wxstedit
compilation now but it just won't compile. First there were include files
it could not find now I get this error on running make:

g++ -o ../samples/stedit/wxstedit wxstedit_wxstedit.o  -L../lib  -L../lib
 -lwxcode_gtk2u_stedit-2.8 -L/usr/local/lib -pthread   -lwx_gtk2u_stc-2.8
-lwx_gtk2u_html-2.8 -lwx_gtk2u_adv-2.8 -lwx_gtk2u_core-2.8 -lwx_baseu-2.8
/usr/lib/gcc/i686-linux-gnu/4.6.1/../../../../lib/libwx_gtk2u_stc-2.8.so:
undefined reference to `wxGCDC::wxGCDC(wxWindowDC const&)@WXU_2.8'
/usr/lib/gcc/i686-linux-gnu/4.6.1/../../../../lib/libwx_gtk2u_stc-2.8.so:
undefined reference to `wxGCDC::SetPen(wxPen const&)@WXU_2.8'
/usr/lib/gcc/i686-linux-gnu/4.6.1/../../../../lib/libwx_gtk2u_stc-2.8.so:
undefined reference to `wxGCDC::~wxGCDC()@WXU_2.8'
/usr/lib/gcc/i686-linux-gnu/4.6.1/../../../../lib/libwx_gtk2u_stc-2.8.so:
undefined reference to `wxGCDC::SetBrush(wxBrush const&)@WXU_2.8'
collect2: ld returned 1 exit status
make: *** [../samples/stedit/wxstedit] Error 1


Any tips on how to get wxlua IDE? Thats the main thing I want to get.

Thanks,
Milind

On Mon, Dec 26, 2011 at 11:01 AM, Milind Gupta <milind.gu...@gmail.com>wrote:

> Hi John,
>                 Thank you very much for your reply.t worked after that and
> so did make install. But now when I try the example on the wxLua website:
>
> require("wx")
> frame = wx.wxFrame(wx.NULL, wx.wxID_ANY, "wxLua Minimal Demo",
>                    wx.wxDefaultPosition, wx.wxSize(450, 450),
>                    wx.wxDEFAULT_FRAME_STYLE)
>
> -- create a simple file menu
> local fileMenu = wx.wxMenu()
> fileMenu:Append(wx.wxID_EXIT, "E&xit", "Quit the program")
> -- create a simple help menu
> local helpMenu = wx.wxMenu()
> helpMenu:Append(wx.wxID_ABOUT, "&About",
>                 "About the wxLua Minimal Application")
>
> -- create a menu bar and append the file and help menus
> local menuBar = wx.wxMenuBar()
> menuBar:Append(fileMenu, "&File")
> menuBar:Append(helpMenu, "&Help")
> -- attach the menu bar into the frame
> frame:SetMenuBar(menuBar)
>
> -- create a simple status bar
> frame:CreateStatusBar(1)
> frame:SetStatusText("Welcome to wxLua.")
>
> -- connect the selection event of the exit menu item to an
> -- event handler that closes the window
> frame:Connect(wx.wxID_EXIT, wx.wxEVT_COMMAND_MENU_SELECTED,
>               function (event) frame:Close(true) end )
> -- connect the selection event of the about menu item
> frame:Connect(wx.wxID_ABOUT, wx.wxEVT_COMMAND_MENU_SELECTED,
>         function (event)
>             wx.wxMessageBox('This is the "About" dialog of the Minimal
> wxLua sample.',
>                             "About wxLua",
>                             wx.wxOK + wx.wxICON_INFORMATION,
>                             frame)
>         end )
>
> -- finally, show the frame window
> frame:Show(true)
>
>
>
>
> I get these messages and nothing happens:
>
> (lua5.1:11526): Gtk-WARNING **: Unable to locate theme engine in
> module_path: "pixmap",
>
> (lua5.1:11526): Gtk-WARNING **: Unable to locate theme engine in
> module_path: "pixmap",
>
> (lua5.1:11526): Gtk-WARNING **: Unable to locate theme engine in
> module_path: "pixmap",
>
> (lua5.1:11526): Gtk-WARNING **: Unable to locate theme engine in
> module_path: "pixmap",
>
>
> I am not sure what is wrong. Any help would be really appreciated.
> Another thing is that when I type wxlua on the prompt it says command not
> found. How do I run the integrated IDE provided by wxlua?
>
> Thanks,
> Milind
>
>
> Date: Mon, 26 Dec 2011 08:53:56 -0500
> From: John Labenski <jlaben...@gmail.com>
> Subject: Re: [wxlua-users] cannot make wxlua on Ubuntu
> To: wxlua-users@lists.sourceforge.net
> Message-ID:
>        <caak6ofehbusulcn_agddn3tiqceaspcfe3tax9bl28p84uh...@mail.gmail.com
> >
> Content-Type: text/plain; charset="windows-1252"
>
> As a temporary measure, if you don't plan on using a wxImageHistogram, you
> can rem out the contents of that funtion and have it return 0. I'll look
> into it in the new year.
>
> Regards,
>    John
>
> On Dec 26, 2011 3:34 AM, "Milind Gupta" <milind.gu...@gmail.com> wrote:
>
> > Hi,
> >              When I make wxLua by following the installtion instructions
> I
> > get the following error:
> >
> >  make
> > (cd ./modules/ && make )
> > make[1]: Entering directory `/home/aryajur/Downloads/wxLua/modules'
> > /home/aryajur/Downloads/wxLua/bk-deps g++ -c -o
> > wxbindcore_dll_wxcore_image.o -I.pch/wxprec_wxbindcore_dll
> > -I../modules/wxbind/setup -I../modules -I./.. -I/usr/include/lua5.1
> > -DWXMAKINGDLL_WXBINDCORE -fPIC -DPIC
> > -I/usr/local/lib/wx/include/gtk2-unicode-release-2.8
> > -I/usr/local/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES
> > -D__WXGTK__ -pthread -DwxLUA_USEBINDING_WXGL=0
> -DwxLUA_USEBINDING_WXMEDIA=0
> > -DwxLUA_USEBINDING_WXSTC=0 -O2 ./wxbind/src/wxcore_image.cpp
> > ./wxbind/src/wxcore_image.cpp: In function ?int
> > wxLua_wxImageHistogram_iterator_op_inc(lua_State*)?:
>
> > ./wxbind/src/wxcore_image.cpp:2296:54: error: taking address of
> temporary
> > [-fpermissive]
> > make[1]: *** [wxbindcore_dll_wxcore_image.o] Error 1
> > make[1]: Leaving directory `/home/aryajur/Downloads/wxLua/modules'
> > make: *** [modules] Error 2
> > aryajur@aryajur-ThinkPad-X61-Tablet:~/Downloads/wxLua$ make -fpermissive
> > make: permissive: No such file or directory
> > make: *** No rule to make target `permissive'.  Stop.
> >
> >
> > Please can anybody help me resolve this. Or is there an easier way to
> > install wxLua???
> >
> > Thanks,
> > Milind
> >
> >
> > ------------------------------------------------------------
> ------------------
> > Write once. Port to many.
> > Get the SDK and tools to simplify cross-platform app development. Create
> > new or port existing apps to sell to consumers worldwide. Explore the
> > Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
> > http://p.sf.net/sfu/intel-appdev
> > _______________________________________________
> > wxlua-users mailing list
> > wxlua-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wxlua-users
> >
> >
------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to