We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
UnsatisfiedLinkError (Read 3754 times)
UnsatisfiedLinkError
Mar 5th, 2009, 3:27am
 
Hello All,

My Processing seems have some problems.
When I test it with some simple codes by using Video Library,
I still got some errors. My codes and the errors are below:


import processing.video.*;

Movie myMovie;

void setup() {
 size(640, 480, P2D);
 background(0);
 // Load and play the video in a loop
 myMovie = new Movie(this, "station.mov");
 myMovie.loop();
}

void movieEvent(Movie myMovie) {
 myMovie.read();
}

void draw() {
 tint(255, 20);
 image(myMovie, mouseX-myMovie.width/2, mouseY-myMovie.height/2);
}

java.lang.reflect.InvocationTargetException
at java.awt.EventQueue.invokeAndWait(EventQueue.java:997)
at quicktime.QTSession.<clinit>(QTSession.java:92)
at processing.video.Movie.init(Movie.java:112)
at processing.video.Movie.<init>(Movie.java:101)
at processing.video.Movie.<init>(Movie.java:89)
at Loop.setup(Loop.java:34)
at processing.core.PApplet.handleDraw(PApplet.java:1400)
at processing.core.PApplet.run(PApplet.java:1328)
at java.lang.Thread.run(Thread.java:637)
Caused by: java.lang.UnsatisfiedLinkError: /System/Library/Java/Extensions/libQTJNative.jnilib:
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1822)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1715)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1030)
at quicktime.QTSession$1.run(QTSession.java:94)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:300
)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:210)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:200
)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:195)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:187)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Exception in thread "Animation Thread" java.lang.UnsatisfiedLinkError: quicktime.QTSession.Gestalt(I[I)S
at quicktime.QTSession.Gestalt(Native Method)
at quicktime.QTSession.gestalt(QTSession.java:933)
at quicktime.QTSession.open(QTSession.java:639)
at quicktime.QTSession.open(QTSession.java:606)
at processing.video.Movie.init(Movie.java:112)
at processing.video.Movie.<init>(Movie.java:101)
at processing.video.Movie.<init>(Movie.java:89)
at Loop.setup(Loop.java:34)
at processing.core.PApplet.handleDraw(PApplet.java:1400)
at processing.core.PApplet.run(PApplet.java:1328)
at java.lang.Thread.run(Thread.java:637)


I checked my Java Is SE6 version,
My Mac OS is 10.5.6
And my QT is 7.6

And I have also checked for my folder, /System/Library/Java/Extensions/, the libQTJNative.jnilib is existed.

But When I use my PC to test to code,it seems ok.So what is the problems of my Mac? How Can I solve this problem?
Re: UnsatisfiedLinkError
Reply #1 - Mar 27th, 2009, 7:48pm
 
Having the same problem here..

Even when tryed with other video libraries i get some kind of error in the creation of the video object.


help please..

thanks
Re: UnsatisfiedLinkError (work around)
Reply #2 - Apr 19th, 2009, 10:46am
 
I figured out a work around.  Basically it looks like some funky interplay between 64bit and 32bit JavaQT libs and processing.  

To fix:

Launch the Java Preferences App located in /Applications/Utilities/Java

Drag any 32bit version of the JVM to the top of the list (the best I had was a 32bit version of 1.5).

Now relaunch processing and try to run your code.

Chris
Re: UnsatisfiedLinkError
Reply #3 - Apr 19th, 2009, 10:50am
 
Having poked around a bit more, it seems Apple has dropped QT java support entirely in 1.6.  I don't believe there any future plans to support it.  So what is the processing community going to do to fill this void?  Is there any ability to do native movie playing in java.  I've found robust movie support in java to be pretty lackluster.  Maybe things have evolved a bit since then.

http://www.beatunes.com/news/labels/QuickTime.html

Chris
Re: UnsatisfiedLinkError
Reply #4 - Apr 22nd, 2009, 8:57am
 
Yes, is too bad. I´m trying to use oscP5 lib along with movieMaker and
its impossible. With 32 bits video is ok but no OSC response and with 64 bits
OSC ok but no video. the same UnsatisfiedLinkError..
can I do something? Sad

Thanks¡
Spektor
Re: UnsatisfiedLinkError
Reply #5 - Sep 5th, 2009, 7:47am
 
I'm new to processing, but wouldn't it be possible to use the gstreamer plugin and maybe get codecs from fluendo?
Page Index Toggle Pages: 1