- On the use ubuntu
First, download the SDK and OpenNI installation package, download address:
Extract the two installation packages
Change directory to the install directory under AstraSDK-Linux, and enter the command: sudo sh ./install.sh
Tips you need to add environment variables, execute the command: sudo gedit ~ / .bashrc, performing sudo gedit ~ / .bashrc change in the environment
When the two paths is added in an amount above the tips (top two below), and then run the command: source ~ / .bashrc saved (
The following figure at the bottom, please ignore bsah piece tips)
Change directory to OPenNI_2.3.0.55 / Linux / OpenNI-Linux-x64-2.3.0.55
Run: sudo chmod a + x install.sh
sudo ./install.sh
Re-insert the device
source OpenNIDevEnvironment
cd Samples/SimpleViewer
make
In execution
cd Bin/x64-Release
./SimpleViewer