简体   繁体   English

Kinect和OpenNI

[英]Kinect and OpenNI

I am new in OpenNI. 我是OpenNI的新手。 When I try OpenNI sample with Visual studio 2010 c++, I got these errors: 当我在Visual Studio 2010 c ++中尝试OpenNI示例时,出现以下错误:

1>kinect_first_try.obj : error LNK2001: unresolved external symbol __imp__xnContextRegisterForShutdown
1>kinect_first_try.obj : error LNK2001: unresolved external symbol __imp__xnContextAddRef
1>kinect_first_try.obj : error LNK2001: unresolved external symbol __imp__xnContextRelease
1>kinect_first_try.obj : error LNK2001: unresolved external symbol __imp__xnContextUnregisterFromShutdown
1>kinect_first_try.obj : error LNK2001: unresolved external symbol __imp__xnForceShutdown
1>kinect_first_try.obj : error LNK2001: unresolved external symbol __imp__xnInit
1>kinect_first_try.obj : error LNK2001: unresolved external symbol __imp__xnGetStatusString
1>kinect_first_try.obj : error LNK2001: unresolved external symbol __imp__xnGetRefContextFromNodeHandle
1>kinect_first_try.obj : error LNK2001: unresolved external symbol __imp__xnProductionNodeAddRef
1>kinect_first_try.obj : error LNK2001: unresolved external symbol __imp__xnProductionNodeRelease
1>kinect_first_try.obj : error LNK2001: unresolved external symbol __imp__xnCreateDepthGenerator
1>kinect_first_try.obj : error LNK2001: unresolved external symbol __imp__xnStartGeneratingAll
1>kinect_first_try.obj : error LNK2001: unresolved external symbol __imp__xnOSMemSet
1>kinect_first_try.obj : error LNK2001: unresolved external symbol __imp__xnOSFreeAligned
1>kinect_first_try.obj : error LNK2001: unresolved external symbol __imp__xnOSWasKeyboardHit
1>kinect_first_try.obj : error LNK2001: unresolved external symbol __imp__xnWaitOneUpdateAll
1>kinect_first_try.obj : error LNK2001: unresolved external symbol __imp__xnGetDepthMetaData

Can I get any help please? 我可以帮忙吗? Thanks in advance! 提前致谢!

Sounds like you need to include the OpenNI.lib in the linker. 听起来您需要在链接器中包含OpenNI.lib。
Go to Project Properties | 转到项目属性| Configuration Properties | 配置属性| Linker | 链接器| Input | 输入| Additional dependencies. 其他依赖项。
Add OpenNI.lib 添加OpenNI.lib

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM