Add-ARMhf-support
authorDebian Multimedia Maintainers <debian-multimedia@lists.debian.org>
Thu, 3 Dec 2020 18:23:37 +0000 (18:23 +0000)
committerJochen Sprickerhof <jspricke@debian.org>
Thu, 3 Dec 2020 18:23:37 +0000 (18:23 +0000)
Gbp-Pq: Name 0009-Add-ARMhf-support.patch

Packaging/Harvest.py
Source/Tools/NiViewer/Makefile
ThirdParty/PSCommon/BuildSystem/Platform.Arm

index 4ce9ed269a5cbd64df2b5e2e96fa74c31cd80bba..1b60640ccae3147ffc155d7e636afa57c6b478ab 100755 (executable)
@@ -98,9 +98,7 @@ class Harvest:
             self.copySharedObject(binDriversDir, 'Kinect', targetDriversDir)
         
     def copySample(self, samplesDir, name, isLibrary = False, isGL = False, isJava = False):
-        if self.arch == 'Arm' and isGL:
-            return
-            
+
         sampleTargetDir = os.path.join(samplesDir, name)
         sampleSourceDir = os.path.join(self.rootDir, 'Samples', name)
 
@@ -262,9 +260,7 @@ $(OUTPUT_FILE): copy-redist
             self.copyExecutable(self.binDir, name, os.path.join(samplesDir, 'Bin'))
         
     def copyTool(self, toolsDir, name, isGL = False):
-        if self.arch == 'Arm' and isGL:
-            return
-            
+
         self.copyExecutable(self.binDir, name, toolsDir)
 
     def copyDocumentation(self, docDir):
index f1d5714e153cf87961724881d61137288a5f5641..6ecb814bb57a60e0d84f9e9d4c22e21e1e70734d 100644 (file)
@@ -27,7 +27,7 @@ else
 endif
 
 LIB_DIRS  += ../../../ThirdParty/PSCommon/XnLib/Bin/$(PLATFORM)-$(CFG)
-USED_LIBS += OpenNI2 XnLib
+USED_LIBS += OpenNI2 XnLib pthread
 
 EXE_NAME = NiViewer
 
index c4a112df8e994a8cb767de08ae4848c6f47e749e..2484f78b632abdeb97da8c91e14a110471fffc78 100644 (file)
@@ -1,7 +1,10 @@
+# some defaults
+export GLUT_SUPPORTED=1
+
 ifeq "$(CFG)" "Release"
 
     # Hardware specifying flags
-    CFLAGS += -march=armv7-a -mtune=cortex-a9 -mfpu=neon -mfloat-abi=softfp #-mcpu=cortex-a8
+    CFLAGS += -Wno-unused-local-typedefs -march=armv7-a -mtune=cortex-a9 -mfpu=neon #-mfloat-abi=softfp #-mcpu=cortex-a8
 
     # Optimization level, minus currently buggy optimizing methods (which break bit-exact)
     CFLAGS += -O3 -fno-tree-pre -fno-strict-aliasing