diff --git a/qgroundcontrol.pri b/qgroundcontrol.pri index ca97ea05ac55267b78c71f6dcbd32e809b171dfc..8103c9ea998e9318ed8701a76cd31dbdac885ca6 100644 --- a/qgroundcontrol.pri +++ b/qgroundcontrol.pri @@ -135,7 +135,7 @@ macx { # osg/osgEarth dynamic casts might fail without this compiler option. # see http://osgearth.org/wiki/FAQ for details. - #QMAKE_CXXFLAGS += -Wl, -E + #QMAKE_CXXFLAGS += -Wl,-E } # GNU/Linux @@ -204,7 +204,7 @@ linux-g++ { # osg/osgEarth dynamic casts might fail without this compiler option. # see http://osgearth.org/wiki/FAQ for details. - QMAKE_CXXFLAGS += -Wl, -E + QMAKE_CXXFLAGS += -Wl,-E } linux-g++-64 { @@ -268,7 +268,7 @@ linux-g++-64 { # osg/osgEarth dynamic casts might fail without this compiler option. # see http://osgearth.org/wiki/FAQ for details. - QMAKE_CXXFLAGS += -Wl, -E + QMAKE_CXXFLAGS += -Wl,-E } # Windows (32bit) @@ -339,7 +339,7 @@ win32-g++ { # osg/osgEarth dynamic casts might fail without this compiler option. # see http://osgearth.org/wiki/FAQ for details. - QMAKE_CXXFLAGS += -Wl, -E + QMAKE_CXXFLAGS += -Wl,-E } # Windows (64bit) @@ -377,5 +377,5 @@ win64-g++ { # osg/osgEarth dynamic casts might fail without this compiler option. # see http://osgearth.org/wiki/FAQ for details. - QMAKE_CXXFLAGS += -Wl, -E + QMAKE_CXXFLAGS += -Wl,-E } diff --git a/src/ui/map3D/GCManipulator.cc b/src/ui/map3D/GCManipulator.cc index 83b0b61684a99cecb1e8e9a8b787e2742304263a..cdabc966533ea9f53448713144bcbd9b584f5e6b 100644 --- a/src/ui/map3D/GCManipulator.cc +++ b/src/ui/map3D/GCManipulator.cc @@ -254,7 +254,7 @@ GCManipulator::calcMovement() if (buttonMask == GUIEventAdapter::LEFT_MOUSE_BUTTON) { // rotate camera - osg::Vec3d axis; + osg::Vec3 axis; float angle; float px0 = _ga_t0->getXnormalized(); diff --git a/src/ui/map3D/Q3DWidget.cc b/src/ui/map3D/Q3DWidget.cc index 0e08d85ac6d8b32e44b316c2a16b1f3af584d805..5a0df71c8ec2b3869a3fe6f037ac309f5e624c06 100644 --- a/src/ui/map3D/Q3DWidget.cc +++ b/src/ui/map3D/Q3DWidget.cc @@ -34,7 +34,6 @@ This file is part of the QGROUNDCONTROL project #include #include #include -#include Q3DWidget::Q3DWidget(QWidget* parent) : QGLWidget(parent)