On Tue, Nov 23, 2010 at 12:16 AM, John Labenski <jlaben...@gmail.com> wrote:

> > On Wed, Nov 3, 2010 at 1:02 PM, Ryan Pusztai <rpusz...@gmail.com> wrote:
> >>
> >> Hi,
> >>
> >> I have downloaded the latest release of wxLua and built it using the
> >> documented method from the wxLua website (./configure, make, sudo make
> >> install). After I 'sudo make install' and I try to just simply 'require(
> >> "wx" )' and call wx.wxMessageBox("Hello") I get a Segmentation fault. It
> is
> >> building wxLua v2.8.10 with wxWidgets version 2.8.11. Any thoughts?
> >> Terminal output:
> >>   $ lua
> >>   Lua 5.1.4  Copyright (C) 1994-2008 Lua.org, PUC-Rio
> >>   > require( "wx" )
> >>   > wx.wxMessageBox("hi")
> >>   Segmentation fault
> >
> > Any ideas about this? I sent it quite a while ago and not sure if anyone
> has
> > an idea. Thanks.
>
> Sorry no ideas. I would guess that you have mismatched versions of
> Lua. Maybe you have a system Lua installed or two versions of
> wxWidgets on your system? I would try running ldd on the wxlua libs
> and make sure that everything is in order. You can also try to execute
> the program using the lua executable that wxLua compiles, i.e. don't
> install it, but run everything from the directory you built it in, use
> $export LD_LIBRARY_PATH=/path/to/wxlua/libs to force it to find the
> proper ones.
>

Well I don't have more than one version of Lua or wxWidgets installed. I
installed them directly form the apt repository in Ubuntu. I checked ldd and
did not find any .so that linked to anything outside the systems version of
Lua.  Could it be a difference because wxLua is bound to 2.8.10 and the
version I am building is using 2.8.11?

I also tried using the local only versions and it still segmentation faults.

So I did find out that if I use 'wxlua' to run the scripts everything works
fine. So it seems to be erroring out using the wxLua Lua module (wx.so) from
strait lua. Does that help at all? In fact, it is not the line of requiring
that seg faults, it is the first time you call into the library and display
a GUI element (like a wxMessageBox). Now if I pass the wrong parameters to a
function in wxLua it will give me the normal wxLua error message. It does
not actually seg fault on that. Does this help?
-- 
Regards,
Ryan
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to