shiffman / libfreenect

Just working on Processing library here
http://www.shiffman.net
122 stars 55 forks source link

Unsatisfied Link Error with Processing 2b06 #22

Closed atrostor closed 10 years ago

atrostor commented 11 years ago

Like many other external libraries, openkinect P5 seems to be broken with the 6th beta of Processing 2. Here is the error I am getting with the example sketches:

Exception in thread "Animation Thread" java.lang. UnsatisfiedLinkError: /Users/username/Documents/Processing/libraries/openkinect/library/libKinect.jnilib: no suitable image found. Did find: /Users/username/Documents/Processing/libraries/openkinect/library/libKinect.jnilib: mach-o, but wrong architecture at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1827) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1742) at java.lang.Runtime.loadLibrary0(Runtime.java:823) at java.lang.System.loadLibrary(System.java:1045) at org.openkinect.Context.(Context.java:43) at org.openkinect.processing.Kinect.start(Kinect.java:43) at org.openkinect.processing.Kinect.start(Kinect.java:39) at AveragePointTracking$KinectTracker.(AveragePointTracking.java:111) at AveragePointTracking.setup(AveragePointTracking.java:41) at processing.core.PApplet.handleDraw(PApplet.java:2103) at processing.core.PGraphicsJava2D.requestDraw(PGraphicsJava2D.java:190) at processing.core.PApplet.run(PApplet.java:2006) at java.lang.Thread.run(Thread.java:680)

Any ideas?

Thanks!

crecord commented 11 years ago

I am having the same issue. Did you find another way to work with the kinect and processing? I tried simple open ni, but had similar issues.

digitalcoleman commented 11 years ago

Switch to 32bit in the Processing preferences - not an awesome solution, but will have to do until this gets updated.

donpork commented 11 years ago

I'm also having the same issue--both with openkinect and simple open ni. I believe it has to do with the newer kinect model 1473. Changing it to 32-bit mode gives me this error:

Exception in thread "Animation Thread" java.lang.NullPointerException at org.openkinect.processing.Kinect.enableDepth(Kinect.java:84) at DepthThreshold.setup(DepthThreshold.java:41) at processing.core.PApplet.handleDraw(PApplet.java:2241) at processing.core.PGraphicsJava2D.requestDraw(PGraphicsJava2D.java:243) at processing.core.PApplet.run(PApplet.java:2140) at java.lang.Thread.run(Thread.java:680)

lineacurva commented 11 years ago

So it probably is, do you have an error like this?

-----> https://github.com/shiffman/libfreenect/issues/23

MuseSheng commented 11 years ago

I'm not sure, I haven't touched this model, but I'm going to try it.

2013/4/6 lineacurva notifications@github.com

So it probably is, do you have an error like this?

-----> #23 https://github.com/shiffman/libfreenect/issues/23

— Reply to this email directly or view it on GitHubhttps://github.com/shiffman/libfreenect/issues/22#issuecomment-15992985 .

jesperalmstrom commented 10 years ago

Help me test this out: https://github.com/jesperalmstrom/libfreenect/blob/master/wrappers/java/processing/distribution/openkinect.zip

shiffman commented 10 years ago

Ok, thanks to @jesperalmstrom this should be all set in the new version! File future issues here:

https://github.com/shiffman/OpenKinect-for-Processing