2011-12-10 7 views
1

OpenNIの新機能です。私は、Visual Studio 2010のC++とOpenNIのサンプルをしようとすると、 は、私はこれらのエラーを得た:Kinectと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 

は、私は任意のヘルプをしてくださいできますか? ありがとうございます!

答えて

5

OpenNI.libをリンカに含める必要があるように聞こえます。
プロジェクトのプロパティ|構成プロパティ|リンカー|入力|追加の依存関係。
OpenNI.libを追加