Because Openni is ubuntu12.04 used before the drive Kinnect library, now use up a lot of inconvenience, intentions of the system to run the old equipment, there are many problems. The current summary process is as follows:
Environment: Ubuntu16.04 64bit
Kinect V1 XBOX 360
1. Install Openni and try to run
https://sigmaoctantis.wordpress.com/2015/07/07/kinect-installation-in-ubuntu-14-10/
The basic process refers to the above link, there are several places to note:
1). NITE1.5 download, you can manually search nite-bin-dev-linux-x64-v1.5.2.21 and download, I download the v1.5.2.23 version here, pro-test can be used.
2). If you are not using Openni in Python, then copy it your the sudo cp in the Python version library ./lib/openni.so/usr/lib/pymodules/python2.7/< /c2> This step is not performed.
2. Installing related dependencies and libraries
1) together to write here, first loaded, sooner or later to use.
sudo apt-get install build-essential libgtk2.0-dev libjpeg-dev libtiff4-dev libjasper-dev libopenexr-dev cmake Python-dev python-numpy python-tk libtbb-dev libeigen2-dev yasm libfaac-dev Libopencore-amrnb-dev Libopencore-amrwb-dev libtheora-dev libvorbis-dev libxvidcore-dev libx264-dev libqt4-dev Libqt4-opengl-dev Sphinx-common Texlive-latex-extra libv4l-dev libdc1394-22-dev libavcodec-dev libavformat-dev libswscale-Devsudo apt-get Install build-essential cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev Libswscale-dev Python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-devsudo Add-apt-repository ppa:openjdk-r/PPA//New version No this library has itself loaded sudo apt-get updatesudo apt-get install-y Cmake-qt-gui git build-essential libusb-1.0-0-dev libudev-dev openjdk-7-jdk freeglut3-dev libglew-dev Libsuitesparse-dev Libeigen3-dev zlib1g-dev libjpeg-dev libboost1.58-dev libboost1.58-all-dev libeigen3-dev libflann-dev Libvtk5-dev Libqhull-dev
sudo apt-get install Libopenni-dev libopenni2-dev//main for environment configuration 16.04 cannot be mounted directly before
2) Install opencv3.2.0, from the official website down, CMake make make install installed, note that the front of the library to be loaded, or some modules OpenCV default will not be installed.
3. Under Kinfu and run
Download the compressed version of Kinfu_remake on Git, open the cmakelist.txt, and change the OpenCV dependency to 3.2.0 version, enter the program path:
mkdir build CD Buildccmake.
Press T to enter the Advanced Configuration window, Openni lib path do not select the root directory that (the default is this), changed to our own installed the libopenni.so
And then
Make-J8bin/demo
You can run it.
Personal Understanding:
Why do this, because the new Ubuntu version can be directly install Libopenni. But the libopenni.so is not linked to the libfreenectdriver.so Kinect camera driver, so a connected drive is required.
ubuntu16.04 install Openni and run Kinnectfusion