What is your OS: Windows or Linux?
It seems that environment variables are set incorrectly.
If you use Windows, please check that the PATH variable includes the path to <your-install-folder>\nuitrack\bin and NUITRACK_HOME is <install-folder>\nuitrack.
If you use Linux, check the environment variables using the following commands:
echo $NUITRACK_HOME
echo $LD_LIBRARY_PATH
NUITRACK_HOME should be equal to /usr/etc/nuitrack. LD_LIBRARY_PATH should include the /usr/local/lib/nuitrack path.
If the environment variables are empty, set them manually using the following commands (as root):
It seems that you put openni2.dll at the same level with your exe file. Indeed, in this case, it’s necessary to put the whole OpenNI folder in the same directory as openni2.dll. However, if there’s no openni2.dll next to your exe, Nuitrack looks for OpenNI located in the Nuitrack home directory (it’s not necessary to move OpenNI folder at all).