Help with openkinect for Processing: I'm getting an UnsatisfiedLinkError

314 views
Skip to first unread message

Miles

unread,
Dec 29, 2010, 5:31:44 PM12/29/10
to OpenKinect
Hi all, I'm trying to get some of the examples in Daniel Shiffman's
updated Kinect library to work. (Although I tried nearly every other
kinect library for processing and the results seem to be the same) I
installed openkinect, and have all the libraries in the right place.
I'm not really sure what the problem is, but the glview test works
fine with the Kinect plugged in. I'm running Leopard and am using
Processing 1.21. Any help would be appreciated.

Here are the errors:

processing.app.debug.RunnerException: UnsatisfiedLinkError: /Users/
aeouthoeuth/Desktop/projects/processing/libraries/openkinect/library/
libKinect.jnilib:
at processing.app.Sketch.placeException(Sketch.java:1543)
at processing.app.debug.Runner.findException(Runner.java:583)
at processing.app.debug.Runner.reportException(Runner.java:558)
at processing.app.debug.Runner.exception(Runner.java:498)
at processing.app.debug.EventThread.exceptionEvent(EventThread.java:
367)
at processing.app.debug.EventThread.handleEvent(EventThread.java:255)
at processing.app.debug.EventThread.run(EventThread.java:89)
Exception in thread "Animation Thread"
java.lang.UnsatisfiedLinkError: /Users/aoeuaoeu/Desktop/projects/
processing/libraries/openkinect/library/libKinect.jnilib:
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1822)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1739)
at java.lang.Runtime.loadLibrary0(Runtime.java:822)
at java.lang.System.loadLibrary(System.java:993)
at org.openkinect.Context.<clinit>(Context.java:43)
at org.openkinect.processing.Kinect.start(Kinect.java:40)
at RGBDepthTest.setup(RGBDepthTest.java:33)
at processing.core.PApplet.handleDraw(PApplet.java:1583)
at processing.core.PApplet.run(PApplet.java:1503)
at java.lang.Thread.run(Thread.java:613)


Phoenix Perry

unread,
Dec 30, 2010, 12:34:44 AM12/30/10
to openk...@googlegroups.com
Might be this. You don't open the glview when you start up processing, in fact it must be closed. You don't need anything but the processing lib in place. I keep meaning to make a tutorial but I returned my iPhone 4.
Any help?
Nix

Sent from my iPad

Miles

unread,
Dec 30, 2010, 2:31:23 AM12/30/10
to OpenKinect
No, I still get the error. I'm sure the library is in the right place,
otherwise the example wouldn't even run. Can you just clarify
something if I had to install openkinect through terminal to get the
processing library to work? Or does it work independent of that? I
also don't think that could be messing it up because I got the error
before I installed openkinect. It might be worth pointing out that the
openframeworks example works as well, and the Kinect light is blinking
green if that helps, even when I try to run the processing examples.
Other people on the processing forum seem to have this issue as well,
though I can see why it would be hard to troubleshoot. Anyway, I can
return it if no progress is made.

Thanks so much,

Miles


On Dec 30, 12:34 am, Phoenix Perry <spidersanddiamo...@gmail.com>
wrote:
> Might be this. You don't open the glview when you start up processing, in fact it must be closed.  You don't need anything but the processing lib in place.  I keep meaning to make a tutorial but I returned my iPhone 4.
> Any help?
> Nix
>
> Sent from my iPad
>

Miles

unread,
Dec 30, 2010, 9:52:11 AM12/30/10
to OpenKinect
It occurred to me that everyone is running snow leopard, do you think
this could be contributing to the problem?

On Dec 30, 12:34 am, Phoenix Perry <spidersanddiamo...@gmail.com>
wrote:
> Might be this. You don't open the glview when you start up processing, in fact it must be closed.  You don't need anything but the processing lib in place.  I keep meaning to make a tutorial but I returned my iPhone 4.
> Any help?
> Nix
>
> Sent from my iPad
>

Daniel Shiffman

unread,
Dec 30, 2010, 11:36:30 AM12/30/10
to openk...@googlegroups.com
Hi Miles,

Unfortunately, I'm still stranded outside of NYC due to the weather so
don't have access to my computer or kinect, but when I get back this
weekend I'll look into this. It's likely I might have compiled the
JNILIB for snow leopard only, though I really thought I set the xcode
settings for 10.5.

Usually if it's a leopard vs. snow leopard issue you get an error
saying something like "no matching architecture", the error you have
is more like one where the file is in the wrong place.

Are you sure your library files are all there, i.e.:

/Processing/libraries/openkinect/library/openkinect.jar
/Processing/libraries/openkinect/library/libKinect.jnilib

The error is referencing your desktop. In your preferences where is
your default sketch folder? Is it your desktop?

Dan

Miles

unread,
Dec 30, 2010, 12:53:41 PM12/30/10
to OpenKinect
Hi Dan,

Thanks for the reply. The library is in the right place, I just
checked, and my sketchbook is in a folder on my desktop by default.
This morning I tested the library on a Macbook running Snow Leopard
and the examples worked fine. I think Leopard might be the problem,
and if it can't be fixed I have no problem upgrading to Snow Leopard.

Thanks so much,

Miles

Phoenix Perry

unread,
Dec 30, 2010, 3:50:39 PM12/30/10
to openk...@googlegroups.com
You don't need anything installed through terminal for Dan's library
to work! You and I went the long way around!
Daniel you should document this! :)
Nix

Miles

unread,
Dec 30, 2010, 6:08:58 PM12/30/10
to OpenKinect
Yeah, I realize that now. Just out of curiosity, are you running Snow
Leopard? I'm debating whether or not to go out and buy it tomorrow, if
that's why I'm getting the error.

On Dec 30, 3:50 pm, Phoenix Perry <spidersanddiamo...@gmail.com>
wrote:
Reply all
Reply to author
Forward
0 new messages