Kinect V2 Ubuntu installation

In the recent blog SLAM see related article, we start with a Kinect, and the installation was successful in ubuntu, version Kinect V2, ubuntu 14.04, reference Gangster, http: //www.cnblogs.com/hitcm/p/5118196 .html but installed in a few other minor problems.

git to download the program,

git clone https://github.com/OpenKinect/libfreenect2.git  

Install dependencies,

sudo apt-get install build-essential cmake pkg-config libturbojpeg libjpeg-turbo8-dev mesa-common-dev freeglut3-dev libxrandr-dev libxi-dev

Install libusb, these are the same

sudo apt-add-repository ppa:floe/libusb
sudo apt-get update
sudo apt-get install libusb-1.0-0-dev

Installation GLFW3, here I started not installed on, not able to find the file, search found this version is no longer supported, so finding GLFW3 source package, and then modify the version based on the version number install_ubuntu.sh file glfw3 follows

wget -N $REPO/pool/universe/g/glfw3/libglfw3_3.1.2-3_${ARCH}.deb

wget -N $REPO/pool/universe/g/glfw3/libglfw3-dev_3.1.2-3_${ARCH}.deb

Then install,

cd libfreenect2/depends

sh install_ubuntu.sh

dpkg -i * _3 libglfw3 sudo. 1 . 2 - 3 . _ * deb, can be successful.

Then compile the library, there is no difference

cd ..

mkdir build

cd build

cmake ..

make

sudo make install

Test run the program when the same prompt access is not enough, only need to add sudo privileges

sudo ./bin/Protonect

To the results as shown below







Released four original articles · won praise 1 · views 2041

Guess you like

Origin blog.csdn.net/NWPUXL0513/article/details/79524675