Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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"

This comment has been minimized.

Copy link

@apache8080 apache8080 commented Jun 21, 2015

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
You can’t perform that action at this time.