Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Problem when using Openni with QT
Forum Update on Monday, May 27th 2025

Problem when using Openni with QT

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 566 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    catarinabsimoes
    wrote on 9 May 2017, 16:26 last edited by
    #1

    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

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 9 May 2017, 21:34 last edited by
      #2

      Hi,

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

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      1/2

      9 May 2017, 16:26

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved