[PD] new luagl

marius schebella marius.schebella at gmail.com
Fri Jul 25 18:56:57 CEST 2008


Claude Heiland-Allen wrote:
> marius schebella wrote:
>> marius schebella wrote:
>>> when I compiled the new pdlua version, the make process grabed the 
>>> sources from http://www.lua.org/ftp/ and built a static lua library 
>>> (which I don't think includes any opengl functionality).
> 
> True, no opengl stuff in Lua, have to get an external library.
> 
>>> I would be ok with any other version of luagl or opengl -- actually I 
>>> would prefer the branch that wesley smith is working on for his luaAV 
>>> project. wesley's opengl binaries get compiled as opengl.o 
>>
>> sorry, "opengl.so"
>>
>>> and I am not sure, if I can use them at all??
> 
> Then require("opengl") should work, if the opengl.so is in the Lua 
> package path (including next to your .pd_lua file).  At least I managed 
> to load a test package into pdlua and list its contents..

hi,
thanks for the reply, I am confident to get it working, hoping, that it 
will not take too long. a short note here:

error: lua: error loading `msgltest1':
[string "msgltest1"]:1: module 'opengl' not found:
	no field package.preload['opengl']
	no file '/Users/marius/pd/pdlua/opengl'
	no file '/Users/marius/pd/pdlua/opengl.lua'
	no file './opengl.lua'
	no file '/usr/local/share/lua/5.1/opengl.lua'
	no file '/usr/local/share/lua/5.1/opengl/init.lua'
	no file '/usr/local/lib/lua/5.1/opengl.lua'
	no file '/usr/local/lib/lua/5.1/opengl/init.lua'
	no file './opengl.so'
	no file '/usr/local/lib/lua/5.1/opengl.so'
	no file '/usr/local/lib/lua/5.1/loadall.so'

it seems pdlua is only looking for the "so" extension in /usr/local/lib...
creating a symlink without the extension solved this for now.
marius.




More information about the Pd-list mailing list