1.下载源代码
git clone https://github.com/OpenKinect/libfreenect2.git
2.依赖项安装
sudo apt-get install build-essential cmake pkg-config libturbojpeg libjpeg-turbo8-dev mesa-common-dev freeglut3-dev libxrandr-dev libxi-dev sudo apt-get install libusb-1.0-0-dev sudo apt-get install libglfw3-dev
3.Cmake编译并安装
cd libfreenect2 mkdir build && cd build cmake .. sudo make suao make install
4.测试Kinect V2
将适配器插入USB 3.0插口(注意Kinect V2只能识别USB 3.0),执行:
sudo ./bin/Protonect
注意要加sudo获取权限,否则可能由于刚插入相机而检测不到Kinect设备
参考大佬而写的,感谢大佬(http://www.cnblogs.com/hitcm/p/5118196.html)