How to install OpenNI 2.1 on Mac?

BishopZ picture BishopZ · Feb 19, 2013 · Viewed 8.5k times · Source

I can not find installation instructions for this version of OpenNI. I have a Kinect for Windows and Mac OSX 10.8.

It is listed as the downloadable on OpenNI.org, but there are no installation instructions on that site (that I can find) and the OpenNI2 Github page does not have instructions for Mac.

So, I tried downloading the repository and running:

sudo ./install.sh

As is typical to do with the previous version. I get no response, just the prompt back. When I run

./Tools/NiViewer

I get

openDevice failed:
DeviceOpen using default: no devices found

Press any key to continue . . .

Any help appreciated!

Answer

Вадим picture Вадим · Sep 29, 2013

You need to install a library called libfreenect, as well as libusb. The easiest way to do it on your mac is too add the brew package manager, and from your command line dial up:#brew install libfreenect

The link below will guide you (it worked for me) http://openkinect.org/wiki/Getting_Started#OS_X