We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi , I am using processing v2.1.1 and when I run the following code , it gives me this error - A library used by this sketch is not installed properly.
import SimpleOpenNI.*;
SimpleOpenNI context;
void setup() {
size ( 640 , 480 ) ;
context = new SimpleOpenNI( this );
context.setMirror( true ) ;
context.enableDepth();
}
void draw() {
context.update();
image(
context.depthImage() , 0 , 0 );
}
Can anyone help me with this? Thanks in advance :)
Answers
Even if the library was installed correctly your sketch will not run because of the syntax errors on lines 14 and 15.
How did you install the library? Go to Sketch | Import Sketch | Add Sketch and select this library. - is the preferred way.
I think there's no syntax error there. Just a statement split in another line! >-)
I do that all the time to avoid incurring in too long lines! :bz
Have you installed the library? You don't even tell us that.
Have you read How to Install a Contributed Library?