Has anyone here managed to install OpenNI in Windows 7 64-bit and got the Kinect working with it? I keep running into issues. As far as I understand I need OpenNI installed before I can run the Unity project.
I’ve installed all of the dependencies - Python 3.1, PyWin32, NSIS 2.46, copied the patch over the NSIS executables, Doxygen, and GraphViz.
When I run the RedistMaker.bat I get:
************************
*** ONI Redist Maker ***
************************
Going to build redist for version: 1.0.0.23!
******************************************
*** Erasing the old Final directory... ***
******************************************
*******************************************
*** Running the Redist Engine script... ***
*******************************************
Traceback (most recent call last):
File "C:\Users\Neil_2\Downloads\Kinect\OpenNI-OpenNI-543dcc2\Platform\Win32\CreateRedist\Redist_OpenNi.py", line 140, in get_reg_values
values = [(win32api.RegQueryValueEx(reg_key, name), data_type) for name, data_type in value_list]
File "C:\Users\Neil_2\Downloads\Kinect\OpenNI-OpenNI-543dcc2\Platform\Win32\CreateRedist\Redist_OpenNi.py", line 140, in <listcomp>
values = [(win32api.RegQueryValueEx(reg_key, name), data_type) for name, data_type in value_list]
pywintypes.error: (2, 'RegQueryValueEx', 'The system cannot find the file specified.')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Neil_2\Downloads\Kinect\OpenNI-OpenNI-543dcc2\Platform\Win32\CreateRedist\Redist_OpenNi.py", line 161, in <module>
VS_INST_DIR = get_reg_values(MSVC_KEY, MSVC_VALUES)[0]
File "C:\Users\Neil_2\Downloads\Kinect\OpenNI-OpenNI-543dcc2\Platform\Win32\CreateRedist\Redist_OpenNi.py", line 148, in get_reg_values
raise Exception("Failed to get registry value!")
Exception: Failed to get registry value!
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Neil_2\Downloads\Kinect\OpenNI-OpenNI-543dcc2\Platform\Win32\CreateRedist\Redist_OpenNi.py", line 140, in get_reg_values
values = [(win32api.RegQueryValueEx(reg_key, name), data_type) for name, data_type in value_list]
File "C:\Users\Neil_2\Downloads\Kinect\OpenNI-OpenNI-543dcc2\Platform\Win32\CreateRedist\Redist_OpenNi.py", line 140, in <listcomp>
values = [(win32api.RegQueryValueEx(reg_key, name), data_type) for name, data_type in value_list]
pywintypes.error: (2, 'RegQueryValueEx', 'The system cannot find the file specified.')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Neil_2\Downloads\Kinect\OpenNI-OpenNI-543dcc2\Platform\Win32\CreateRedist\Redist_OpenNi.py", line 166, in <module>
VS_INST_DIR = get_reg_values(MSVC_KEY, MSVC_VALUES)[0]
File "C:\Users\Neil_2\Downloads\Kinect\OpenNI-OpenNI-543dcc2\Platform\Win32\CreateRedist\Redist_OpenNi.py", line 148, in get_reg_values
raise Exception("Failed to get registry value!")
Exception: Failed to get registry value!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!! An error occured while running a script !!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Press any key to continue . . .
Do I need to fully install OpenNI to get the DLL to work in Unity? Does anyone know what I’m doing wrong?