Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
24358c1d
Commit
24358c1d
authored
Aug 30, 2016
by
dogmaphobic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix inverted logic when disabling UVC.
parent
e4ce25b7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
4 deletions
+17
-4
QGCSetup.pri
QGCSetup.pri
+5
-0
qgroundcontrol.pro
qgroundcontrol.pro
+9
-4
VideoManager.cc
src/FlightDisplay/VideoManager.cc
+3
-0
No files found.
QGCSetup.pri
View file @
24358c1d
...
...
@@ -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 \
...
...
qgroundcontrol.pro
View file @
24358c1d
...
...
@@ -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 += \
sql
\
svg
\
widgets
\
xml
\
multimedia
xml
#
Multimedia
only
used
if
QVC
is
enabled
!
contains
(
DEFINES
,
QGC_DISABLE_UVC
)
{
QT
+=
\
multimedia
}
!
MobileBuild
{
QT
+=
\
...
...
src/FlightDisplay/VideoManager.cc
View file @
24358c1d
...
...
@@ -11,7 +11,10 @@
#include <QQmlContext>
#include <QQmlEngine>
#include <QSettings>
#ifndef QGC_DISABLE_UVC
#include <QCameraInfo>
#endif
#include <VideoItem.h>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment