Skip to content

Instantly share code, notes, and snippets.

Last active April 29, 2018 14:26
  • Star 1 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save jetsonhacks/1bd2830cc1a5790a6ac2 to your computer and use it in GitHub Desktop.
Install libfreenect2 on the Jetson TK1
# Install Prerequisites
#opencv-dev -> opencv4tegra-dev -> already installed from Jetpack
sudo apt-get install -y build-essential libturbojpeg libtool autoconf libudev-dev cmake mesa-common-dev freeglut3-dev libxrandr-dev doxygen libxi-dev libjpeg-turbo8-dev
# Get libfreenect2
git clone
# Copy nv_headers into libfreenect2/depends
tar -xvf gstjpeg_src.tbz2 gstjpeg_src/nv_headers
mv gstjpeg_src/nv_headers/ libfreenect2/depends/
# Cleanup the empty folder
rmdir gstjpeg_src/
# build libusb and glfw
cd libfreenect2/depends
#fix up linker doesn't get upset
sudo ln -s /usr/lib/arm-linux-gnueabihf/ /usr/lib/arm-linux-gnueabihf/
# Build Protonect example
cd ../examples/protonect/
cmake CMakeLists.txt
make && sudo make install
# Install the udev rule so that you always have read/write permission to the Kinect V2
cd ../..
sudo cp extras/90-kinect2.rules /etc/udev/rules.d/90-kinect2.rules
/bin/echo -e "\e[1;32mFinished.\e[0m"
Copy link

After running the ./Protonect I get an error:
what(): JPEG parameter struct mismatch: library thinks size is 536, caller expects 560

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment