diff options
| -rw-r--r-- | aarch64-support.patch | 13 | ||||
| -rw-r--r-- | libopenni2-dev.spec | 10 |
2 files changed, 22 insertions, 1 deletions
diff --git a/aarch64-support.patch b/aarch64-support.patch index 309698d..49541e4 100644 --- a/aarch64-support.patch +++ b/aarch64-support.patch @@ -45,3 +45,16 @@ diff --git a/ThirdParty/PSCommon/XnLib/Include/XnPlatform.h b/ThirdParty/PSCommo #elif _ARC #include "ARC/XnPlaformARC.h" #elif (__APPLE__) +diff --git a/Include/OniPlatform.h b/Include/OniPlatform.h +--- a/Include/OniPlatform.h ++++ b/Include/OniPlatform.h +@@ -42,6 +42,10 @@ + #elif (__linux__ && __arm__) + # include "Linux-Arm/OniPlatformLinux-Arm.h" ++#elif (__linux__ && __aarch64__) ++// aarch64 is little-endian LP64 Linux; the Linux-x86 platform header defines ++// only arch-neutral C types and POSIX macros (no SSE/inline-asm), so reuse it. ++# include "Linux-x86/OniPlatformLinux-x86.h" + #elif _ARC + # include "ARC/OniPlaformARC.h" + #elif (__APPLE__) diff --git a/libopenni2-dev.spec b/libopenni2-dev.spec index fee6619..9b7c98f 100644 --- a/libopenni2-dev.spec +++ b/libopenni2-dev.spec @@ -7,7 +7,7 @@ Name: libopenni2-dev Version: 2.2.0 -Release: 2%{?dist} +Release: 3%{?dist} Summary: OpenNI 2 framework for 3D sensors (development package) License: Apache-2.0 @@ -93,6 +93,14 @@ install -p -m 0644 Include/*.h %{buildroot}%{_includedir}/openni2/ %{_includedir}/openni2/ %changelog +* Mon Sep 28 2026 openEuler Builder <builder@openeuler.org> - 2.2.0-3 +- Extend aarch64-support.patch: add __aarch64__ branch to the public API + header Include/OniPlatform.h (same pattern as the XnPlatform.h fix in -2). + The previous round only patched the XnLib internal header XnPlatform.h; + the public OniPlatform.h still had no __aarch64__ branch, so DepthUtils.cpp + (which includes OniCTypes.h -> OniPlatform.h) hit '#error Unsupported + Platform' and ONI_CALLBACK_TYPE/uint*_t stayed undefined. + * Mon Sep 28 2026 openEuler Builder <builder@openeuler.org> - 2.2.0-2 - Extend aarch64-support.patch: add __aarch64__ branch to XnPlatform.h so the C/C++ platform-abstraction header includes the Linux-x86 types header |
