...I've been trying to get [pix_freeframe] to work, but no luck: I keep get bad memory accesses! I just don't know much in the way of unix string tricks :-( Here's what I was trying:
char *extension= #ifdef __WIN32__ ".dll"; #elif defined __APPLE__ ".frf"; #else ".so"; #endif
int fd=-1;
// Hoops to jump thru for apple's bundle structure :-( #ifdef __APPLE__ strcat(extension, "/"); strcat(extension, pluginname); #endif if ((fd=open_via_path(canvas_getdir(getCanvas())->s_name, pluginname, extension, buf2, &bufptr, MAXPDSTRING, 1))>=0){
...my first thought is just to see if we can append ".frf/ nameOfPlugin", which would be a symbolic link to the more deeply buried binary in the bundle...if that works, that'd be fine, but if not, we could try appending ".frf/Versions/A/nameOfPlugin", which is the explicit bundle location...
help? jamie
james tittle wrote:
...I've been trying to get [pix_freeframe] to work, but no luck: I keep get bad memory accesses! I just don't know much in the way of unix string tricks :-( Here's what I was trying:
char *extension= #ifdef __WIN32__ ".dll"; #elif defined __APPLE__ ".frf"; #else ".so"; #endif
i have committed a version that is working (on my machine). let's see if it likes bundles
int fd=-1;
// Hoops to jump thru for apple's bundle structure :-( #ifdef __APPLE__ strcat(extension, "/"); strcat(extension, pluginname); #endif
i don't know what's so cool with strcat()...i prefer sprintf()
if ((fd=open_via_path(canvas_getdir(getCanvas())->s_name, pluginname, extension, buf2, &bufptr, MAXPDSTRING, 1))>=0){
oh, i just noticed that i used extension="" and set pluginname="name.frf/name". so this might still not work with the bundle (but it might as well work) - left as an excercise for th adept programmer..;-)
mfg.a IOhannes
On Feb 15, 2006, at 3:58 PM, IOhannes m zmoelnig wrote:
oh, i just noticed that i used extension="" and set pluginname="name.frf/name". so this might still not work with the bundle (but it might as well work)
- left as an excercise for th adept programmer..;-)
...cool, I think was able to complete the "exercise" last nite ;-) It works now, at least meaning that it can load plugins by name from a pdpath...however, it brings up two things:
1. I need to altivec the yuv to rgb(a) 2. I tried to get the parameters to work on a still image (ie. a single frame from [pix_film]), but even adding setPixModified(); to the parmsMess() doesn't help :-( I thought we used to be able to modify a single frame: or was I asleep when this changed?
jamie