Exporting Application with GStreamer
in
Contributed Library Questions
•
1 year ago
Hey all,
I'm trying to export an application I built with GSVideo, OpenCV and ControlP5. The App runs just fine in the Processing IDE but when I go to kick out an application, it crashes. Upon checking out the console I realize theres an Unsatisfied Link Error and It cant download the GStreamer Library. The Error looks like this :
10/12/12 7:50:45.920 PM [0x0-0x408408].LaserTestCV_nocapture: starting camera
10/12/12 7:50:45.925 PM [0x0-0x408408].LaserTestCV_nocapture: GSVideo version: 1.0.0
10/12/12 7:50:46.034 PM [0x0-0x408408].LaserTestCV_nocapture: Exception in thread "Animation Thread" java.lang.UnsatisfiedLinkError: Unable to load library 'gstreamer-0.10': dlopen(libgstreamer-0.10.dylib, 9): image not found
10/12/12 7:50:46.034 PM [0x0-0x408408].LaserTestCV_nocapture:
at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:163)
10/12/12 7:50:46.034 PM [0x0-0x408408].LaserTestCV_nocapture:
at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:236)
10/12/12 7:50:46.034 PM [0x0-0x408408].LaserTestCV_nocapture:
at com.sun.jna.Library$Handler.<init>(Library.java:140)
10/12/12 7:50:46.034 PM [0x0-0x408408].LaserTestCV_nocapture:
at com.sun.jna.Native.loadLibrary(Native.java:379)
10/12/12 7:50:46.034 PM [0x0-0x408408].LaserTestCV_nocapture:
at org.gstreamer.lowlevel.GNative.loadNativeLibrary(GNative.java:48)
10/12/12 7:50:46.034 PM [0x0-0x408408].LaserTestCV_nocapture:
at org.gstreamer.lowlevel.GNative.loadLibrary(GNative.java:45)
10/12/12 7:50:46.034 PM [0x0-0x408408].LaserTestCV_nocapture:
at org.gstreamer.lowlevel.GstNative.load(GstNative.java:42)
10/12/12 7:50:46.034 PM [0x0-0x408408].LaserTestCV_nocapture:
at org.gstreamer.lowlevel.GstNative.load(GstNative.java:39)
10/12/12 7:50:46.035 PM [0x0-0x408408].LaserTestCV_nocapture:
at org.gstreamer.Gst.<clinit>(Gst.java:97)
10/12/12 7:50:46.035 PM [0x0-0x408408].LaserTestCV_nocapture:
at codeanticode.gsvideo.GSVideo.initImpl(Unknown Source)
10/12/12 7:50:46.035 PM [0x0-0x408408].LaserTestCV_nocapture:
at codeanticode.gsvideo.GSVideo.init(Unknown Source)
10/12/12 7:50:46.035 PM [0x0-0x408408].LaserTestCV_nocapture:
at codeanticode.gsvideo.GSCapture.initGStreamer(Unknown Source)
10/12/12 7:50:46.035 PM [0x0-0x408408].LaserTestCV_nocapture:
at codeanticode.gsvideo.GSCapture.<init>(Unknown Source)
10/12/12 7:50:46.035 PM [0x0-0x408408].LaserTestCV_nocapture:
at LaserTestCV_nocapture.setup(LaserTestCV_nocapture.java:94)
10/12/12 7:50:46.035 PM [0x0-0x408408].LaserTestCV_nocapture:
at processing.core.PApplet.handleDraw(PApplet.java:1608)
10/12/12 7:50:46.035 PM [0x0-0x408408].LaserTestCV_nocapture:
at processing.core.PApplet.run(PApplet.java:1530)
10/12/12 7:50:46.035 PM [0x0-0x408408].LaserTestCV_nocapture:
at java.lang.Thread.run(Thread.java:680)
Now my question is, how is it that the IDE can run this? I see the Library in the processing libraries section but what file system must I have in my app to make the image be found? Any help would be awesome!
Thanks
K
EDIT :
I found the solution I ended up just having to copy the GStreamer library files into the Contents/Resources/Java directory in the package contents. Works for me.
1