Re: loadlib problems
Status: Alpha
Brought to you by:
cwalther
From: Aidan G. <wgs...@ih...> - 2008-12-02 08:36:39
|
Christian Walther wrote: > I suspect that your error is "file not found" - the library will > certainly not be found inside a zipped project, and even in an > unzipped project, unless you changed the working directory to there, > it won't be found inside the node if you just say "hello.so" without a > path. Ah, it finds it, if I give it the full path. It doesn't seem to like relative paths (or, more likely, I can't figure out what the working directory is). > (As noted in commit message 188: "plugin support is quick-and-dirty > for now, there is no standard way to locate plugins, and no formal API > for plugins to interact with Pipmak". The former issue will be > addressed in the real module support that I should be working on.) I don't know if this could be done, but how about changing Pipmak to look for plug-ins (when loadlib() is called, maybe write a wrapper function) in a directory named "plugins" in the same directory as the Pipmak project? (i.e. all plug-in paths are relative to the "plugins" directory.) So the directory structure might look like this... loadlibTest/ |-- loadlibTest.pipmak | |-- 1 | | |-- face.png | | `-- node.lua | `-- main.lua `-- plugins `-- hello.so -Aidan |