更新时间:2023-11-22 21:00:40
我不确定我的观点是否正确但对我来说感觉就像你没有正确设置你的项目。您需要设置:
- 添加到包含路径:
(KINECTSDK20_DIR)\inc添加到库路径:
(KINECTSDK20_DIR)\lib \< PLATFORM>其中<平台>是x86或x64将kinect20.lib添加到链接器列表 请注意
I am a C++ developer and never used Visual Studio for my work. Currently trying to setup development environment for Kinect using Visual Studio 2013 and having a hard time. I am not able to use Microsoft.Kinect namespace, or #include <NuiApi.h>,
for example, and Visual Studio continues to miss Kinect related libraries/functions/dlls here and there. It is so frustrating ..
Can someone help me setup the environment? Microsoft documentation is not helpful I have been through many websites and articles but no one talked about setting up environment using Visual Studio especially project level paths/references/etc.
PS: I am able to run sample code fine from within Visual Studio so installation appears to be fine only the paths/folders seem to be a problem. For example just for my testing when I use "using Microsoft.Kinect" Visual Studio says "Error: Identifier
'Microsoft' is undefined". Reinstalled Kinect SDK 20 moments ago and cannot find NuiApi.h anywhere on my computer ...
OS: Windows 8.1, Visual Studio 2013 Desktop Edition, Kinect SDK 2.0
Thanks in advance!
I'm not sure if I got your point correctly but to me it feels like you didn't not set up your project correctly. You need to set:
- add to include path:
(KINECTSDK20_DIR)\incadd to library path:
(KINECTSDK20_DIR)\lib\<PLATFORM> where <PLATFORM> is x86 or x64add kinect20.lib to linker list Please note that