We use the Kinect SDK version 1.0, and this is how the project is configured. Please note that the developer's machine is Windows 7 x86. If you are using x64, change the path accordingly.
Step 1 Copy the header files and libraries. There is a reason for this: the project can be checked on any machine and compiled just fine (the machine does not need to install the SDK). Another advantage: we updated the SDK to version 1.0, but since our project was not updated and the deadline was right, we had to build it with a beta version of the SDK, and everything went smoothly.
I suggest you create a new directory in your solution called "3rdparty / KinectSDK" (change it according to your needs).
Copy C:\Program Files\Microsoft SDKs\Kinect\v1.0\inc
Copy C:\Program Files\Microsoft SDKs\Kinect\v1.0\lib
(you will have x86 and x64 libraries)
Step 2 Set up a project. You will need to do this for every project that uses the Kinect SDK! All configuration takes place in the Project Properties dialog box.
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
" for additional dependencies
Step 3 Compilation time!
Note:
- If you install the SDK correctly, your computer will be able to run / debug the program without further configuration.
- To run the program on the client machine, you need to copy the Kinect10.dll file. It is best to create a deployment project, the DLL will be detected automatically for you.
- Speaking of a client machine, you do not need to install an SDK for it. Just take the driver files (.inf, etc.) and install the driver manually when you connect Kinect.
Good luck.
source share