Problem when using Openni with QT



  • Hello! I am developing a program in Qt Creator in order to recognize an object and send commands to a manipulator. I am using OpenNi (acquisition of point clouds from Kinect xbox360), Point Cloud Library (processing) and Qt (Network and Core, to communicate with the manipulator).
    When I join Openni to my program, I got these errors:

    /usr/include/ni/XnPlatform.h:73: error: #error OpenNI Platform Abstraction Layer - Unsupported Platform!
    #error OpenNI Platform Abstraction Layer - Unsupported Platform!
    ^

    /usr/include/ni/XnOS.h:51: error: #error OpenNI OS Abstraction Layer - Unsupported Platform!
    #error OpenNI OS Abstraction Layer - Unsupported Platform!
    ^

    /usr/include/ni/XnCppWrapper.h:10045: error: macro "XN_VALIDATE_NEW" passed 4 arguments, but takes just 2
    XN_VALIDATE_NEW(pTrans, StateChangedCallbackTranslator, handler, pCookie);
    ^

    Qt doesn't seem to work with Openni... Does anybody know how solve this problem?
    Thank you


  • Lifetime Qt Champion

    Hi,

    There's currently nothing Qt in your error. Are you sure your OpenNi setup is correct ?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.