install openni2 on ubuntu

1. 

git clone https://github.com/occipital/OpenNI2.git

2. 

make -j${nproc}

3.

go to ./Packaging

ReleaseVersion.py x64

4. go to ./Final

extract OpenNI-Linux-x64-2.2.tar.bz2 then go into it

sudo ./install.sh

5.

cat OpenNIDevEnvironment >> ~/.bashrc

source ~/.bashrc




updated on 22/Oct/2017


If you want to run /home/seamanj/OpenNI2/Bin/x64-Release/NiViewer, you need build freelibnect2 first, and then copy all the generated libs into /home/seamanj/OpenNI2/Bin/x64-Release/OpenNI2/Drivers



As to how to build libfreenect2 on ubuntu, please see :http://blog.csdn.net/seamanj/article/details/78314798