From a16c392bc6e3ff01f1414463bc14db4cff1baab1 Mon Sep 17 00:00:00 2001 From: Corvus Corax Date: Fri, 24 Feb 2012 14:28:48 +0100 Subject: [PATCH] Change to GLC Lib to make it compile on Linux with QT 4.8.0. --- ground/openpilotgcs/src/libs/glc_lib/glc_ext.h | 4 ++++ ground/openpilotgcs/src/libs/glc_lib/viewport/glc_camera.cpp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/ground/openpilotgcs/src/libs/glc_lib/glc_ext.h b/ground/openpilotgcs/src/libs/glc_lib/glc_ext.h index de2edaa4a..38c3d6154 100644 --- a/ground/openpilotgcs/src/libs/glc_lib/glc_ext.h +++ b/ground/openpilotgcs/src/libs/glc_lib/glc_ext.h @@ -40,6 +40,10 @@ #include "GL/glu.h" #endif +#if defined(Q_OS_LINUX) +#include "GL/glu.h" +#endif + #if !defined(Q_OS_MAC) // ARB_vertex_buffer_object extern PFNGLBINDBUFFERARBPROC glBindBuffer; diff --git a/ground/openpilotgcs/src/libs/glc_lib/viewport/glc_camera.cpp b/ground/openpilotgcs/src/libs/glc_lib/viewport/glc_camera.cpp index 54e95ecdb..937b3c3ce 100644 --- a/ground/openpilotgcs/src/libs/glc_lib/viewport/glc_camera.cpp +++ b/ground/openpilotgcs/src/libs/glc_lib/viewport/glc_camera.cpp @@ -35,6 +35,10 @@ #include "GL/glu.h" #endif +#if defined(Q_OS_LINUX) +#include "GL/glu.h" +#endif + #include using namespace glc;