Go to file
Nedko Arnaudov 749f74c536 AArch64 tweaks 2022-02-28 16:48:11 +02:00
Config Use xnLog to init log, instead of doing it ourselves 2013-11-03 17:16:03 +02:00
Include AArch64 tweaks 2022-02-28 16:48:11 +02:00
Packaging Require Java in Unix packaging scripts. 2015-01-28 14:30:34 -08:00
Samples Added apk signing resources 2016-10-31 18:50:38 -04:00
Source Merge github branch develop 2022-02-28 15:29:53 +02:00
ThirdParty AArch64 tweaks 2022-02-28 16:48:11 +02:00
Wrappers/java deleted type generics in javadoc that causes error in jdk8 (#48) 2016-11-01 12:47:58 -04:00
.gitignore More ignore. 2014-06-11 09:13:57 -07:00
Android.mk Switch to using common android makefile 2013-11-03 17:15:43 +02:00
CHANGES.txt Update version to 2.3.0.13 2013-11-03 17:16:15 +02:00
LICENSE 2.0.0.29 2012-12-20 14:52:00 +02:00
Makefile AArch64 tweaks 2022-02-28 16:48:11 +02:00
NOTICE Merge branch 'release_2.2' into develop 2013-11-12 19:20:15 +02:00
OpenNI.sln Merge branch 'android' into develop 2013-09-24 11:51:38 +02:00
README.md Merge github branch develop 2022-02-28 15:29:53 +02:00
ReleaseNotes.txt Update version to 2.3.0.15 2013-11-12 19:20:11 +02:00

README.md

OpenNI

Structure Core customers: OpenNI does not currently support Structure Core. To start developing with Structure Core download Structure SDK (Cross-Platform) on the Developer Portal.

OpenNI2 homepage: http://structure.io/openni

Develop branch

The latest ongoing development is currently being done in the develop branch. Refer to README and ReleasesNotes in the develop branch for up to date build instructions.

Contributing

Pull requests that do not apply cleanly on top of the develop branch head will be rejected.

Other than that, sensible and meaningful contributions are very welcome!

Building for Mac OS X

Build Prerequisites

  • Libusb 1.0

    First, install Homebrew, if you do not have it already:

    ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
    

    Then install libusb with it:

    brew install libusb --universal
    

Build Instructions

Run: make

Building for Windows

Build Prerequisites

Download and install the following windows software:

Build Instructions

Build the Visual Studio solution OpenNI.sln.

Building for Linux

Build Prerequisites (Ubuntu & Debian)

Download and install the following packages, using apt:

sudo apt-get install \
	g++              \
	python           \
	libusb-1.0-0-dev \
	libudev-dev      \
	openjdk-6-jdk    \
	freeglut3-dev    \
	doxygen          \
	graphviz

Build Prerequisites (Other Distributions)

Download and install the following Linux software:

Build Instructions

Run: make

Cross-Compiling for ARM

The following environment variables should be defined:

  • ARM_CXX=<path to cross-compilation g++>
  • ARM_STAGING=<path to cross-compilation staging dir>

Then, run:

	PLATFORM=Arm make

Building for Android

These instructions assume a device running Android KitKat. The samples NiViewer, SimpleRead, and SimpleViewer were tested and found to run succesfully on a Nexus 7 running Android 4.4.4. Please ensure you are using a high quality USB OTG cable!

Please refer to this issue for updated information regarding OpenNI2 on Android Lollipop.

The build instructions presented here focus on Eclipse with the ADT plugin. As of the May 2015 Android Studio's NDK support continues to be reported as incomplete and is therefore not recommended as a build environment.

Build Prerequisites (All Hosts)

  • Download and install the latest Java JDK.
  • Install the Android SDK:
    • Download the Android SDK, making sure you download the appropriate SDK Tools Only package for your host platform.
    • Follow these instructions for installing the stand-alone Android SDK Tools.
    • Follow these instructions for adding Android SDK packages.
    • Define the ANDROID_HOME environment variable pointing to the SDK installation directory.
  • Install the Android NDK:
    • Download the lastest Android NDK and follow these instructions for installing it.
    • Define the NDK_HOME environment variable pointing to the NDK installation directory.
  • Install Eclipse:
    • Download the latest Eclipse release for your host platform.
    • Go to Eclipse → Preferences → Android → NDK and set the correct NDK Location.
  • Install the Eclipse ADT plugin:

Build Prerequisites (Windows Hosts)

  • Download and install the following Windows software:

  • Define the JAVA_HOME environment variable, pointing to the correct JDK installation directory. For example:

    set JAVA_HOME=c:\Program Files (x86)\Java\jdk1.6.0_32
    

Build Prerequisites (Ubuntu & Debian Linux Hosts)

Download and install the following packages, using apt:

sudo apt-get install \
	openjdk-6-jdk    \
	ant

Build Prerequisites (Other Linux Hosts)

Download and install the following Linux software:

Build Instructions (All Hosts)

  • Go to Eclipse -> Import... -> Android -> Existing Android Code Into Workspace
  • Select the root directory of OpenNI2.
  • Projects found should include:
    • NiViewer
    • OpenNIForAndroid
    • SimpleRead
    • SimpleViewer
  • Set the Project Build Target for all imported projects.

Packaging

  • Go into the directory Packaging
  • Run ReleaseVersion.py [x86|x64|Arm|Android]
  • Installer will be placed in the Final directory
  • Android Specific: keytool was used as follows to generate a generic keystore for the Android build products:
    • keytool -genkey -v -keystore ./<appname>.keystore -alias NiVKey -keyalg RSA -keypass android -storepass android -keysize 2048 -validity 10000