Page 1 of 2
Lua PureLibrary deprecated?
Posted: Fri Sep 10, 2010 3:53 am
by tutiplain
Hi,
I was just looking for a Lua plugin/library for PureBasic, but the only one I can find, called PBLua is deprecated. Does this mean it is no longer developed, that it doesn't work with the latest version of PB, or what? Is there a newer library that can be used? Thanks for any info!
Re: Lua PureLibrary deprecated?
Posted: Fri Sep 10, 2010 6:07 am
by ts-soft
Re: Lua PureLibrary deprecated?
Posted: Fri Sep 10, 2010 11:55 am
by PureLeo
Cool ts-soft!
Do I need to include any dll with the compiled app?
Re: Lua PureLibrary deprecated?
Posted: Fri Sep 10, 2010 12:08 pm
by ts-soft
PureLeo wrote:Cool ts-soft!
Do I need to include any dll with the compiled app?
no, is a static lib, not a importlib
Re: Lua PureLibrary deprecated?
Posted: Fri Sep 10, 2010 12:31 pm
by PureLeo
Very nice!
Do you have a help file?
Thanks!
Re: Lua PureLibrary deprecated?
Posted: Fri Sep 10, 2010 1:06 pm
by cas
You kidding? Its Lua, you can find it all over the web.
http://www.lua.org/manual/5.1/
Re: Lua PureLibrary deprecated?
Posted: Fri Sep 10, 2010 10:11 pm
by PureLeo
I know cas,
It's because i had another lua lib and it's functions names were different in some cases, like
lua_baseopen -> luaopen_base
So i didn't know if these functions were documented, etc
Re: Lua PureLibrary deprecated?
Posted: Sat Sep 11, 2010 9:01 am
by Peyman
and you can download lua library 5.1.4 from here :
http://sourceforge.net/projects/luabina ... p/download
or lua 5.2work2 from here :
http://sourceforge.net/projects/luabina ... p/download
but i wonder if somebody know a link to a X64 lua library or can create it with mingw.
Re: Lua PureLibrary deprecated?
Posted: Mon Sep 13, 2010 7:03 pm
by X
I need to 2nd this request as well. A 64bit version would be extremely helpful.
Re: Lua PureLibrary deprecated?
Posted: Tue Sep 14, 2010 2:55 pm
by hallodri
Re: Lua PureLibrary deprecated?
Posted: Tue Sep 14, 2010 10:38 pm
by Peyman
thanks hallodri, you create this lib by yourself ? i think this a lua 4 library because it use lua_open for creating lua state instead luaL_newstate, but anyway it works on PB 64 bit.
can you explain more ?
Re: Lua PureLibrary deprecated?
Posted: Wed Sep 15, 2010 5:21 am
by hallodri
That was an old version. Although I have tried to compile the new version, but there were a few mistakes in PureBasic.
Re: Lua PureLibrary deprecated?
Posted: Wed Sep 15, 2010 7:15 am
by Peyman
what mistakes ? actually i have mistake to build static lua library by myself (because i want modify lua then compile it) i use latest MinGW compiler but all time it creates a lua library for me that cant load lua strings and gets me Invalid memory access in calling luaL_loadstring and dont know what is my mistake (i want break my head), can you create a 32bit static lua library that works good with PB (by yourself)?
Re: Lua PureLibrary deprecated?
Posted: Fri Sep 17, 2010 7:27 pm
by hallodri
Peyman wrote:what mistakes ? actually i have mistake to build static lua library by myself (because i want modify lua then compile it) i use latest MinGW compiler but all time it creates a lua library for me that cant load lua strings and gets me Invalid memory access in calling luaL_loadstring and dont know what is my mistake (i want break my head), can you create a 32bit static lua library that works good with PB (by yourself)?
try this 32bit version
www.realsource.de/tmp/lua5.1.32.rar
Re: Lua PureLibrary deprecated?
Posted: Sat Sep 18, 2010 4:47 pm
by Peyman
wow, yea its work. you create it by yourself ? can you say how you create it or share source ? with what compiler ?