Skip to content

Instantly share code, notes, and snippets.

@Merwanski
Created June 10, 2022 02:47
Show Gist options
  • Save Merwanski/96c21d19d28c9f5b736a0558e55fca02 to your computer and use it in GitHub Desktop.
Save Merwanski/96c21d19d28c9f5b736a0558e55fca02 to your computer and use it in GitHub Desktop.
kinect_v2_ubuntu18
kinect_v2_ubuntu18
Kinect2 Setup Guide
https://scazlab.github.io/kinect2_setup_guide.html
Welcome to the Setup Guide for Kinect2.
System
The following instructions has been tested on Ubuntu 14.04 with ros indigo and Ubuntu 18.04 with ros melodic
Install libfreenect2 on Ubuntu 18
Install necessary libs clone the libfreenect2 to your home folder (at least not the ros folder, as this is not a ros project)
git clone https://github.com/OpenKinect/libfreenect2.git
cd libfreenect2
sudo apt-get install build-essential cmake pkg-config
sudo apt-get install libusb-1.0-0-dev
sudo apt-get install libturbojpeg0-dev
sudo apt-get update
sudo apt-get install libglfw3-dev
sudo apt-get install beignet-dev # (find the appropriate one)
Then install the python freenect2 lib
add the following line export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$HOME/freenect2/lib/pkgconfig and export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/freenect2/lib to ~/.bashrc.
Build:
mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=$HOME/freenect2 -Dfreenect2_DIR=$HOME/freenect2/lib/cmake/freenect2
make
make install
Setup and test:
sudo cp ../platform/linux/udev/90-kinect2.rules /etc/udev/rules.d/
./bin/Protonect
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment