参考网址:http://pat-site.herokuapp.com/wiki/index.php?title=Kinect_on_Linux#SensorKinect
话说这个网站上面还有OpenGL教程。
Step1:安装OpenNI
sudo apt-get install doxygen
git clone https://github.com/OpenNI/OpenNI.git
git checkout Unstable-1.5.4.0 -b Unstable-1.5.4.0
cd Platform/Linux/CreateRedist/
./RedistMaker
cd ../Redist/OpenNI-Bin-Dev-Linux-x86-v1.5.4.0
sudo ./install.shStep2:安装SensorKinect
git clone git://github.com/avin2/SensorKinect.git
git checkout v0.93-5.1.2.1 -b v0.93-5.1.2.1
cd Platform/Linux/CreateRedist/
./RedistMaker
cd ../Redist/Sensor-Bin-Linux-x64-v5.1.2.1/
sudo ./install.shStep3:安装NITE
curl -o nite-bin-linux-x86-v1.5.2.21.tar.bz2 http://www.mira-project.org/downloads/3rdparty/bin-linux/nite-bin-linux-x86-v1.5.2.21.tar.bz2
bzip2 -dk nite-bin-linux-x86-v1.5.2.21.tar.bz2
tar -xvf nite-bin-linux-x86-v1.5.2.21.tar
cd NITE-Bin-Dev-Linux-x86-v1.5.2.21
sudo ./install.sh