gpt4 book ai didi

c++ - Kinect 和 OpenNI

转载 作者:行者123 更新时间:2023-11-30 01:27:44 25 4
gpt4 key购买 nike

我是 OpenNI 的新手。当我使用 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

我能得到什么帮助吗?提前致谢!

最佳答案

听起来您需要在链接器中包含 OpenNI.lib。
转到项目属性 |配置属性 |链接器 |输入 |附加依赖项。
添加OpenNI.lib

关于c++ - Kinect 和 OpenNI,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8460158/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com