我正在尝试和Qt一起开始使用Kinect编程。Visual Studio2008的示例代码可以在我的系统上运行和编译。我尝试将包含路径和库添加到pro文件中:
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结合起来要包括什么或者做些什么?
发布于 2012-08-05 18:43:20
尝试使用相对路径,例如来自NiSimpleViewer示例的路径:
INCLUDEPATH += . #GL,glh path
INCLUDEPATH += ../../Include #OpenNI path
LIBS += ./Libs/glut32.lib
LIBS += ../../Lib/openNI.libhttps://stackoverflow.com/questions/6204129
复制相似问题