lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 10/18/05, Nick Trout <nick@rockstarvancouver.com> wrote:
>
> SWIG doesn't work with Lua (since 3.2 I think).
>
Sure????

Test this:

Download:
 http://prdownloads.sourceforge.net/swig/swig-1.3.27.tar.gz

In a debian system:

./configure --with-luaincl=/usr/include/lua50
make
make install

cd swig-1.3.27/Examples/lua
cd class
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:.
replace in swig-1.3.27/Examples/Makefile "-llua -llualib" by "-llua50
-llualib50"
make
lua runme.lua


Bye.

> Nick
>
> > -----Original Message-----
> > From: lua-bounces@bazar2.conectiva.com.br [mailto:lua-
> > bounces@bazar2.conectiva.com.br] On Behalf Of Rafael Meneses Osorio
> > Sent: Monday, October 17, 2005 6:52 PM
> > To: Lua list
> > Subject: Re: [OT] Are you using tolua or tolua++?
> >
> > Nick Trout wrote:
> > > AFAIK tolua is discontinued, you have to use tolua++. You can find an
> > example of use here: http://doris.sf.net/ . You might also want to look at
> > LuaBind. This will be slightly more complicated to set up (templates a la
> > Boost.Python style). Or, if you are only binding a few functions/objects
> > I'd suggest doing it by hand as it's a lot less hassle.
> > >
> > > In summary: For a large, established API auto generate binding with
> > tolua++. For smaller API: bind by hand with LuaBind or Lua C API.
> > >
> > > Nick
> > >
> >
> > And swig....
> >
> >
> > I use the http://www.swig.org auto generate binding, it is good.
> > Specifically the latest version:
> > http://prdownloads.sourceforge.net/swig/swigwin-1.3.27.zip
> >
> > Bye...
> > >
> > >>-----Original Message-----
> > >>From: lua-bounces@bazar2.conectiva.com.br [mailto:lua-
> > >>bounces@bazar2.conectiva.com.br] On Behalf Of Jose Marin
> > >>Sent: Monday, October 17, 2005 4:46 AM
> > >>To: lua@bazar2.conectiva.com.br
> > >>Subject: [OT] Are you using tolua or tolua++?
> > >>
> > >>Hello.
> > >>
> > >>This week I'll start working on a commercial product,
> > >>and need a binding tool for Lua.
> > >>
> > >>I would like to know what binding system are you
> > >>using.
> > >>
> > >>I'm between tolua and tolua++.
> > >>
> > >>Which one is more stable/fast/reliable?
> > >>
> > >>I know this question was asked several times, but a
> > >>new version of tolua++ arrived, and I would like to
> > >>know if someone has some good experience with that.
> > >>
> > >>I will need simple functions and class bindings,
> > >>nothing very complex.
> > >>
> > >>Has someone some suggestion?
> > >>
> > >>Thanks.
> > >>
> > >>José
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>_______________________________________________________
> > >>Promoção Yahoo! Acesso Grátis: a cada hora navegada você acumula cupons
> > e
> > >>concorre a mais de 500 prêmios! Participe! http://yahoo.fbiz.com.br/
> > >
> > >
> > >
>
>
>


--
Rafael Meneses
http://www.labsd.inf.utfsm.cl/~rmeneses