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
 
https://github.com/OpenNI/OpenNI.git

checkout the unstable branch

          git checkout unstable

2. SensorKinect - v5.1.2.1

https://github.com/avin2/SensorKinect.git

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

3. NiTE

http://www.openni.org/wp-content/uploads/2012/12/NITE-Bin-Linux-x86-v1.5.2.21.tar.zip

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
    ./RedistMaker
    sudo ./install.sh

2. Sensor Kinect

    cd ~/kinect/SensorKinect/Platform/Linux/CreateRedist
    ./RedistMaker
    cd ~/kinect/SensorKinect/Platform/Linux/Redist/
    sudo ./install.sh

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 ./install.sh

Run the samples 

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



References

Many thanks to 







Popular Posts