Add patch for arm build failures
authorJochen Sprickerhof <git@jochen.sprickerhof.de>
Sat, 17 Sep 2016 10:28:00 +0000 (12:28 +0200)
committerJochen Sprickerhof <git@jochen.sprickerhof.de>
Sat, 17 Sep 2016 10:28:00 +0000 (12:28 +0200)
Thanks: Gianfranco Costamagna

debian/patches/fix-gl-build.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/fix-gl-build.patch b/debian/patches/fix-gl-build.patch
new file mode 100644 (file)
index 0000000..7d901d5
--- /dev/null
@@ -0,0 +1,19 @@
+Description: Try to fix build failure on arm64
+Author: Gianfranco Costamagna <locutusofborg@debian.org>
+
+--- pcl-1.8.0+dfsg1.orig/apps/point_cloud_editor/include/pcl/apps/point_cloud_editor/cloud.h
++++ pcl-1.8.0+dfsg1/apps/point_cloud_editor/include/pcl/apps/point_cloud_editor/cloud.h
+@@ -45,6 +45,13 @@
+ #include <QtGui/QColor>
+ #include <pcl/apps/point_cloud_editor/localTypes.h>
+ #include <pcl/apps/point_cloud_editor/statistics.h>
++#ifdef OPENGL_IS_A_FRAMEWORK
++# include <OpenGL/gl.h>
++# include <OpenGL/glu.h>
++#else
++# include <GL/gl.h>
++# include <GL/glu.h>
++#endif
+ /// @brief A wrapper which allows to use any implementation of cloud provided by
+ /// a third-party library.
index b2c2879272f7eab2e92c483505418e4b1fd3d192..58863cb43d9fafc10ab3c5f70553463d107a9c68 100644 (file)
@@ -2,3 +2,4 @@
 0002-Remove-relicts-of-nonfree-ia_-fpcs.patch
 0003-Clear-privacy-breach-logo.patch
 0004-Remove-2d-library-contains-no-symbols.patch
+fix-gl-build.patch