Skip to content

Instantly share code, notes, and snippets.

@Continuities
Last active February 12, 2018 01:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Continuities/e69213c938f4fda90cb03d48edb06b25 to your computer and use it in GitHub Desktop.
Save Continuities/e69213c938f4fda90cb03d48edb06b25 to your computer and use it in GitHub Desktop.
OSX Kinect Development

Mostly stolen from https://blog.gordonturner.com/2014/02/22/kinect-openni-nite-and-nuimotion-setup-for-osx/

  1. brew install libfreenect
  2. Test with freenect-glview. If you get upload_firmware: failed to find firmware file. then run python /usr/local/Cellar/libfreenect/0.5.7/share/fwfetcher.py
  3. Download latest OpenNI and NiTE from http://download.dahoo.fr/Ressources/openNi/
  4. Extract OpenNI, run sudo ./install.sh
  5. Same for NiTE
  6. copy /usr/local/lib/libFreenectDriver.dylib to ./OpenNI-MacOSX-x64-2.2/Redist/OpenNI2/Drivers/
  7. Recursively copy ./OpenNI-MacOSX-x64-2.2/Redist/* to /usr/local/lib/
  8. Recursively copy ./NiTE-MacOSX-x64-2.2/Redist/* to /usr/local/lib/
  9. Run cat ./OpenNI-MacOSX-x64-2.2/OpenNIDevEnvironment >> ~/.bash_profile
  10. Run cat ./NiTE-MacOSX-x64-2.2/NiTEDevEnvironment >> ~/.bash_profile >> ~/.bash_profile
  11. Add OPENNI2 and NITE2 environment variables, pointing to the install dirs
  12. Make sure you're using Node 0.10.24 (nvm is your friend!). It will fail in newer versions.
  13. npm install nuimotion
  14. Try the demo program cp node_modules/nuimotion/quickstart/basicquickstart.js . then sudo node basicquickstart.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment