我是Kinect SDK的新手,因此我请求您帮助解决此问题:
1> ------ Build build:Project:UserViewer,Configuration:Debug Win32 ------
1> Viewer.obj:错误LNK2019:未解析的外部符号 _ imp _oniInitialize在函数&#34中引用; public:static enum openni :: Status __cdecl openni :: OpenNI :: initialize(void)" (?初始化@ OpenNI @ @@ openni SA?AW4Status @ 2 @ XZ)
1> Viewer.obj:错误LNK2019:未解析的外部符号 函数" public中引用的_ imp _oniShutdown:static void __cdecl openni :: OpenNI :: shutdown(void)" (?关机@ OpenNI @ @@ openni SAXXZ)
1> Viewer.obj:错误LNK2019:未解析的外部符号 _ imp _oniGetExtendedError在函数&#34中引用; public:static char const * __cdecl openni :: OpenNI :: getExtendedError(void)" (?getExtendedError @ OpenNI @ @@ openni SAPBDXZ)
1> Viewer.obj:错误LNK2019:未解析的外部符号 函数" public中引用了_ imp _oniDeviceOpen:public:enum openni :: Status __thiscall openni :: Device :: open(char const *)" (?开放@设备@ @@ openni QAE?AW4Status @ 2 @ PBD @ Z)
1> Viewer.obj:错误LNK2019:未解析的外部符号 _ imp _oniDeviceClose在函数&#34中引用; public:void __thiscall openni :: Device :: close(void)" (?接近@设备@ @@ openni QAEXXZ)
1> Viewer.obj:错误LNK2019:未解析的外部符号 _ imp _oniDeviceGetInfo在函数" private:enum openni :: Status __thiscall openni :: Device :: _ setHandle(struct _OniDevice)中引用 *)" (?_setHandle @设备@ @@ openni AAE?AW4Status @ 2 @ PAU_OniDevice @@@ Z)
1> Viewer.obj:错误LNK2019:未解析的外部符号 _ imp _oniDeviceIsPropertySupported在函数" public中引用:bool __thiscall openni :: Device :: isPropertySupported(int)const" (?isPropertySupported @设备@ @@ openni @ QBE_NH Z)
1> Viewer.obj:错误LNK2019:未解析的外部符号 _ imp _oniDeviceIsCommandSupported在函数" public中引用:bool __thiscall openni :: Device :: isCommandSupported(int)const" (?isCommandSupported @设备@ @@ openni @ QBE_NH Z)
1> Viewer.obj:错误LNK2019:未解析的外部符号 在函数" public:void __thiscall openni :: VideoFrameRef :: _ setFrame(struct OniFrame *)"中引用_ imp _oniFrameAddRef (?_setFrame @ VideoFrameRef @ @@ openni @@@ QAEXPAUOniFrame Z)
1> Viewer.obj:错误LNK2019:未解析的外部符号 在函数" public:void __thiscall openni :: VideoFrameRef :: release(void)"中引用_ imp _oniFrameRelease (?释放@ VideoFrameRef @ @@ openni QAEXXZ)
1> Viewer.obj:错误LNK2019:未解析的外部符号 _ imp _niteInitialize在函数&#34中引用; public:static enum nite :: Status __cdecl nite :: NiTE :: initialize(void)" (?初始化@ NITE @ @@黑夜SA?AW4Status @ 2 @ XZ)
1> Viewer.obj:错误LNK2019:未解析的外部符号 函数" public中引用的_ imp _niteShutdown:static void __cdecl nite :: NiTE :: shutdown(void)" (?关机@ NITE @ @@有限SAXXZ)
1> Viewer.obj:错误LNK2019:未解析的外部符号 函数" public:enum nite :: Status __thiscall nite :: UserTracker :: create(class openni :: Device)中引用了_ imp _niteInitializeUserTracker *)" (?创建@ UserTracker @ @@黑夜QAE?AW4Status @ 2 @ PAVDevice @ openni @@@ Z)
1> Viewer.obj:错误LNK2019:未解析的外部符号 函数" public:enum nite :: Status __thiscall nite :: UserTracker :: create(class)中引用了_ imp _niteInitializeUserTrackerByDevice openni :: Device *)" (?创建@ UserTracker @ @@黑夜QAE?AW4Status @ 2 @ PAVDevice @ openni @@@ Z)
1> Viewer.obj:错误LNK2019:未解析的外部符号 函数" public:void __thiscall nite :: UserTracker :: destroy(void)"中引用_ imp _niteShutdownUserTracker (?破坏@ UserTracker @ @@有限QAEXXZ)
1> Viewer.obj:错误LNK2019:未解析的外部符号 函数" public:enum nite :: Status __thiscall中引用了_ imp _niteStartSkeletonTracking 有限:: UserTracker :: startSkeletonTracking(短)" (?startSkeletonTracking @ UserTracker @ @@黑夜QAE?AW4Status @ 2 @频率@ Z)
1> Viewer.obj:错误LNK2019:未解析的外部符号 函数" public:enum nite :: Status __thiscall中引用了_ imp _niteStartPoseDetection nite :: UserTracker :: startPoseDetection(short,enum nite :: PoseType)" (?startPoseDetection @ UserTracker @ @@黑夜QAE?AW4Status @ 2 @ FW4PoseType @ @@ 2 Z)
1> Viewer.obj:错误LNK2019:未解析的外部符号 函数" public中引用了_ imp _niteReadUserTrackerFrame:public:enum nite :: Status __thiscall nite :: UserTracker :: readFrame(class nite :: UserTrackerFrameRef *)" (?readFrame @ UserTracker @ @@黑夜QAE?AW4Status @ 2 @ PAVUserTrackerFrameRef @ @@ 2 Z)
1> Viewer.obj:错误LNK2019:未解析的外部符号 函数&#34中引用了_ imp _niteUserTrackerFrameRelease; public:void __thiscall nite :: UserTrackerFrameRef :: release(void)" (?释放@ UserTrackerFrameRef @ @@有限QAEXXZ)
1> Viewer.obj:错误LNK2019:未解析的外部符号 函数" public:enum nite :: Status __thiscall中引用了_ imp _niteConvertJointCoordinatesToDepth 黑夜:: UserTracker :: convertJointCoordinatesToDepth(浮球,浮球,浮球,浮球 *,float *)const" (?convertJointCoordinatesToDepth @ UserTracker @ @@黑夜QBE?AW4Status @ 2 @ MMMPAM0 @ Z)
1> C:\程序 Files \ PrimeSense \ NiTE2 \ Samples \ UserViewer .. \ Bin \ UserViewer.exe: 致命错误LNK1120:20个未解析的外部
==========构建:0成功,1失败,0最新,0跳过==========
我正在使用OpenNI2和Nite2并尝试编译其中一个Nite2示例项目。
答案 0 :(得分:-2)
OpenNI2不支持Kinect,只要我知道,也许你可以尝试使用旧的OpenNI,至少这是我所学到的,尝试之后,但我不知道在windows下,我正在使用GNU / Ubuntu Linux系统。