My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
Installation  
How to install.
Phase-Deploy
Updated Mar 6, 2012 by m...@paus.ch

Introduction

Before you can use SimpleOpenNI you have to install Processing and OpenNI.


Processing

  • Download Processing for your platform and install it

Windows

Install OpenNI,NITE and the Sensor Driver

If everything worked out, you should see the camera in your Device Manager(under PrimeSensor : Kinect Camera, Kinect Motor).

Install SimpleOpenNI (Processing < 2.0)

  • Download SimpleOpenNI
  • Copy the 'SimpleOpenNI.zip' into this folder:
  • C:\Users\'your username'\Documents\Processing\libraries
  • If you don't have this folder then create it.
  • If you use the 64bit version, verify if you run Processing with 64bit. Mainly you have to install a 64bit Java version, also you have to remove the Java folder in the Processing folder.

OSX

I made a little installer(see Install OpenNI the short way), if this doesn't work for you, than you should install it the offical way. For my tests i used only OSX 10.6., with 10.5 i had some problems.

Install OpenNI the short way

  • Download the Installer
  • Unzip the file and open a terminal window
  • Go to the unzipped folder 'OpenNI_NITE_Installer-OSX'
  • > cd ./OpenNI_NITE_Installer-OSX 
  • Start the installer
  • > sudo ./install.sh

Install OpenNI the official way

Those programs have to be on your system in order to install OpenNI:

  • Install OpenNI
Open the terminal and type in those commands:
> sudo port install git-core 
> sudo port install libtool
> sudo port install libusb-devel +universal
> mkdir ~/Development/Kinect
> cd Kinect
> tar xvf OpenNI-Bin-MacOSX-v1.0.0.25.tar.bz2
> sudo ./install.sh
> mkdir ~/Development/Kinect
> cd ~/Development/Kinect
> mkdir OpenNI
> mkdir Nite
> cd OpenNI
> tar xvf OpenNI-Bin-MacOSX-v1.0.0.25.tar.bz2
> sudo ./install.sh

...

Install SimpleOpenNI (Processing < 2.0)

  • Download SimpleOpenNI
  • Copy the 'SimpleOpenNI.zip' into this folder:
  • /Users/'your username'/Documents/Processing/libraries
  • If you don't have this folder then create it.

Linux

Install OpenNI,NITE and the Sensor Driver

  • Download Installation Package Linux64
  • Uncompress all files to a folder
  • Install OpenNI:
  • > cd ./yourFolder/OpenNI-Bin-Linux64-v1.1.0.41 
    > sudo ./install
  • Install Nite( the installer asks you for the key, enter this 0KOIk2JeIBYClPWVnMoRKn5cdY4= ):
  • > cd ./yourFolder/Nite-1.3.1.5
    > sudo ./install
  • Install Driver Kinect (only if you use a Kinect):
decompress ./yourFolder/avin2-SensorKinect-28738dc/SensorKinect-Bin-Linux64-v5.0.1.32.tar.bz2
> cd ./yourFolder/SensorKinect-Bin-Linux64-v5.0.1.32
> sudo install
  • Install Driver Primesense (only if you use an Asus Xtion or the Primesense Developer Kit):
  • > cd ./yourFolder/Sensor-Bin-Linux64-v5.0.1.32
    > sudo ./install

Install SimpleOpenNI (Processing < 2.0)

  • Download SimpleOpenNI
  • Copy the 'SimpleOpenNI.zip' into this folder:
  • ~/sketchbook/libraries
  • If you don't have this folder then create it.

Comment by pugli...@gmail.com, Mar 28, 2011

thank you so much!

the osx installer works like charm

roberto

Comment by arin...@gmail.com, May 7, 2011

Hi, I have created a Java wrapper around PrimeSense?'s kinect driver for windows: http://sourceforge.net/projects/jkinect/ Installation is very easy. this facebook page is for this tool: facebook.com/EngineerArinG follow me on twitter for new releases: @EngineerArinG

Comment by philip.andrews@gmail.com, Jul 12, 2011

ok, im feeling like a real dummy, but i cant get the library to work with PDE. I've downloaded SimpleOpenNI-0.20-win32.zip unzipped it to C:\Users\phil\Documents\Processing\libraries\SimpleOpenNI

