[PD] pdlua (was Re: Pd and SQL)

IOhannes m zmölnig via Pd-list pd-list at lists.iem.at
Sat Jul 19 13:34:03 CEST 2014


On 07/19/2014 09:17 AM, IOhannes m zmölnig via Pd-list wrote:
> 
> i then managed to build pdlua using:
> 
> $ make LUACFLAGS="$(pkg-config --cflags lua5.2 pd)" LIBS="$(pkg-config
> --libs lua5.2 pd)"
> 
> but this somehow feels wrong because it overrides the "-DVERSION=..." of
> LUACFLAGS.
> what is the proper way to *only* set the lua-cflags / -libs from the
> cmdline?
> 
> the build correctly loads the hello.pd_lua, but i tested list-pak and it
> throws me a number of errors:
> 
>> lua: error in dispatcher:
>> [string "list-pak"]:51: attempt to call field 'getn' (a nil value)

after a bit of research this turned out to be a "problem" in lua: the
table.getn() function has been deprecated in lua5.1 and removed in
lua5.2, hence those lua-externs are no longer working with recent
versions of lua.

similariy [lexpr] doesn't work any more since getfenv/setfenv have been
removed in lua5.2

these probably should be fixed by some lua savy.

gfmadsr
IOhannes


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 880 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20140719/db1013ca/attachment.sig>


More information about the Pd-list mailing list