Although I changed the project configuration to x64 , there were still problems with other libraries, for instance, OpenCV, built along with the project for x86 platform. When I was wondering the next step, my colleague suggested me to try the x86 driver of Kinect and if it works, just keep sticking on the Win32 setting of the project configuration.
Hmm, it seemed I had taken a long route and headed back to the origin... XD
Okay, the happy news is the x86 driver really worked in the x64 Win7, and here is a working log of the test.
Install OpenNI and Kinect driver
What we need is the OpenNI SDK and NiTE. I installed the Windows-x32 versions (OpenNI SDK v126.96.36.199 and NiTE v188.8.131.52).
The Kinect driver I installed is the SensorKinect by avin2. In the page you can find the x86 version for Windows: Bin/SensorKinect093-Bin-Win32-v184.108.40.206.msi
After the installation and connecting the Kinect to the PC, we can check whether the system has recognized the device via Device Manager as shown in Figure 1.
|Fig 1. The system has recognized Kinect device|
Test the driver with OpenNI samplesOpenNI provides sample code with compiled binaries in the installed directory. In my Win7, the path is as follows:
C:\Program Files (x86)\OpenNI\Samples\Bin\ReleaseI chose NiViewer.exe and got the test output as shown in Figure 2.
|Fig 2. Test output of NiViewer|
- The x86 version of Kinect driver works in Win7 x64 OS
- The driver used here is the SensorKinect by avin2
- Also, we need the OpenNI SDK and NiTE
 'WIN32': No such file or directory
 Change VS2005 project from Win32 to x64