orbslam编译rgbd_xtion_cc时,出现错误

错误如下:

/usr/include/openni2/OniPlatform.h:49:3: error: #error Xiron Platform Abstraction Layer - Unsupported Platform!

将:/usr/include/openni2/OniPlatform.h中的

#if (defined _WIN32)
# ifndef RC_INVOKED
# if _MSC_VER < 1300
# error OpenNI Platform Abstraction Layer - Win32 - Microsoft Visual Studio version below 2003 (7.0) are not supported!
# endif
# endif
# include "Win32/OniPlatformWin32.h"
#elif defined (ANDROID) && defined (__arm__)
# include "Android-Arm/OniPlatformAndroid-Arm.h"
#elif (__linux__ && (i386 || __x86_64__))
# include "Linux-x86/OniPlatformLinux-x86.h"
#elif (__linux__ && __arm__)
# include "Linux-Arm/OniPlatformLinux-Arm.h"
#elif _ARC
# include "ARC/OniPlaformARC.h"
#elif (__APPLE__)
# include "MacOSX/OniPlatformMacOSX.h"
#else
# error Xiron Platform Abstraction Layer - Unsupported Platform!
#endif

修改为

/*#if (defined _WIN32)
# ifndef RC_INVOKED
# if _MSC_VER < 1300
# error OpenNI Platform Abstraction Layer - Win32 - Microsoft Visual Studio version below 2003 (7.0) are not supported!
# endif
# endif
# include "Win32/OniPlatformWin32.h"
#elif defined (ANDROID) && defined (__arm__)
# include "Android-Arm/OniPlatformAndroid-Arm.h"
#elif (__linux__ && (i386 || __x86_64__))*/
# include "Linux-x86/OniPlatformLinux-x86.h"
/*#elif (__linux__ && __arm__)
# include "Linux-Arm/OniPlatformLinux-Arm.h"
#elif _ARC
# include "ARC/OniPlaformARC.h"
#elif (__APPLE__)
# include "MacOSX/OniPlatformMacOSX.h"
#else
# error Xiron Platform Abstraction Layer - Unsupported Platform!
#endif*/

你可能感兴趣的:(linux,/,ubuntu)