We are using the Kinect SDK version 1.0 and this is how the project is configured. Please note that the developer machine is Windows 7 x86. If you are using x64, please change the path accordingly.
Step 1. Copy header files and library. There is a reason to do this: the project can be checked out to any machine and compile just fine (the machine doesn't have to install the SDK). Another benefit: we upgraded the SDK to version 1.0 but because our project hasn't been updated and the deadline is coming, we had to built it with SDK version beta and everything went smoothly.
I suggest you create a new directory in your solution called "3rdparty/KinectSDK" (change it to suit your need).
Copy C:\Program Files\Microsoft SDKs\Kinect\v1.0\inc
Copy C:\Program Files\Microsoft SDKs\Kinect\v1.0\lib
(you will have both x86 and x64 libraries)
Step 2. Configure the project. You will need to do this for each project that uses Kinect SDK! All configuration is happened in the Project Properties dialog.
C/C++ > General > add "$(SolutionDir)\3rdparty\KinectSDK\inc
" to your Additional Include Directories
Linker > General > add "$(SolutionDir)\3rdparty\KinectSDK\lib\x86
" to your Additional Library Directories (if you are configuring for x64, use the amd64 directory)
Linker > Input > add "Kinect10.lib
" to Additional Dependencies
Step 3. Compile time!
Note:
- If you install the SDK correctly, your machine will be able to run / debug the program without further configuration.
- In order to run the program in client machine, you will need to copy the Kinect10.dll file. It's best to build a deploy project, the DLL will be detected automatically for you.
- Talking about client machine, you don't need to install SDK for it. Just grab the driver files (.inf and stuff) and install the driver manually when you plug in the Kinect.
Good luck.