diff --git a/.gitignore b/.gitignore index 53cb0216899fc56d433bad65e0e6c358928419fe..4ac05d65dd682d5b332c3bd33b36a9fab049b289 100644 --- a/.gitignore +++ b/.gitignore @@ -55,6 +55,7 @@ thirdParty/qserialport/bin/ thirdParty/qserialport/lib/ libs/thirdParty/libxbee/lib/ GeneratedFiles/ +gstreamer-1.0-android* *.autosave .settings/ diff --git a/QGCSetup.pri b/QGCSetup.pri index 799f09f6a73b2387060693df894efe64c34a606f..6b58dba5f1d0cefb5015631bcba06b06c0de96e4 100644 --- a/QGCSetup.pri +++ b/QGCSetup.pri @@ -19,10 +19,6 @@ QMAKE_POST_LINK += echo "Copying files" -AndroidBuild { - INSTALLS += $$DESTDIR -} - # # Copy the application resources to the associated place alongside the application # diff --git a/src/Vehicle/Vehicle.cc b/src/Vehicle/Vehicle.cc index d692b520b3eb3f9836a3901b2a357f89de3b3e14..0bd2c7a5e6a0eb533409192514d9e52835918dea 100644 --- a/src/Vehicle/Vehicle.cc +++ b/src/Vehicle/Vehicle.cc @@ -899,10 +899,9 @@ void Vehicle::setJoystickEnabled(bool enabled) void Vehicle::_startJoystick(bool start) { +#ifndef __mobile__ Joystick* joystick = JoystickManager::instance()->activeJoystick(); - if (joystick) { -#ifndef __mobile__ if (start) { if (_joystickEnabled) { joystick->startPolling(this); @@ -910,8 +909,10 @@ void Vehicle::_startJoystick(bool start) } else { joystick->stopPolling(); } -#endif } +#else + Q_UNUSED(start); +#endif } bool Vehicle::active(void) diff --git a/src/VideoStreaming/VideoStreaming.pri b/src/VideoStreaming/VideoStreaming.pri index e20149bd01c9af606f0a3cb1dab80bbf02441205..3a68f7767f1906f7e0762c12d0e8d5db5d854628 100644 --- a/src/VideoStreaming/VideoStreaming.pri +++ b/src/VideoStreaming/VideoStreaming.pri @@ -56,7 +56,26 @@ LinuxBuild { INCLUDEPATH += \ $$GST_ROOT/include/gstreamer-1.0 \ $$GST_ROOT/include/glib-2.0 \ - $$GST_ROOT/lib/gstreamer-1.0\include \ + $$GST_ROOT/lib/gstreamer-1.0/include \ + $$GST_ROOT/lib/glib-2.0/include + } +} else:AndroidBuild { + #- gstreamer assumed to be installed in $$PWD/../../android/gstreamer-1.0-android-armv7-1.5.2 + GST_ROOT = $$PWD/../../gstreamer-1.0-android-armv7-1.5.2 + exists($$GST_ROOT) { + QMAKE_CXXFLAGS += -pthread + CONFIG += VideoEnabled + LIBS += -L$$GST_ROOT/lib \ + -lgstvideo-1.0 \ + -lgstfft-1.0 -lm \ + -lgstnet-1.0 -lgio-2.0 \ + -lgstaudio-1.0 -lgstbase-1.0 -lgstreamer-1.0 -lgobject-2.0 \ + -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 -lorc-0.4 -liconv -lffi -lintl + + INCLUDEPATH += \ + $$GST_ROOT/include/gstreamer-1.0 \ + $$GST_ROOT/lib/gstreamer-1.0/include \ + $$GST_ROOT/include/glib-2.0 \ $$GST_ROOT/lib/glib-2.0/include } } @@ -138,6 +157,10 @@ VideoEnabled { message(" Select the devel AND runtime packages and install them (x86, not the 64-Bit)") message(" It will be installed in C:/gstreamer. You need to update you PATH to point to the bin directory.") } + AndroidBuild { + message(" You can download it from http://gstreamer.freedesktop.org/data/pkg/android/") + message(" Uncompress the archive into the qgc root source directory (same directory where qgroundcontrol.pro is found.") + } } else { message("Skipping support for video streaming (Unsupported platform)") }