我正在尝试与Qt一起开始使用Kinect编程。 Visual Studio 2008的示例代码在我的系统上运行和编译。我尝试将包含路径和库添加到专业文件中:
LIBS += C:\kinect\openni\Lib\openNI.lib
INCLUDEPATH += C:\kinect\openni\Include
但这给了我大约40个错误,如:
error: #error Xiron Platform Abstraction Layer - Win32 - Microsoft Visual Studio versions below 2003 (7.0) are not supported!
error: macro "XN_VALIDATE_NEW" passed 4 arguments, but takes just 2
error: crtdbg.h: No such file or directory
In file included from c:\kinect\openni\Include/XnOpenNI.h:28
...
有没有人知道将OpenNI与Qt结合起来包含或做什么?
答案 0 :(得分:0)
尝试使用相对路径,例如来自NiSimpleViewer示例:
INCLUDEPATH += . #GL,glh path
INCLUDEPATH += ../../Include #OpenNI path
LIBS += ./Libs/glut32.lib
LIBS += ../../Lib/openNI.lib