From f50f3918a2e2140fc8ee48523279e7235ea64921 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Thu, 24 Sep 2026 07:02:45 +0000 Subject: automatic import of libopenni2-dev --- aarch64-support.patch | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 aarch64-support.patch (limited to 'aarch64-support.patch') diff --git a/aarch64-support.patch b/aarch64-support.patch new file mode 100644 index 0000000..e34967a --- /dev/null +++ b/aarch64-support.patch @@ -0,0 +1,33 @@ +diff --git a/ThirdParty/PSCommon/BuildSystem/CommonDefs.mak b/ThirdParty/PSCommon/BuildSystem/CommonDefs.mak +index dd88b04..7454e8a 100644 +--- a/ThirdParty/PSCommon/BuildSystem/CommonDefs.mak ++++ b/ThirdParty/PSCommon/BuildSystem/CommonDefs.mak +@@ -16,6 +16,8 @@ else ifneq (,$(findstring i686,$(MACHINE))) + HOST_PLATFORM = x86 + else ifneq (,$(findstring i386,$(MACHINE))) + HOST_PLATFORM = x86 ++else ifneq (,$(findstring aarch64,$(MACHINE))) ++ HOST_PLATFORM = Arm64 + else ifneq (,$(findstring arm,$(MACHINE))) + HOST_PLATFORM = Arm + else +diff --git a/ThirdParty/PSCommon/BuildSystem/Platform.Arm64 b/ThirdParty/PSCommon/BuildSystem/Platform.Arm64 +new file mode 100644 +index 0000000..2eb8966 +--- /dev/null ++++ b/ThirdParty/PSCommon/BuildSystem/Platform.Arm64 +@@ -0,0 +1,14 @@ ++# Platform.Arm64 - native aarch64 build (added for openEuler aarch64) ++# ++# OpenNI 2.2.0 predates aarch64; this platform file intentionally defines ++# NO architecture-specific compiler flags (no SSE, no -march=armv7-a) and ++# relies on the toolchain defaults. NEON fast paths in the drivers are gated ++# behind XN_NEON (only set by the old arm32 Platform.Arm) and therefore fall ++# back to the scalar reference implementations on aarch64. ++# ++# Disable the GLUT-based NiViewer tool to avoid pulling in OpenGL/freeglut. ++export GLUT_SUPPORTED=0 ++ ++# 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 -- cgit v1.2.3