Then if i open any of the examples i get

Exception in thread "Animation Thread" java.lang.UnsatisfiedLinkError?: C:\Users\phil\Documents\Processing\libraries\SimpleOpenNI\library\SimpleOpenNI.dll: The specified procedure could not be found

Am i missing something?

Comment by philip.andrews@gmail.com, Jul 12, 2011

my bad. i had old versions of primesense. Working perfectly with OpenNi? 1.1.0.35 and NITE 1.3.1.3 Great job!

Comment by jonlu...@gmail.com, Aug 5, 2011

Where is the Processing folder on Windows 7?

Comment by alex.sle...@gmail.com, Sep 22, 2011

I have had to add the explicit "." at the beginning of my CLASSPATH env var. Without it, the SimpleOpenNI jar will complain about not being able to find SimpleOpenNI.dll . This is philip.andrews problem, I believe. Please consider adding the directive or a troubleshooting note about this.

jonlu: the Processing folder (I assume you mean where you put the libraries) is in your Documents folder. It will show up on the first run of Processing. Please note that you will probably have to create a folder named "libraries" inside of /Users/<User>/Documents/Processing/ then put the SimpleOpenNI folder in the libraries folder.

Comment by George.P...@gmail.com, Sep 23, 2011

I am having the exact same problem. with the simpleopenni and processing. I put it in my libraries folder, and every time I try to run the examples i get.

Exception in thread "Animation Thread" java.lang.UnsatisfiedLinkError??: C:\Users\phil\Documents\Processing\libraries\SimpleOpenNI\library\SimpleOpenNI.dll: The specified procedure could not be found

The error pops up right here:

context = new SimpleOpenNI(this);

It says I am missing dependent libraries. Any help would be great?

Comment by lei.pou....@gmail.com, Oct 14, 2011

I have the same issue as George, Anyone know what I need to do to fix this problem?

Comment by tmarkm...@gmail.com, Oct 16, 2011

Java probably can't find the binary part of the SimpleOpenNI Java binding. You'd need to put the SimpleOpenNI.dll (Win) or libSimpleOpenNI.dylib (Mac) somewhere Java can find it, i.e. the bin folder of your Eclipse project.

Comment by aud...@gmail.com, Oct 29, 2011

You should probably include something about requiring the program at http://processing.org/ for those of us that are not in the know.

Comment by admin...@gmail.com, Nov 15, 2011

I did everything that's in the guide but I keep getting this error massage. I am running Ubuntu 64bit and I have Processing installed Exception in thread "Animation Thread" java.lang.UnsatisfiedLinkError?: /home/My_Name?/Documents/sketchbook/libraries/SimpleOpenNI/library/libSimpleOpenNI.so: libboost_thread.so.1.46.1: cannot open shared object file: No such file or directory

at java.lang.ClassLoader?$NativeLibrary?.load(Native Method) at java.lang.ClassLoader?.loadLibrary0(ClassLoader?.java:1928) at java.lang.ClassLoader?.loadLibrary(ClassLoader?.java:1854) at java.lang.Runtime.loadLibrary0(Runtime.java:845) at java.lang.System.loadLibrary(System.java:1084) at SimpleOpenNI.SimpleOpenNI.<clinit>(SimpleOpenNI.java:33) at sketch_nov15a.setup(sketch_nov15a.java:36) at processing.core.PApplet.handleDraw(Unknown Source) at processing.core.PApplet.run(Unknown Source) at java.lang.Thread.run(Thread.java:722)

Comment by shubhamP...@gmail.com, Dec 6, 2011

Hello team,

I am trying to setup environment for my Ubuntu10.10 32 bit. I manually download stable release "openni-bin-linux32-v1.3.3.5" and as you suggest did "sudo install". But I am getting error "install: missing file operand".

pls suggest me what I am doing wrong?

Comment by shubhamP...@gmail.com, Dec 6, 2011

After installing every thing when I am trying to execute given package example ...it prompting me "Device: PrimeSense?/SensorV2?/5.0.0.24: The device is not connected!".

