diff options
| -rw-r--r-- | aarch64-support.patch | 12 | ||||
| -rw-r--r-- | libopenni2-dev.spec | 11 | ||||
| -rw-r--r-- | sources | 2 |
3 files changed, 23 insertions, 2 deletions
diff --git a/aarch64-support.patch b/aarch64-support.patch index e34967a..d88fb16 100644 --- a/aarch64-support.patch +++ b/aarch64-support.patch @@ -31,3 +31,15 @@ index 0000000..2eb8966 +# 2014-era C++ sources: build against gnu++14 to stay clear of C++17 +# removals (dynamic exception specifications, the register keyword, etc.). +CFLAGS += -std=gnu++14 +diff --git a/ThirdParty/PSCommon/XnLib/Include/XnPlatform.h b/ThirdParty/PSCommon/XnLib/Include/XnPlatform.h +--- a/ThirdParty/PSCommon/XnLib/Include/XnPlatform.h ++++ b/ThirdParty/PSCommon/XnLib/Include/XnPlatform.h +@@ -53,6 +53,8 @@ + #include "Linux-x86/XnPlatformLinux-x86.h" + #elif (__linux__ && __arm__) + #include "Linux-Arm/XnPlatformLinux-Arm.h" ++#elif (__linux__ && __aarch64__) ++#include "Linux-x86/XnPlatformLinux-x86.h" + #elif _ARC + #include "ARC/XnPlaformARC.h" + #elif (__APPLE__) diff --git a/libopenni2-dev.spec b/libopenni2-dev.spec index 002c513..22b1a30 100644 --- a/libopenni2-dev.spec +++ b/libopenni2-dev.spec @@ -7,7 +7,7 @@ Name: libopenni2-dev Version: 2.2.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: OpenNI 2 framework for 3D sensors (development package) License: Apache-2.0 @@ -19,6 +19,7 @@ Patch0: aarch64-support.patch Group: Development/Libraries Packager: openEuler Builder <builder@openeuler.org> +BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: make BuildRequires: libusbx-devel @@ -93,5 +94,13 @@ install -p -m 0644 Include/*.h %{buildroot}%{_includedir}/openni2/ %{_includedir}/openni2/ %changelog +* Thu Sep 24 2026 openEuler Builder <builder@openeuler.org> - 2.2.0-2 +- Extend aarch64-support.patch: route __aarch64__ in XnPlatform.h to the + arch-neutral Linux-x86 platform header so the C++ build no longer hits + '#error Unsupported Platform' and the XnChar/XnUInt32/XnUInt64 typedefs + resolve. The original patch only taught the Makefile build system about + aarch64 (CommonDefs.mak + Platform.Arm64); the C++ header still fell + through to the unsupported-platform #error. + * Thu Sep 24 2026 openEuler Builder <builder@openeuler.org> - 2.2.0-1 - Initial package of OpenNI 2.2.0 for openEuler (aarch64 native build) @@ -1 +1 @@ -17db5637ce3de6109205891461fa8e41 libopenni2-dev-2.2.0.tar.gz +cb40b1d924ce4694a0ac6381f5098b97 libopenni2-dev-2.2.0.tar.gz |
