diff --git a/src/main.cc b/src/main.cc index 8c097575cc2ebaeef5ff104b017a5efa7f2fcb38..47fc27fca3e2aacb9518e3bffab445a3b12f0bf5 100644 --- a/src/main.cc +++ b/src/main.cc @@ -30,7 +30,9 @@ This file is part of the QGROUNDCONTROL project #include #include +#ifndef __mobile__ #include +#endif #include "QGCApplication.h" #include "MainWindow.h" @@ -50,7 +52,9 @@ This file is part of the QGROUNDCONTROL project #undef main #endif +#ifndef __mobile__ Q_DECLARE_METATYPE(QSerialPortInfo) +#endif #ifdef Q_OS_WIN @@ -109,7 +113,9 @@ int main(int argc, char *argv[]) qRegisterMetaType(); #endif qRegisterMetaType(); +#ifndef __mobile__ qRegisterMetaType(); +#endif // We statically link to the google QtLocation plugin