Kinect 2.0 integration with Qt 5.0.2 in windows



  • hi,
    I'm facing issues with kinect in qt 5.0.2. I 'm using msvc2010 as a compiler for Qt. I have also tried with vc2012. Still i'm getting the same error.

    This is the error i'm getting(3 errors are there):
    e:\qt_setup\microsoft sdks\kinect\v2.0_1409\inc\Kinect.INPC.h:120: error: C2061: syntax error : identifier 'Out_writes_z'

    e:\qt_setup\microsoft sdks\kinect\v2.0_1409\inc\Kinect.INPC.h:120: error: C2059: syntax error : ')'

    e:\qt_setup\microsoft sdks\kinect\v2.0_1409\inc\Kinect.INPC.h:120: error: C1903: unable to recover from previous error(s); stopping compilation

    Could someone please rectify this out. I have tried out everything possible but it doesn't seems working. :(

    Thanks in advance!



  • According to: https://www.microsoft.com/en-us/download/details.aspx?id=44561
    The 2.0 SKD version is only compatible with VC2012 and newer.

    The errors you posted are pretty much of no help. How did you install the SDK?
    What and how are you compiling? What compiler options are you using?



  • @Huulivoide
    I have installed the SDK from the official microsoft webpage for kinect SDK 2.0 download.
    I have included the library kinect20.lib and also added the include path.
    I'm compiling in release mode usind vc 12.



  • @shoobomb Can you post your .pro project file?


Log in to reply
 

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