What I am doing wrong/missing?

thanks

Comment by carlos....@gmail.com, Dec 9, 2011

I can not install on macosx 10.7.2 when I arrive at this stage I can not run this command: mkdir ~ / Development / Kinect > Cd Kinect > Tar-xvf OpenNI Bin-MacOSX-v1.0.0.25.tar.bz2 > Sudo. / Install.sh

the following message appears MacBook?-Pro-for-Carlos: Kinect P4nick $ sudo. / Install.sh sudo. / install.sh: command not found

please help.. carlos.m4r@gmail.com

Comment by itsjun...@gmail.com, Dec 12, 2011

Hello guys i have installed the latest development edition of the OpenNI package and have installed SensorKinect? and also have installed the SimpleOpenNI libraries as instructed above for Processing.

this is what i get:

SimpleOpenNI Version 0.20 SimpleOpenNI Error: ContextWrapper?::init

SimpleOpenNI not initialised SimpleOpenNI not initialised

does anyone has an idea what should i fix?

Comment by itsjun...@gmail.com, Dec 12, 2011

and no examples run as well :C

Comment by nas-s...@web.de, Dec 13, 2011

Hi! I'm having the the same problem as George and Lei with the new SimpleOpenNi? version 0.2.2 I have been working with the old SimpleOpenNi? 0.2 and did not had the problem before. Unfortunately only the new version is downloadable now. Max do you have any ideas how to solve this? Putting the libSimpleOpenNI.jnilib into the local java directory did not help so I switched back to the old version...... thanks!

Comment by batth...@gmail.com, Dec 14, 2011

i cannot install on osx lion.

from this point: > mkdir ~/Development/Kinect

no such file or directory

Comment by batth...@gmail.com, Dec 14, 2011

also if i just use the installer i get this:

Gaspar-Batthas-MacBook?-Pro:~ gasparbattha$ > sudo /Users/gasparbattha/Downloads/OpenNI_NITE_Installer-OSX/install.sh cp: ./data/ni: No such file or directory mkdir: /usr/etc: File exists cp: ./data/primesense: No such file or directory cp: ./data/libOpenN.dylib: No such file or directory cp: ./data/libnim.dylib: No such file or directory cp: ./data/libXn.dylib: No such file or directory mkdir: /opt: File exists mkdir: /opt/local: File exists mkdir: /opt/local/lib: File exists cp: ./data/libusb-1.0.0.dylib: No such file or directory

Comment by joel.p.b...@gmail.com, Dec 29, 2011

Can I echo the comment by aud...@gmail.com above? The instructions (and the similar ones in the "Making Things See" book) seem to assume we've got the Processing app installed already. I'm happy to advertise my ignorance: I came here to learn how to set this up from scratch; I'm not enhancing an already-running system with a different set of drivers.

Comment by kwil...@gmail.com, Jan 10, 2012

If you are receiving the error:

Exception in thread "Animation Thread" java.lang.UnsatisfiedLinkError??

And you used the ZigfuDevBundle? as suggested in the book MakingThingsSee?, you may want to uninstall the OpenNI, NITE and sensor drivers that it installed (basically everything with a publisher of PrimaSense?) and then re-install them following the instructions above. The versions installed in the Zigfu bundle are out of date and don't work with the 0.24 version of SimpleOpenNI. After reinstalling the newer versions from the links above, the error went right away. BTW...I'm running Windows Vista Home Premium. Good Luck

Comment by jcoter...@gmail.com, Jan 17, 2012

All worked fine for me with SimpleOpenNI-0.24-win32

thanks a lot.

Comment by amircata...@gmail.com, Jan 18, 2012

Hi! We have updated the ZigFu? Dev Bundle to the latest version of OpenNI (with calibration-free skeleton support) and it should work with SimpleOpenNI and Processing.

Comment by Mhamuil...@gmail.com, Feb 3, 2012

No library found for oscP5 No library found for netP5 As of release 1.0, libraries must be installed in a folder named 'libraries' inside the 'sketchbook' folder.

what happen ?? help me please

Comment by dunlapa...@gmail.com, Feb 11, 2012

