Browse Source

Fix inverted logic when disabling UVC.

QGC4.4
dogmaphobic 9 years ago
parent
commit
24358c1d05
  1. 5
      QGCSetup.pri
  2. 13
      qgroundcontrol.pro
  3. 3
      src/FlightDisplay/VideoManager.cc

5
QGCSetup.pri

@ -119,6 +119,11 @@ LinuxBuild { @@ -119,6 +119,11 @@ LinuxBuild {
libQt5Widgets.so.5 \
libQt5XcbQpa.so.5
!contains (DEFINES, QGC_DISABLE_UVC) {
QT_LIB_LIST += \
libQt5Multimedia.so.5
}
!contains(DEFINES, __rasp_pi2__) {
QT_LIB_LIST += \
libicudata.so.54 \

13
qgroundcontrol.pro

@ -49,10 +49,10 @@ contains (DEFINES, QGC_DISABLE_BLUETOOTH) { @@ -49,10 +49,10 @@ contains (DEFINES, QGC_DISABLE_BLUETOOTH) {
# USB Camera and UVC Video Sources
contains (DEFINES, QGC_DISABLE_UVC) {
message("Skipping support for UVC devices (manual override from command line)")
DEFINES -= QGC_DISABLE_UVC
DEFINES += QGC_DISABLE_UVC
} else:exists(user_config.pri):infile(user_config.pri, DEFINES, QGC_DISABLE_UVC) {
message("Skipping support for UVC devices (manual override from user_config.pri)")
DEFINES -= QGC_DISABLE_UVC
DEFINES += QGC_DISABLE_UVC
}
LinuxBuild {
@ -87,8 +87,13 @@ QT += \ @@ -87,8 +87,13 @@ QT += \
sql \
svg \
widgets \
xml \
multimedia
xml
# Multimedia only used if QVC is enabled
!contains (DEFINES, QGC_DISABLE_UVC) {
QT += \
multimedia
}
!MobileBuild {
QT += \

3
src/FlightDisplay/VideoManager.cc

@ -11,7 +11,10 @@ @@ -11,7 +11,10 @@
#include <QQmlContext>
#include <QQmlEngine>
#include <QSettings>
#ifndef QGC_DISABLE_UVC
#include <QCameraInfo>
#endif
#include <VideoItem.h>

Loading…
Cancel
Save