1.安装openni-2
1.1下载openni-2(百度云)
2.1解压OpenNI-MacOSX-x64-2.2.0.33.tar.bz2到/example/openni2/
2.安装libfreenect
$ brew install libfreenect
$ git clone https://github.com/OpenKinect/libfreenect
$ cd libfreenect
$ mkdir build
$ cd build
$ cmake .. -DBUILD_OPENNI2_DRIVER=ON
$ make
3.拷贝动态库