Is there anyone know how to fix webcam/video capture in proclipsing
in
Integration and Hardware
•
1 year ago
Really like the feature of eclipse, running Processing under eclipse.
But could not manage to get webcam work under eclipse.
Found Eric's solution about exporting file, not sure is that really work on this problem. I can really understand how to implement.
https://forum.processing.org/topic/proclipsing-trouble-especially-with-opengl-read-this
The code below is just from Processing's example. Is there any idea here?
package tryvideo;
import processing.core.PApplet;
import processing.video.*;
public class TryVideo extends PApplet {
Capture cam;
public void setup() {
size(640, 480);
cam = new Capture(this, 320, 240);
}
public void draw() {
if (cam.available() == true) {
cam.read();
image(cam, 160, 100);
}
}
}
java.lang.reflect.InvocationTargetException
at java.awt.EventQueue.invokeAndWait(EventQueue.java:1091)
at quicktime.QTSession.<clinit>(QTSession.java:94)
at processing.video.Capture.init(Capture.java:167)
at processing.video.Capture.<init>(Capture.java:154)
at processing.video.Capture.<init>(Capture.java:111)
at tryvideo.TryVideo.setup(TryVideo.java:11)
at processing.core.PApplet.handleDraw(PApplet.java:1608)
at processing.core.PApplet.run(PApplet.java:1530)
at java.lang.Thread.run(Thread.java:680)
Caused by: java.lang.UnsatisfiedLinkError: /System/Library/Java/Extensions/libQTJNative.jnilib: no suitable image found. Did find: /System/Library/Java/Extensions/libQTJNative.jnilib: no matching architecture in universal wrapper
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1827)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1716)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1045)
at quicktime.QTSession$1.run(QTSession.java:96)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:682)
at java.awt.EventQueue.access$000(EventQueue.java:85)
at java.awt.EventQueue$1.run(EventQueue.java:643)
at java.awt.EventQueue$1.run(EventQueue.java:641)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:652)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
But could not manage to get webcam work under eclipse.
Found Eric's solution about exporting file, not sure is that really work on this problem. I can really understand how to implement.
https://forum.processing.org/topic/proclipsing-trouble-especially-with-opengl-read-this
The code below is just from Processing's example. Is there any idea here?
package tryvideo;
import processing.core.PApplet;
import processing.video.*;
public class TryVideo extends PApplet {
Capture cam;
public void setup() {
size(640, 480);
cam = new Capture(this, 320, 240);
}
public void draw() {
if (cam.available() == true) {
cam.read();
image(cam, 160, 100);
}
}
}
java.lang.reflect.InvocationTargetException
at java.awt.EventQueue.invokeAndWait(EventQueue.java:1091)
at quicktime.QTSession.<clinit>(QTSession.java:94)
at processing.video.Capture.init(Capture.java:167)
at processing.video.Capture.<init>(Capture.java:154)
at processing.video.Capture.<init>(Capture.java:111)
at tryvideo.TryVideo.setup(TryVideo.java:11)
at processing.core.PApplet.handleDraw(PApplet.java:1608)
at processing.core.PApplet.run(PApplet.java:1530)
at java.lang.Thread.run(Thread.java:680)
Caused by: java.lang.UnsatisfiedLinkError: /System/Library/Java/Extensions/libQTJNative.jnilib: no suitable image found. Did find: /System/Library/Java/Extensions/libQTJNative.jnilib: no matching architecture in universal wrapper
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1827)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1716)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1045)
at quicktime.QTSession$1.run(QTSession.java:96)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:682)
at java.awt.EventQueue.access$000(EventQueue.java:85)
at java.awt.EventQueue$1.run(EventQueue.java:643)
at java.awt.EventQueue$1.run(EventQueue.java:641)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:652)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
1