diff --git a/src/QmlControls/QGroundControlQmlGlobal.cc b/src/QmlControls/QGroundControlQmlGlobal.cc index 24f9d53777a9e861703438dd90f7b5cbe7e1ad05..3fea67ba479c03ac52585823661a0731e309ace6 100644 --- a/src/QmlControls/QGroundControlQmlGlobal.cc +++ b/src/QmlControls/QGroundControlQmlGlobal.cc @@ -63,6 +63,7 @@ void QGroundControlQmlGlobal::setToolbox(QGCToolbox* toolbox) _firmwarePluginManager = toolbox->firmwarePluginManager(); _settingsManager = toolbox->settingsManager(); +#ifndef __mobile__ GPSManager *gpsManager = toolbox->gpsManager(); if (gpsManager) { connect(gpsManager, &GPSManager::onConnect, this, &QGroundControlQmlGlobal::_onGPSConnect); @@ -70,6 +71,7 @@ void QGroundControlQmlGlobal::setToolbox(QGCToolbox* toolbox) connect(gpsManager, &GPSManager::surveyInStatus, this, &QGroundControlQmlGlobal::_GPSSurveyInStatus); connect(gpsManager, &GPSManager::satelliteUpdate, this, &QGroundControlQmlGlobal::_GPSNumSatellites); } +#endif /* __mobile__ */ } void QGroundControlQmlGlobal::saveGlobalSetting (const QString& key, const QString& value) diff --git a/src/QmlControls/QGroundControlQmlGlobal.h b/src/QmlControls/QGroundControlQmlGlobal.h index 1f57ff9f438eb4807ae70120cf762565925308a7..4dfe9dcc867e083e633e9d0bd8f2336842c776a4 100644 --- a/src/QmlControls/QGroundControlQmlGlobal.h +++ b/src/QmlControls/QGroundControlQmlGlobal.h @@ -22,7 +22,9 @@ #include "SimulatedPosition.h" #include "QGCLoggingCategory.h" #include "AppSettings.h" +#ifndef __mobile__ #include "GPS/GPSManager.h" +#endif /* __mobile__ */ #include "GPSRTKFactGroup.h" #ifdef QT_DEBUG