Skip to content

Instantly share code, notes, and snippets.

@PauloMigAlmeida
Created February 13, 2014 12:59
Show Gist options
  • Save PauloMigAlmeida/8974648 to your computer and use it in GitHub Desktop.
Save PauloMigAlmeida/8974648 to your computer and use it in GitHub Desktop.
Compiling OpenNI and libfreenect to get Kinect for XBOX 360 working on Fedora 17
#References
#
#http://schnelle-walka.blogspot.com.br/2013/04/openni-20-with-fedora-18.html
#https://github.com/OpenKinect/libfreenect#fetch-build
# A couple of threads on StackOverflow but unfortunately I can't remember all of them
#Install Dependencies:
yum install libXmu-devel libudev-devel libusb1-devel mesa-libGLU-devel freeglut-devel freeglut-devel cmake
#Clone OpenNI2
git clone https://github.com/OpenNI/OpenNI2.git
cd OpenNI2
#Replace compiler parameters
vim ThirdParty/PSCommon/BuildSystem/CommonCppMakefile
- Change: LDFLAGS += $(LIB_DIRS_OPTION) $(USED_LIBS_OPTION)
- By: LDFLAGS += -lpthread -lrt $(LIB_DIRS_OPTION) $(USED_LIBS_OPTION)
#Compiling OpenNI2
make
#Clone libfreenect
git clone https://github.com/OpenKinect/libfreenect
cd libfreenect
mkdir build
cd build
cmake ..
make
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment