From 8d4d4a6c7c762b34c4b7e4cf8ee1c7e8ae378a03 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Thu, 22 Oct 2026 03:43:26 +0000 Subject: automatic import of ros-humble-openni2-camera --- openni2-aarch64-support.patch | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'openni2-aarch64-support.patch') 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 -- cgit v1.2.3