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