From b9b9fbc4194ff1a0233b34b7245db198f53cf94f Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Wed, 19 Sep 2012 14:42:35 +0200 Subject: [PATCH] Fixed SDL include path --- qgroundcontrol.pri | 14 +++++++------- src/input/JoystickInput.h | 4 ++++ 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/qgroundcontrol.pri b/qgroundcontrol.pri index b3f894029..bf420ae09 100644 --- a/qgroundcontrol.pri +++ b/qgroundcontrol.pri @@ -30,21 +30,21 @@ win32-msvc2008|win32-msvc2010 { DEFINES += _TTY_NOWARN_ # MAC OS X -macx|macx-g++42|macx-g++: { +macx|macx-g++42|macx-g++|macx-llvm: { CONFIG += x86_64 cocoa phonon CONFIG -= x86 QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.6 - INCLUDEPATH += -framework SDL + INCLUDEPATH += $$BASEDIR/libs/lib/Frameworks/SDL.framework/Headers - LIBS += -framework IOKit \ + LIBS += -framework IOKit \ -F$$BASEDIR/libs/lib/Frameworks \ - -framework SDL \ - -framework CoreFoundation \ - -framework ApplicationServices \ - -lm + -framework SDL \ + -framework CoreFoundation \ + -framework ApplicationServices \ + -lm ICON = $$BASEDIR/files/images/icons/macx.icns diff --git a/src/input/JoystickInput.h b/src/input/JoystickInput.h index f8b369e49..281e02d62 100644 --- a/src/input/JoystickInput.h +++ b/src/input/JoystickInput.h @@ -36,7 +36,11 @@ This file is part of the PIXHAWK project #include #include #include +#ifdef Q_OS_MAC +#include +#else #include +#endif #include "UASInterface.h" -- 2.22.0