| 1 |
OpenNI |
| 2 |
------ |
| 3 |
|
| 4 |
Website: www.openni.org |
| 5 |
|
| 6 |
Buliding Prerequisites |
| 7 |
====================== |
| 8 |
Windows |
| 9 |
------- |
| 10 |
- Microsoft Visual Studio 2010 |
| 11 |
From: http://msdn.microsoft.com/en-us/vstudio/bb984878.aspx |
| 12 |
- Microsoft Kinect SDK v1.6 |
| 13 |
From: http://go.microsoft.com/fwlink/?LinkID=262831 |
| 14 |
- Python 2.6+/3.x |
| 15 |
From: http://www.python.org/download/ |
| 16 |
- PyWin32 |
| 17 |
From: http://sourceforge.net/projects/pywin32/files/pywin32/ |
| 18 |
Please make sure you download the version that matches your exact python version. |
| 19 |
- JDK 6.0 |
| 20 |
From: http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u32-downloads-1594644.html |
| 21 |
You must also define an environment variable called "JAVA_HOME" that points to the JDK installation directory. |
| 22 |
For example: set JAVA_HOME=c:\Program Files (x86)\Java\jdk1.6.0_32 |
| 23 |
- WIX 3.5 |
| 24 |
From: http://wix.codeplex.com/releases/view/60102 |
| 25 |
- Doxygen |
| 26 |
From: http://www.stack.nl/~dimitri/doxygen/download.html#latestsrc |
| 27 |
- GraphViz |
| 28 |
From: http://www.graphviz.org/Download_windows.php |
| 29 |
|
| 30 |
Linux |
| 31 |
----- |
| 32 |
- GCC 4.x |
| 33 |
From: http://gcc.gnu.org/releases.html |
| 34 |
Or via apt: |
| 35 |
sudo apt-get install g++ |
| 36 |
- Python 2.6+/3.x |
| 37 |
From: http://www.python.org/download/ |
| 38 |
Or via apt: |
| 39 |
sudo apt-get install python |
| 40 |
- LibUSB 1.0.x |
| 41 |
From: http://sourceforge.net/projects/libusb/files/libusb-1.0/ |
| 42 |
Or via apt: |
| 43 |
sudo apt-get install libusb-1.0-0-dev |
| 44 |
- LibUDEV |
| 45 |
sudo apt-get install libudev-dev |
| 46 |
- JDK 6.0 |
| 47 |
From: http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u32-downloads-1594644.html |
| 48 |
Or via apt: |
| 49 |
Ubuntu 10.x: |
| 50 |
sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner" |
| 51 |
sudo apt-get update |
| 52 |
sudo apt-get install sun-java6-jdk |
| 53 |
Ubuntu 12.x: |
| 54 |
sudo apt-get install openjdk-6-jdk |
| 55 |
- FreeGLUT3 |
| 56 |
From: http://freeglut.sourceforge.net/index.php#download |
| 57 |
Or via apt: |
| 58 |
sudo apt-get install freeglut3-dev |
| 59 |
- Doxygen |
| 60 |
From: http://www.stack.nl/~dimitri/doxygen/download.html#latestsrc |
| 61 |
Or via apt: |
| 62 |
sudo apt-get install doxygen |
| 63 |
- GraphViz |
| 64 |
From: http://www.graphviz.org/Download_linux_ubuntu.php |
| 65 |
Or via apt: |
| 66 |
sudo apt-get install graphviz |
| 67 |
|
| 68 |
Android |
| 69 |
------- |
| 70 |
- Android NDK r8d |
| 71 |
From: http://developer.android.com/tools/sdk/ndk/index.html#Downloads |
| 72 |
|
| 73 |
Building |
| 74 |
======== |
| 75 |
Building on Windows: |
| 76 |
Open the solution OpenNI.sln |
| 77 |
|
| 78 |
Building on Linux: |
| 79 |
Run: |
| 80 |
$ make |
| 81 |
|
| 82 |
Cross-Compiling for ARM on Linux: |
| 83 |
The following environment variables should be defined: |
| 84 |
- ARM_CXX=<path to cross-compilation g++> |
| 85 |
- ARM_STAGING=<path to cross-compilation staging dir> |
| 86 |
Then, run: |
| 87 |
$ PLATFORM=Arm make |
| 88 |
|
| 89 |
Creating OpenNI2 package: |
| 90 |
- Go into the directory 'Packaging' |
| 91 |
- Run ReleaseVersion.py [x86|x64|arm|android] |
| 92 |
NOTE: for android, NDK_ROOT must be defined, pointing to the NDK installation dir. |
| 93 |
- Installer will be placed in the 'Final' directory |
| 94 |
|