We are about to switch to a new forum software. Until then we have removed the registration on this forum.
When trying to run a sketch while using the OpenKinect Processing library, I am met with this error:
"A library relies on native code that's not available. Or only works properly when the sketch is run as a 32-bit application."
Looking up different solutions, I've even installed the Boost C++ library for my mac and I am still getting the error. Does anyone have a solution?
Here's my code:
import org.openkinect.*; import org.openkinect.processing.*;
Kinect k;
void setup(){
size(640, 480);
k = new Kinect(this);
k.start();
k.enableRGB(true);
}
void draw(){
PImage img = k.getVideoImage();
image(img, 0, 0);
}
Answers
it depends on your system but I think you need to install libfreenect.
I've worked on a new version of the library that is (hopefully) compiled for 64-bit. Please test! (The point of this library is that it contains libfreenect and therefore you do not have to install it.)
https://github.com/shiffman/OpenKinect-for-Processing
Also:
https://github.com/shiffman/OpenKinect-for-Processing/issues/2
hi guys,
I've installed the openkinect libarary as well and i get the same error. I've tried the 32 and the 64 bit processing. I'm running on a PC.
hello @shiffman ! Big fan,
Say, your libKinect.jnilib in your dropbox, is there one for Linux 64? I'm running into the same errors stated in those threads running Ubuntu 14.04.
cheers.
I haven't tried getting it to work in linux but others have.
http://therandomlab.blogspot.co.uk/2011/02/kinect-with-processing-on-ubuntu.html
Hope this helps and let me know how it works!
Thanks so much @shiffman! I'll check that out... I hadn't seen these.