Ubuntu Pastebin

Paste from timo at Thu, 11 Jun 2015 14:27:33 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
Index: stellarium-0.13.1/src/core/StelOpenGL.hpp
===================================================================
--- stellarium-0.13.1.orig/src/core/StelOpenGL.hpp
+++ stellarium-0.13.1/src/core/StelOpenGL.hpp
@@ -152,4 +152,15 @@
 const char* getGLErrorText(int code);
 int checkGLErrors(const char *file, int line);
 
+// To build on arm platforms we need to re-introduce the Qt 5.4 removed
+// typedefs and defines of GLdouble/GL_DOUBLE, which are not present in GLES
+#if defined(QT_OPENGL_ES_2)
+# ifndef GL_DOUBLE
+#  define GL_DOUBLE GL_FLOAT
+# endif
+# ifndef GLdouble
+typedef GLfloat GLdouble;
+# endif
+#endif
+
 #endif // _STELOPENGL_HPP_
Download as text