Installing OpenNI, NiTE, SensorKinect on Ubuntu 12.04

All dependencies have to be installed.
sudo apt-get install git-core cmake freeglut3-dev pkg-config build-essential libxmu-dev libxi-dev libusb-1.0-0-dev doxygen graphviz mono-complete --fix-missing
Make Directory
mkdir ~/kinect
Clone three libraries:

1. OpenNI - v1.5.4.0

checkout the unstable branch

          git checkout unstable

2. SensorKinect - v5.1.2.1

* The latest version does not work with OpenNI, checkout a older version
 git checkout faf4994fceba82e6fbd3dad16f79e4399be0c184 
* checkout the unstable branch  - 25/08/13

3. NiTE

Yes, these are old libraries but they are the most stable.
Build The Libraries (have to be done sequentially)

1. OpenNI

    cd ~/kinect/OpenNI/Platform/Linux/CreateRedist
    sudo ./

2. Sensor Kinect

    cd ~/kinect/SensorKinect/Platform/Linux/CreateRedist
    cd ~/kinect/SensorKinect/Platform/Linux/Redist/
    sudo ./

3. NiTE

   cd ~/kinect/NITE-Bin-Dev-Linux-x64-v1.5.2.21/Data

Modify the license in the files: Sample-Scene.xml, Sample-Tracking.xml, and Sample-User.xml.

    <License vendor=”PrimeSense” key=”0KOIk2JeIBYClPWVnMoRKn5cdY4=”/>

    cd ..
    sudo ./

Run the samples 

    cd ~/kinect/OpenNI/Platform/Linux/Redist/Sample/Bin/x86-Release/.NiViewer


Many thanks to 


  1. When you clone OpenNI be sure to checkout version

    git checkout -b Unstable-


Post a Comment

Popular Posts