I am using Mac OS 10.5 with Processing 1.1 and the latest version of GSVideo I saw (0.6-pre5).
I unpacked the zip file into ~/Documents/Processing/libraries as instructed, then ran the mac-specific script that generates the GSProcessing script. I am starting Processing via that script.
I wrote this 2-line script to test:
import codeanticode.gsvideo.*;
GSCapture video = new GSCapture(this, 160, 120, 15);
But I keep getting an UnsatisfiedLinkError. I have seen other posts involving this, usually pointing to incorrect environment variables and such, but I know they are set properly from the GSProcessing script I'm launching this from. Indeed, it seems to load gstreamer-0.10.dylib just fine, but it crashes on some dependency on libxml2. Here is the stack trace:
processing.app.debug.RunnerException: UnsatisfiedLinkError: Unable to load library 'gstreamer-0.10': dlopen(/lib/libgstreamer-0.10.dylib, 9): Library not loaded: /opt/local/lib/libxml2.2.dylib
Reason: Incompatible library version: libgstreamer-0.10.dylib requires version 10.0.0 or later, but libxml2.2.dylib provides version 9.0.0
at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:164)
at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:237)
at com.sun.jna.Library$Handler.<init>(Library.java:140)
at com.sun.jna.Native.loadLibrary(Native.java:375)
at org.gstreamer.lowlevel.GNative.loadNativeLibrary(GNative.java:48)
at org.gstreamer.lowlevel.GNative.loadLibrary(GNative.java:45)
at org.gstreamer.lowlevel.GstNative.load(GstNative.java:42)
at org.gstreamer.lowlevel.GstNative.load(GstNative.java:39)
at org.gstreamer.Gst.<clinit>(Gst.java:59)
at codeanticode.gsvideo.GSVideo.init(GSVideo.java:87)
at codeanticode.gsvideo.GSCapture.init(GSCapture.java:310)
at codeanticode.gsvideo.GSCapture.initOS(GSCapture.java:295)
at codeanticode.gsvideo.GSCapture.<init>(GSCapture.java:53)
at sketch_jul10a.setup(sketch_jul10a.java:24)
at processing.core.PApplet.handleDraw(PApplet.java:1571)
at processing.core.PApplet.run(PApplet.java:1496)
at java.lang.Thread.run(Thread.java:613)
Admittedly, I'm pretty new to Macs, but this error message references something in /opt/local/lib, which doesn't exist on my machine. I have no idea what's going on here, and am also curious about why it's not trying to load libxml-2.2.7.3.dylib which is included in the GSVideo distribution. Anyone have any tips?