Browse Source

Fixed compilation under MacOS, windows check next step

QGC4.4
pixhawk 15 years ago
parent
commit
83ec7cd3ed
  1. 4
      qgroundcontrol.pri
  2. 1
      qgroundcontrol.pro
  3. 4
      src/ui/map3D/QMap3DWidget.cc

4
qgroundcontrol.pri

@ -69,6 +69,7 @@ macx {
-framework SDL \ -framework SDL \
-framework CoreFoundation \ -framework CoreFoundation \
-framework ApplicationServices \ -framework ApplicationServices \
-framework GLUT \
-lm -lm
ICON = $$BASEDIR/images/icons/macx.icns ICON = $$BASEDIR/images/icons/macx.icns
@ -114,7 +115,8 @@ linux-g++ {
-lflite_cmulex \ -lflite_cmulex \
-lflite \ -lflite \
-lSDL \ -lSDL \
-lSDLmain -lSDLmain \
-lglut
} }

1
qgroundcontrol.pro

@ -44,7 +44,6 @@ INCLUDEPATH += . \
lib/QMapControl \ lib/QMapControl \
$$BASEDIR/../mavlink/contrib/slugs/include \ $$BASEDIR/../mavlink/contrib/slugs/include \
$$BASEDIR/../mavlink/include $$BASEDIR/../mavlink/include
LIBS += -lglut
# ../mavlink/include \ # ../mavlink/include \
# MAVLink/include \ # MAVLink/include \

4
src/ui/map3D/QMap3DWidget.cc

@ -31,7 +31,11 @@ This file is part of the QGROUNDCONTROL project
#include "QMap3DWidget.h" #include "QMap3DWidget.h"
#if (defined __APPLE__) & (defined __MACH__)
#include <GLUT/glut.h>
#else
#include <GL/glut.h> #include <GL/glut.h>
#endif
#include <QCheckBox> #include <QCheckBox>
#include <sys/time.h> #include <sys/time.h>

Loading…
Cancel
Save