openniをインストール /usr/include/niにopenniのincludeのシンボリックリンクを作成
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/ /usr/local/Cellar/opencv/2.4.9/lib/pkgconfig/opencv.pc
https://github.com/PrimeSense/Sensor
MacOSX: Requirements: 1) For Mac OSX 10.7, Xcode 4.3.2 From: http://developer.apple.com/devcenter/mac/index.action http://adcdownload.apple.com/Developer_Tools/xcode_4.3.2/xcode_432_lion.dmg
You will also need to download and install the "Commandline Tools for XCode - Late March 2012" package:
http://adcdownload.apple.com/Developer_Tools/command_line_tools_for_xcode_4.4__late_march_2012/cltools_lion_latemarch12.dmg
Note: Since Xcode is now a normal application, it no longer automatically install itself. You have to copy&paste Xcode yourself into your Applications folder.
(or run the application "Install Xcode" from your Applications folder / LaunchPad).
It's also recommended to run the following command after you do the above:
sudo xcode-select -switch /Applications/Xcode.app/
- OpenNI 1.5.x.x From: http://www.openni.org/Downloads/OpenNIModules.aspx
Building Sensor:
1) Go into the directory: "Platform/Linux/CreateRedist".
Run the script: "./RedistMaker".
This will compile everything and create a redist package in the "Platform/Linux/Redist" directory.
It will also create a distribution in the "Platform/Linux/CreateRedist/Final" directory.
2) Go into the directory: "Platform/Linux/Redist".
Run the script: "sudo ./install.sh" (needs to run as root)
The install script copies key files to the following location:
Libs into: /usr/lib
Bins into: /usr/bin
Config files into: /usr/etc/primesense
USB rules into: /etc/udev/rules.d
Logs will be created in: /var/log/primesense
To build the package manually, you can run "make" in the "Platform\Linux\Build" directory.
/usr/local/Cellar/openni/1.5.7.10/share/openni/samples/Bin/x64-Debug
~/Build/github/KinectTouch/Debug
~/Build/github/Sensor/Platform/Linux/Redist/Sensor-Bin-MacOSX-v5.1.6.6