无法为Visual Studio 2013设置开发环境 [英] Not able to setup development environment for Visual Studio 2013

查看:133
本文介绍了无法为Visual Studio 2013设置开发环境的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一名C ++开发人员,从未将Visual Studio用于我的工作。目前正在尝试使用Visual Studio 2013为Kinect设置开发环境并且很难。我无法使用Microsoft.Kinect命名空间或#include< NuiApi.h>,
,并且Visual Studio继续错过Kinect相关的库/函数/ dll。真是太令人沮丧了..



有人可以帮我设置环境吗? Microsoft文档没有帮助我通过许多网站和文章,但没有人谈到使用Visual Studio设置环境,尤其是项目级路径/引用/等。



PS :我能够从Visual Studio中运行示例代码,因此安装似乎很好,只有路径/文件夹似乎是一个问题。例如,当我使用"使用Microsoft.Kinect"时,仅用于我的测试。 Visual Studio说"错误:标识符
'Microsoft'未定义"。很快就重新安装了Kinect SDK 20并且在我的计算机上找不到NuiApi.h ...


操作系统:Windows 8.1,Visual Studio 2013桌面版,Kinect SDK 2.0


提前致谢!

解决方案

我不确定我的观点是否正确但对我来说感觉就像你没有正确设置你的项目。您需要设置:



  • 添加到包含路径:


(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)\inc
  • add to library path:

  • (KINECTSDK20_DIR)\lib\<PLATFORM> where <PLATFORM> is x86 or x64
  • add kinect20.lib to linker list
  • Please note that


    这篇关于无法为Visual Studio 2013设置开发环境的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