I can't install under 32-bit linux. I ran the install.sh script in each directory, and they all gave me the error: /usr/bin/niReg: cannot execute binary file I'm suspecting that this is a 64 vs 32 bit problem -- are there 32 bit versions of these programs?

Comment by Bradley....@gmail.com, Feb 11, 2012

A few notes about the Linux 64-bit install:

1) Install Command -> "sudo ./install.sh" NOT "sudo install" 2) Libraries Folder -> ~/sketchbook/libraries may not actually be in your home folder.

When you open processing go to FILE->PREFERENCES. The first line should say "Sketchbook Location". This is the folder in which you want to create a folder called "libraries", and then put SimpleOpenNI into that "libraries" folder. SimpleOpenNI should be unzipped before placing it in that folder.
3) Java Problem -> Processing ships with its own version of java. That version is the 32-bit
version. So, in order to use processing you're going to have to replace that version of java. First download the 64-bit java JDK at: http://www.oracle.com/technetwork/java/javase/downloads/jdk-7u2-download-1377129.html. Then copy the download into the directory that contains your installation of processing (the one with these files: java lib modes processing revisions.txt tool) Untar the file: tar xzf jdk-7u2-linux-x64.tar.gz Remove the old java: sudo rm -r java Rename the new java: mv jdk-7u2-linux-x64.tar.gz java

That should do it!!! At least, that's what worked for me.

Comment by glamorou...@gmail.com, Feb 20, 2012

Hi! I ran into problems when I tried to launch the circle example after installing everything and put things in right folder. I got an error "UnsatisfiedLinkError?: SimpleOpenNI.SimpleOpenNIJNI.swig_module_init()V" when I was trying to run exmaple. Could someone help me out? Thanks a lot!

Comment by amandath...@gmail.com, Feb 22, 2012

Echoing dunlapa... above: running into a problem with niReg when trying to install on 32bit ubuntu 10.4,

OpenNI-Bin-Dev-Linux-x64-v1.5.2.7$ sudo ./install.sh

gets this error (after copying shared libraries, executables, include files, creating database directory... OK):

registering module 'libnimMockNodes.so'.../usr/bin/niReg: 1: Syntax error: Unterminated quoted string

Comment by wmwan...@gmail.com, Feb 22, 2012

If you are running Win 7 64 bit, you need to uninstall the Kinect SDK and follow the install guide for 64 bit Windows. This solve the issue of "Can't find Depthmap"

Comment by wx12...@gmail.com, Feb 24, 2012

I have the same problem with amandath...@gmail.com OpenNI-Bin-Dev-Linux-x64-v1.5.2.7$ sudo ./install.sh

gets this error (after copying shared libraries, executables, include files, creating database directory... OK):

registering module 'libnimMockNodes.so'.../usr/bin/niReg: 1: Syntax error: Unterminated quoted string

Comment by nlong1...@gmail.com, Feb 24, 2012

I have a different issue as the rest of the people here, i think. I have installed the OpenNI binaries correctly because when running the example "depthimage" it is able to read the libraries but cannot find the device: "maybe the camera is not connected". I realized that only my audio drivers are installed (also the green light only flashes) went back and reinstalled individually all of the binaries and libraries restarted my computer reconnected the kinect and still only have the audio drivers. How do i install the existing drivers? also upon reading further in my device manager i should be able to see audio video and motor under primesense. All i see is audio under microsoft kinect in my device manager. PLEASE HELP!!

Comment by armandom...@gmail.com, Feb 25, 2012

What happend with this:

OpenNI-Bin-Dev-Linux-x64-v1.5.2.7# ./install.sh Installing OpenNI

copying shared libraries...OK copying executables...OK copying include files...OK creating database directory...OK registering module 'libnimMockNodes.so'.../usr/bin/niReg: 1: Syntax error: Unterminated quoted string

My ubuntu system is 32 bits ? is this error ? what can i do ?...

Comment by jerome.b...@gmail.com, Feb 25, 2012

Hi, I have the same issue as nlong1, the message is that the camera is flashing and the Kinect is not recognized. I tried the installation on both Windows and Mac and similar issue.

Could it be because there is no driver yet for Kinect for Windows available ? This seems to me the only potential explanation.

