diff options
| author | CoprDistGit <infra@openeuler.org> | 2026-10-22 03:43:26 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2026-10-22 03:43:26 +0000 |
| commit | 8d4d4a6c7c762b34c4b7e4cf8ee1c7e8ae378a03 (patch) | |
| tree | bbcd7ba8308ebf4b1fbc2e16f59dcad656f5c353 /openni2-aarch64-support.patch | |
| parent | 1f25708c4ff011c19722714009dd92f84c733323 (diff) | |
automatic import of ros-humble-openni2-camera
Diffstat (limited to 'openni2-aarch64-support.patch')
| -rw-r--r-- | openni2-aarch64-support.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/openni2-aarch64-support.patch b/openni2-aarch64-support.patch index 8718ce9..678d91f 100644 --- a/openni2-aarch64-support.patch +++ b/openni2-aarch64-support.patch @@ -30,6 +30,38 @@ diff -ruN '--exclude=.git' '--exclude=.github' ./ThirdParty/PSCommon/XnLib/Inclu +#define XN_PLATFORM XN_PLATFORM_LINUX_ARM +#define XN_PLATFORM_STRING "Linux-Aarch64" +#endif +diff -ruN '--exclude=.git' '--exclude=.github' ./Include/Linux-Aarch64/OniPlatformLinux-Aarch64.h ../OpenNI2-patched/Include/Linux-Aarch64/OniPlatformLinux-Aarch64.h +--- a/Include/Linux-Aarch64/OniPlatformLinux-Aarch64.h 1970-01-01 00:00:00.000000000 +0000 ++++ b/Include/Linux-Aarch64/OniPlatformLinux-Aarch64.h 2026-10-22 03:24:42.077885129 +0000 +@@ -0,0 +1,15 @@ ++#ifndef _ONI_PLATFORM_LINUX_AARCH64_H_ ++#define _ONI_PLATFORM_LINUX_AARCH64_H_ ++ ++// Start with Linux-x86, and override what's different ++#include "../Linux-x86/OniPlatformLinux-x86.h" ++ ++//--------------------------------------------------------------------------- ++// Platform Basic Definition ++//--------------------------------------------------------------------------- ++#undef ONI_PLATFORM ++#undef ONI_PLATFORM_STRING ++#define ONI_PLATFORM ONI_PLATFORM_LINUX_ARM ++#define ONI_PLATFORM_STRING "Linux-Aarch64" ++ ++#endif //_ONI_PLATFORM_LINUX_AARCH64_H_ +diff -ruN '--exclude=.git' '--exclude=.github' ./Include/OniPlatform.h ../OpenNI2-patched/Include/OniPlatform.h +--- a/Include/OniPlatform.h 2026-10-22 03:13:34.628894060 +0000 ++++ b/Include/OniPlatform.h 2026-10-22 03:24:42.077885129 +0000 +@@ -38,6 +38,8 @@ + #elif defined (ANDROID) && defined (__arm__) + # include "Android-Arm/OniPlatformAndroid-Arm.h" + #elif (__linux__ && (i386 || __x86_64__)) + # include "Linux-x86/OniPlatformLinux-x86.h" ++#elif (__linux__ && __aarch64__) ++# include "Linux-Aarch64/OniPlatformLinux-Aarch64.h" + #elif (__linux__ && __arm__) + # include "Linux-Arm/OniPlatformLinux-Arm.h" + #elif _ARC diff -ruN '--exclude=.git' '--exclude=.github' ./ThirdParty/PSCommon/XnLib/Include/XnPlatform.h ../OpenNI2-patched/ThirdParty/PSCommon/XnLib/Include/XnPlatform.h --- a/ThirdParty/PSCommon/XnLib/Include/XnPlatform.h 2026-10-22 03:13:34.655894141 +0000 +++ b/ThirdParty/PSCommon/XnLib/Include/XnPlatform.h 2026-10-22 03:24:42.077885129 +0000 |
