Mostly stolen from https://blog.gordonturner.com/2014/02/22/kinect-openni-nite-and-nuimotion-setup-for-osx/
brew install libfreenect
- Test with
freenect-glview
. If you getupload_firmware: failed to find firmware file.
then runpython /usr/local/Cellar/libfreenect/0.5.7/share/fwfetcher.py
- Download latest OpenNI and NiTE from http://download.dahoo.fr/Ressources/openNi/
- Extract OpenNI, run
sudo ./install.sh
- Same for NiTE
- copy
/usr/local/lib/libFreenectDriver.dylib
to./OpenNI-MacOSX-x64-2.2/Redist/OpenNI2/Drivers/
- Recursively copy
./OpenNI-MacOSX-x64-2.2/Redist/*
to/usr/local/lib/
- Recursively copy
./NiTE-MacOSX-x64-2.2/Redist/*
to/usr/local/lib/
- Run
cat ./OpenNI-MacOSX-x64-2.2/OpenNIDevEnvironment >> ~/.bash_profile
- Run
cat ./NiTE-MacOSX-x64-2.2/NiTEDevEnvironment >> ~/.bash_profile >> ~/.bash_profile
- Add
OPENNI2
andNITE2
environment variables, pointing to the install dirs - Make sure you're using Node 0.10.24 (nvm is your friend!). It will fail in newer versions.
npm install nuimotion
- Try the demo program
cp node_modules/nuimotion/quickstart/basicquickstart.js .
thensudo node basicquickstart.js