Thanks in advance for your help

Comment by docdavie...@gmail.com, Feb 26, 2012

I get the following error in Processing...:

Can't find the SimpleOpenNI library : java.lang.UnsatisfiedLinkError?: C:\Users\doc\Documents\Processing\libraries\SimpleOpenNI\library\SimpleOpenNI.dll: Can't find dependent libraries Exception in thread "Animation Thread" java.lang.UnsatisfiedLinkError?: SimpleOpenNI.SimpleOpenNIJNI.swig_module_init()V

at SimpleOpenNI.SimpleOpenNIJNI.swig_module_init(Native Method) at SimpleOpenNI.SimpleOpenNIJNI.<clinit>(SimpleOpenNIJNI.java:1542) at SimpleOpenNI.ContextWrapper?.<init>(ContextWrapper?.java:54) at SimpleOpenNI.SimpleOpenNI.<init>(SimpleOpenNI.java:192) at DepthImage?.setup(DepthImage?.java:40) at processing.core.PApplet.handleDraw(Unknown Source) at processing.core.PApplet.run(Unknown Source) at java.lang.Thread.run(Thread.java:662)

I thought I installed the proper libraries...

Any help?

Comment by ign...@gmail.com, Feb 29, 2012

hi

I am new to kinect, i installed openni,nite and kinectsensor drivers and i run the samples given in primesense folder. Examples are executed and my kinect is working.

I was copied SimpleOpenNI folder into C:\Users\username\Documents\Processing this path. And i am trying to use this(import SimpleOpenNI.;) in the program in VC++ 2010 but there, it gives errors.

Errors:
IntelliSense?: identifier "import" is undefined IntelliSense?: variable "SimpleOpenNI" is not a type name

please Can any one solve my problem

Comment by ign...@gmail.com, Feb 29, 2012

hi

I am new to kinect, i installed openni,nite and kinectsensor drivers and i run the samples given in primesense folder. Examples are executed and my kinect is working.

I was copied SimpleOpenNI folder into C:\Users\username\Documents\Processing this path. And i am trying to use this(import SimpleOpenNI.;) in the program in VC++ 2010 but there, it gives errors.

Errors: IntelliSense??: identifier "import" is undefined IntelliSense??: variable "SimpleOpenNI" is not a type name

please Can any one solve my problem

Comment by lwcas...@gmail.com, Mar 4, 2012

If you get issues with not being able to find the SimpleOpenNI library you probably are using 32 bit Java on a 64bit system. You can have a 64bit system but download everything in 64bit without updating your java then you'll get that error. I think it should work if you either get 64bit java or just download everything in 32bit. Just get everything to match.

Can't find the SimpleOpenNI library : java.lang.UnsatisfiedLinkError??: C:\Users\doc\Documents\Processing\libraries\SimpleOpenNI\library\SimpleOpenNI.dll: Can't find dependent libraries Exception in thread "Animation Thread" java.lang.UnsatisfiedLinkError??: SimpleOpenNI.SimpleOpenNIJNI.swig_module_init()V

at SimpleOpenNI.SimpleOpenNIJNI.swig_module_init(Native Method) at SimpleOpenNI.SimpleOpenNIJNI.<clinit>(SimpleOpenNIJNI.java:1542) at SimpleOpenNI.ContextWrapper??.<init>(ContextWrapper??.java:54) at SimpleOpenNI.SimpleOpenNI.<init>(SimpleOpenNI.java:192) at DepthImage??.setup(DepthImage??.java:40) at processing.core.PApplet.handleDraw(Unknown Source) at processing.core.PApplet.run(Unknown Source) at java.lang.Thread.run(Thread.java:662) I thought I installed the proper libraries...

Comment by phreddo...@gmail.com, Mar 6, 2012

Linux OpenNI Installation on a fresh Ubuntu 11.1. (PC) does not work. Trying to install uncompresses OpenNI with the Terminal command "sudo ./install,sh -i" from the uncompressed "OpenNI_NITE....." folder, stops within a few lines with an error message. 'libnimocknodes.so'/usr/bin/nireg/niReg: 1.Syntax error: "unterminated quoted string".

