none
Unable to compile NuiApi.h RRS feed

  • Question

  • Alright, been searching for awhile and I've came across a ton of post with a similar issue but no solution.

    I'm currently unable to compile a project that includes NuiApi.h. I get a ton of syntax errors from the NUI header files.

    I've followed all the steps in the documentation for setting up my Visual Studio 2010 project. I have the KINECTSDK10_DIR environment variable reflecting the correct SDK directory. My project references the inc and lib directories, and I have windows.h included first. (with WIN32_LEAN_AND_MEAN defined)

    What else could I be missing?
    Friday, February 24, 2012 2:45 PM

Answers

  • Alright, finally got around to removing "lean and mean" from my framework. That did the trick!
    • Marked as answer by Klashnikov Kid Saturday, February 25, 2012 10:49 PM
    Saturday, February 25, 2012 10:49 PM

All replies

  • Please show the errors you're getting (or at least the first few lines' worth).

    John
    K4W Dev


    Friday, February 24, 2012 8:55 PM
  • Error    1    error C2146: syntax error : missing ';' before identifier 'INuiAudioBeam'    c:\program files\microsoft sdks\kinect\v1.0\inc\nuisensor.h    46
    Error    2    error C4430: missing type specifier - int assumed. Note: C++ does not support default-int    c:\program files\microsoft sdks\kinect\v1.0\inc\nuisensor.h    46
    Error    3    error C2146: syntax error : missing ';' before identifier 'INuiAudioBeam'    c:\program files\microsoft sdks\kinect\v1.0\inc\nuisensor.h    46
    Error    4    error C4430: missing type specifier - int assumed. Note: C++ does not support default-int    c:\program files\microsoft sdks\kinect\v1.0\inc\nuisensor.h    46
    Error    5    error C4430: missing type specifier - int assumed. Note: C++ does not support default-int    c:\program files\microsoft sdks\kinect\v1.0\inc\nuisensor.h    46
    Error    6    error C2086: 'int INuiAudioBeam' : redefinition    c:\program files\microsoft sdks\kinect\v1.0\inc\nuisensor.h    46
    Error    7    error C2146: syntax error : missing ';' before identifier 'INuiFrameTexture'    c:\program files\microsoft sdks\kinect\v1.0\inc\nuisensor.h    52
    Warning    8    warning C4091: '' : ignored on left of 'interface' when no variable is declared    c:\program files\microsoft sdks\kinect\v1.0\inc\nuisensor.h    52
    Error    9    error C2146: syntax error : missing ';' before identifier 'INuiSensor'    c:\program files\microsoft sdks\kinect\v1.0\inc\nuisensor.h    58
    Warning    10    warning C4091: '' : ignored on left of 'interface' when no variable is declared    c:\program files\microsoft sdks\kinect\v1.0\inc\nuisensor.h    58
    Error    11    error C2371: 'INuiFrameTexture' : redefinition; different basic types    c:\program files\microsoft sdks\kinect\v1.0\inc\nuisensor.h    385
    Error    12    error C2371: 'INuiSensor' : redefinition; different basic types    c:\program files\microsoft sdks\kinect\v1.0\inc\nuisensor.h    508
    Error    13    error C2061: syntax error : identifier 'INuiAudioBeam'    c:\program files\microsoft sdks\kinect\v1.0\inc\nuisensor.h    596
    Error    14    error C2065: 'ppDmo' : undeclared identifier    c:\program files\microsoft sdks\kinect\v1.0\inc\nuisensor.h    870
    Warning    15    warning C4229: anachronism used : modifiers on data are ignored    c:\program files\microsoft sdks\kinect\v1.0\inc\nuisensor.h    870
    Error    16    error C2491: 'NuiGetAudioSource' : definition of dllimport data not allowed    c:\program files\microsoft sdks\kinect\v1.0\inc\nuisensor.h    870
    Error    17    error C1903: unable to recover from previous error(s); stopping compilation    c:\program files\microsoft sdks\kinect\v1.0\inc\nuisensor.h    870

    Friday, February 24, 2012 9:00 PM
  • Does it work if you remove lean and mean?

    -Adam Smith [MSFT]

    • Marked as answer by Klashnikov Kid Saturday, February 25, 2012 10:49 PM
    • Unmarked as answer by Klashnikov Kid Saturday, February 25, 2012 10:49 PM
    Saturday, February 25, 2012 12:13 AM
  • Alright, finally got around to removing "lean and mean" from my framework. That did the trick!
    • Marked as answer by Klashnikov Kid Saturday, February 25, 2012 10:49 PM
    Saturday, February 25, 2012 10:49 PM