0

我是 Kinect SDK 的新手,因此我请求您帮助解决这个问题:

1>----- 构建开始:项目:UserViewer,配置:Debug Win32 ------

1>Viewer.obj:错误 LNK2019:无法解析的外部符号_imp _oniInitialize在函数“public:static enum openni::Status __cdecl openni::OpenNI::initialize(void)”(?initialize@OpenNI@openni@@SA? AW4状态@2@XZ)

1>Viewer.obj:错误 LNK2019:无法解析的外部符号_imp _oniShutdown在函数“public: static void __cdecl openni::OpenNI::shutdown(void)”(?shutdown@OpenNI@openni@@SAXXZ) 中引用

1>Viewer.obj:错误 LNK2019:无法解析的外部符号_imp _oniGetExtendedError在函数“public: static char const * __cdecl openni::OpenNI::getExtendedError(void)”(?getExtendedError@OpenNI@openni@@SAPBDXZ) 中引用

1>Viewer.obj:错误 LNK2019:未解析的外部符号_imp _oniDeviceOpen在函数“public:enum openni::Status __thiscall openni::Device::open(char const *)”中引用(?open@Device@openni@@QAE ?AW4Status@2@PBD@Z)

1>Viewer.obj:错误 LNK2019:未解析的外部符号 _ imp _oniDeviceClose 在函数“public: void __thiscall openni::Device::close(void)”(?close@Device@openni@@QAEXXZ) 中引用

1>Viewer.obj:错误 LNK2019:无法解析的外部符号_imp _oniDeviceGetInfo在函数“private: enum openni::Status __thiscall openni::Device::_setHandle(struct _OniDevice *)”(?_setHandle@Device@openni@@AAE ?AW4Status@2@PAU_OniDevice@@@Z)

1>Viewer.obj : 错误 LNK2019: 无法解析的外部符号 _ imp _oniDeviceIsPropertySupported 在函数“public: bool __thiscall openni::Device::isPropertySupported(int)const” (?isPropertySupported@Device@openni@@QBE_NH@Z) 中引用

1>Viewer.obj : 错误 LNK2019: 无法解析的外部符号 _ imp _oniDeviceIsCommandSupported 在函数“public: bool __thiscall openni::Device::isCommandSupported(int)const” (?isCommandSupported@Device@openni@@QBE_NH@Z) 中引用

1>Viewer.obj:错误 LNK2019:无法解析的外部符号_imp _oniFrameAddRef在函数“public:void __thiscall openni::VideoFrameRef::_setFrame(struct OniFrame *)”(?_setFrame@VideoFrameRef@openni@@QAEXPAUOniFrame@@@Z )

1>Viewer.obj:错误 LNK2019:未解析的外部符号_imp _oniFrameRelease在函数“public: void __thiscall openni::VideoFrameRef::release(void)”(?release@VideoFrameRef@openni@@QAEXXZ) 中引用

1>Viewer.obj:错误 LNK2019:无法解析的外部符号_imp _niteInitialize在函数“public:静态枚举 nite::Status __cdecl nite::NiTE::initialize(void)”中引用 (?initialize@NiTE@nite@@SA? AW4状态@2@XZ)

1>Viewer.obj:错误 LNK2019:无法解析的外部符号_imp _niteShutdown在函数“public: static void __cdecl nite::NiTE::shutdown(void)”(?shutdown@NiTE@nite@@SAXXZ) 中引用

1>Viewer.obj:错误 LNK2019:无法解析的外部符号_imp _niteInitializeUserTracker在函数“public:enum nite::Status __thiscall nite::UserTracker::create(class openni::Device *)”中引用(?create@UserTracker@nite @@QAE?AW4Status@2@PAVDevice@openni@@@Z)

1>Viewer.obj:错误 LNK2019:无法解析的外部符号_imp _niteInitializeUserTrackerByDevice在函数“public: enum nite::Status __thiscall nite::UserTracker::create(class openni::Device *)”中引用 (?create@UserTracker@nite @@QAE?AW4Status@2@PAVDevice@openni@@@Z)

1>Viewer.obj:错误 LNK2019:未解析的外部符号_imp _niteShutdownUserTracker在函数“public:void __thiscall nite::UserTracker::destroy(void)”(?destroy@UserTracker@nite@@QAEXXZ) 中引用

1>Viewer.obj:错误 LNK2019:无法解析的外部符号_imp _niteStartSkeletonTracking在函数“public: enum nite::Status __thiscall nite::UserTracker::startSkeletonTracking(short)”中引用 (?startSkeletonTracking@UserTracker@nite@@QAE?AW4Status @2@F@Z)

1>Viewer.obj:错误 LNK2019:无法解析的外部符号_imp _niteStartPoseDetection在函数“public: enum nite::Status __thiscall nite::UserTracker::startPoseDetection(short,enum nite::PoseType)”(?startPoseDetection@UserTracker@ nite@@QAE?AW4Status@2@FW4PoseType@2@@Z)

1>Viewer.obj:错误 LNK2019:无法解析的外部符号_imp _niteReadUserTrackerFrame在函数“public: enum nite::Status __thiscall nite::UserTracker::readFrame(class nite::UserTrackerFrameRef *)”(?readFrame@UserTracker@nite @@QAE?AW4Status@2@PAVUserTrackerFrameRef@2@@Z)

1>Viewer.obj:错误 LNK2019:未解析的外部符号_imp _niteUserTrackerFrameRelease在函数“public:void __thiscall nite::UserTrackerFrameRef::release(void)”(?release@UserTrackerFrameRef@nite@@QAEXXZ) 中引用

1>Viewer.obj:错误 LNK2019:未解析的外部符号 _ imp _niteConvertJointCoordinatesToDepth 在函数“public: enum nite::Status __thiscall nite::UserTracker::convertJointCoordinatesToDepth(float,float,float,float *,float *)const 中引用?convertJointCoordinatesToDepth@UserTracker@nite@@QBE?AW4Status@2@MMMPAM0@Z)

1>C:\Program Files\PrimeSense\NiTE2\Samples\UserViewer..\Bin\UserViewer.exe : 致命错误 LNK1120: 20 unresolved externals

========== 构建:0 成功,1 失败,0 最新,0 跳过 ==========

我正在使用 OpenNI2 和 Nite2 并尝试编译其中一个 Nite2 示例项目。

4

1 回答 1

-2

OpenNI2不支持Kinect,据我所知,也许你可以尝试使用旧的OpenNI,至少这是我学到的,在尝试相同之后,但我不知道在windows下,我使用的是GNU/ubuntu。

于 2013-04-15T18:47:54.917 回答