Comment by dunlapa...@gmail.com, Mar 9, 2012

@ign...@gmail.com This is a Processing library; thus, you should be running Processing and not VC++.

Comment by DancesWi...@gmail.com, Mar 22, 2012

In spite of having virtually no idea where to begin, I got this working fine on a 64bit Ubuntu 11.10 system with Bradley....@gmail.com's clarifications. But trying to install on a 32bit system I get the same errors as amandath...@gmail.com, wx12...@gmail.com, phreddo...@gmail.com,and armandom...@gmail.com

When trying to run the examples under processing, I get the "unsatisified link" errors.

Seems like there are installer issues with 32 bit linux.

Comment by DancesWi...@gmail.com, Mar 27, 2012

Well I went to the OpenNI download site,http://75.98.78.94/Downloads/OpenNIModules.aspx and downloaded the binaries, middleware binaries and hardware binaries for 32bit ubuntu 10.10. (I'm running 11.10)

The installation worked. No errors. But when running I still get the unsatisfied link error.

Comment by raha...@gmail.com, Apr 2, 2012

Here is a piece of information that might be useful to some people...

On my laptop the kinect does not work if plugged on a USB 3.0 port. I'm running Ubuntu 11.04 64 bits. I downloaded the corresponding package, followed the instructions and did not encounter any error or problem but then in processing I was only getting a blank / black image instead of the expected depth, rgb, infrared images... and again without any error message of any sort. I switched the port from a USB 3.0 (that I hadn't even noticed it was plugged in) to a 2.0 one and everything worked. Might saved a few hours to someone in the same situation. Cheers,

S.

Comment by pedronr...@gmail.com, Apr 17, 2012

Hello,

i have the same problem related with Can't find the SimpleOpenNI library (SimpleOpenNI32) : java.lang.UnsatisfiedLinkError?: D:\programas\processing-1.5.1\modes\java\libraries\SimpleOpenNI\library\SimpleOpenNI32.dll: The specified procedure could not be found

trying simple-openni+kinect+processing

i have windows 7, 64 bits i've download, reboot, install, and try the two versions: 64bits and 32 bits

i've copied the extracted folder: SimpleOpenNI to processing-1.5.1/modes/java/libraries

and i'me getting the same error! (Can't find the SimpleOpenNI library (SimpleOpenNI32) :) anyone can help?..

Comment by DancesWi...@gmail.com, Apr 20, 2012

This page seems to have a fix for the 32 bit linux issues. Not sure how to apply it tho.

https://code.google.com/p/simple-openni/issues/detail?id=35

Comment by weehong....@gmail.com, Apr 23, 2012

Many thanks to Bradley....@gmail.com (up Feb 11) and d...@alum.mit.edu (https://code.google.com/p/simple-openni/issues/detail?id=35). Their solution fixed my two related but different problems.

If you receive "Can't find the SimpleOpenNI library (SimpleOpenNI32) : ..." error, it probably is due to incompatibility of the architecture (32 vs 64). I encountered two scenarios:

1. On x64 Ubuntu, installed everything x64 but encountered above error. Bradley's solution (up Feb 11) works here. Apparently Processing has a 32-bit Java in it, and that shall be replaced with a 64-bit Java as described by Bradley. Many thanks, Bradley.

2. On x32 Ubuntu, installed everything x32 but encountered above error (again!). d...'s solution (Issue 35) works here. Apparently SimpleOpenNI download has been built for 64-bit and the library folder is missing "libSimpleOpenNI32.so" file. One need to build the source for 32-bit and copy "libSimpleOpenNI32.so" into the SimpleOpenNI library folder. Alternatively, see Issue 37. Many thanks, d...@alum.mit.edu.

Comment by rami.als...@gmail.com, May 2, 2012

I have Lion as my OS in my MacBook? and I could not install the "OpenNI_NITE_Installer-OSX" I did exactly what is instructed! downloaded it, opened up Terminal and changed directory to the file and then tried to install it using this command "sudo ./install.sh" but it did not work! it said "-bash: sudo: command not found"

Help please!!!


Sign in to add a comment
Powered by Google Project Hosting