2
我正在尝试与Qt一起开始使用Kinect编程。 Visual Studio 2008的示例代码在我的系统上运行并编译。我尝试添加包含路径和库亲文件:使用QtCreator设置OpenNI + Kinect
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结合?
好过从未:我碰到了同样的错误今天试图在Eclipse中使用MinGW的Qt和OpenNI结合起来。看起来你也使用MinGW,对(Qt需要)?不幸的是,OpenNI不支持MinGW。希望这对你有帮助。 – SoJeN 2011-07-25 00:58:46