OpenNI1.5 VS2013 The environment is configured, this error occurs when compiling:
Error 4 #error : xiron Platform abstraction layer-win32-microsoft Visual Studio versions AB Ove (10.0) is not supported! C:\Program Files\openni\include\xnplatform.h 1 test
The reason is that there is a version check code in Openni XnPlatform.h:
#ifndef RC_INVOKED
#if _MSC_VER < 1300 // Before MSVC7 (2003)
#error Xiron Platform Abstraction Layer - Win32 - Microsoft Visual Studio versions below 2003 (7.0) are not supported!
#endif
#if _MSC_VER > 1600 // After MSVC8 (2010)
#error Xiron Platform Abstraction Layer - Win32 - Microsoft Visual Studio versions above 2010 (10.0) are not supported!
#endif
#endif
Solution:
Run vs with Administrator, open project, find error location (directed to XnPlatform.h), change 1600 to 1900, save
#error: Xiron Platform abstraction layer-win32-microsoft Visual Studio versions above (10.0) is not Supporte d! Solution