* [Buildroot] [PATCH 1/1] package/qt5multimedia: fix build without opengl
@ 2019-08-15 22:34 Fabrice Fontaine
2019-08-15 22:42 ` Peter Seiderer
2019-08-17 14:32 ` Thomas Petazzoni
0 siblings, 2 replies; 3+ messages in thread
From: Fabrice Fontaine @ 2019-08-15 22:34 UTC (permalink / raw)
To: buildroot
Fixes:
- http://autobuild.buildroot.org/results/fc7bcc6b3ccf1e075dce43296b36e7e1cac417db
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
...en-no-opengl-in-QVideoSurfacePainter.patch | 47 +++++++++++++++++++
1 file changed, 47 insertions(+)
create mode 100644 package/qt5/qt5multimedia/5.12.4/0001-Fix-compile-issue-when-no-opengl-in-QVideoSurfacePainter.patch
diff --git a/package/qt5/qt5multimedia/5.12.4/0001-Fix-compile-issue-when-no-opengl-in-QVideoSurfacePainter.patch b/package/qt5/qt5multimedia/5.12.4/0001-Fix-compile-issue-when-no-opengl-in-QVideoSurfacePainter.patch
new file mode 100644
index 0000000000..1dc7701c08
--- /dev/null
+++ b/package/qt5/qt5multimedia/5.12.4/0001-Fix-compile-issue-when-no-opengl-in-QVideoSurfacePainter.patch
@@ -0,0 +1,47 @@
+From 9bbf9f0d862b8d458e59690d36641618fb101b4e Mon Sep 17 00:00:00 2001
+From: Val Doroshchuk <valentyn.doroshchuk@qt.io>
+Date: Mon, 17 Jun 2019 15:20:22 +0200
+Subject: Fix compile issue when no opengl in QVideoSurfacePainter
+
+error: invalid use of incomplete type 'class QGLContext'
+
+Change-Id: I4bc9bd4231e663b187d3cef917b7a551ba614ba9
+Fixes: QTBUG-76405
+Reviewed-by: Andy Shaw <andy.shaw@qt.io>
+
+[Retrieved from:
+https://code.qt.io/cgit/qt/qtmultimedia.git/commit/?id=9bbf9f0d862b8d458e59690d36641618fb101b4e]
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+---
+ src/multimediawidgets/qpaintervideosurface.cpp | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/src/multimediawidgets/qpaintervideosurface.cpp b/src/multimediawidgets/qpaintervideosurface.cpp
+index 440d5c858..6af0c7588 100644
+--- a/src/multimediawidgets/qpaintervideosurface.cpp
++++ b/src/multimediawidgets/qpaintervideosurface.cpp
+@@ -57,10 +57,6 @@
+ #ifndef GL_RGB8
+ #define GL_RGB8 0x8051
+ #endif
+-#endif
+-
+-#include <QtDebug>
+-QT_BEGIN_NAMESPACE
+
+ static void makeCurrent(QGLContext *context)
+ {
+@@ -70,6 +66,10 @@ static void makeCurrent(QGLContext *context)
+ if (handle && QOpenGLContext::currentContext() != handle)
+ handle->makeCurrent(handle->surface());
+ }
++#endif
++
++#include <QtDebug>
++QT_BEGIN_NAMESPACE
+
+ QVideoSurfacePainter::~QVideoSurfacePainter()
+ {
+--
+cgit v1.2.1
+
--
2.20.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* [Buildroot] [PATCH 1/1] package/qt5multimedia: fix build without opengl
2019-08-15 22:34 [Buildroot] [PATCH 1/1] package/qt5multimedia: fix build without opengl Fabrice Fontaine
@ 2019-08-15 22:42 ` Peter Seiderer
2019-08-17 14:32 ` Thomas Petazzoni
1 sibling, 0 replies; 3+ messages in thread
From: Peter Seiderer @ 2019-08-15 22:42 UTC (permalink / raw)
To: buildroot
Hello Fabrice,
On Fri, 16 Aug 2019 00:34:03 +0200, Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:
> Fixes:
> - http://autobuild.buildroot.org/results/fc7bcc6b3ccf1e075dce43296b36e7e1cac417db
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
> ...en-no-opengl-in-QVideoSurfacePainter.patch | 47 +++++++++++++++++++
> 1 file changed, 47 insertions(+)
> create mode 100644 package/qt5/qt5multimedia/5.12.4/0001-Fix-compile-issue-when-no-opengl-in-QVideoSurfacePainter.patch
>
> diff --git a/package/qt5/qt5multimedia/5.12.4/0001-Fix-compile-issue-when-no-opengl-in-QVideoSurfacePainter.patch b/package/qt5/qt5multimedia/5.12.4/0001-Fix-compile-issue-when-no-opengl-in-QVideoSurfacePainter.patch
> new file mode 100644
> index 0000000000..1dc7701c08
> --- /dev/null
> +++ b/package/qt5/qt5multimedia/5.12.4/0001-Fix-compile-issue-when-no-opengl-in-QVideoSurfacePainter.patch
> @@ -0,0 +1,47 @@
> +From 9bbf9f0d862b8d458e59690d36641618fb101b4e Mon Sep 17 00:00:00 2001
> +From: Val Doroshchuk <valentyn.doroshchuk@qt.io>
> +Date: Mon, 17 Jun 2019 15:20:22 +0200
> +Subject: Fix compile issue when no opengl in QVideoSurfacePainter
> +
> +error: invalid use of incomplete type 'class QGLContext'
> +
> +Change-Id: I4bc9bd4231e663b187d3cef917b7a551ba614ba9
> +Fixes: QTBUG-76405
> +Reviewed-by: Andy Shaw <andy.shaw@qt.io>
> +
> +[Retrieved from:
> +https://code.qt.io/cgit/qt/qtmultimedia.git/commit/?id=9bbf9f0d862b8d458e59690d36641618fb101b4e]
> +Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +---
> + src/multimediawidgets/qpaintervideosurface.cpp | 8 ++++----
> + 1 file changed, 4 insertions(+), 4 deletions(-)
> +
> +diff --git a/src/multimediawidgets/qpaintervideosurface.cpp b/src/multimediawidgets/qpaintervideosurface.cpp
> +index 440d5c858..6af0c7588 100644
> +--- a/src/multimediawidgets/qpaintervideosurface.cpp
> ++++ b/src/multimediawidgets/qpaintervideosurface.cpp
> +@@ -57,10 +57,6 @@
> + #ifndef GL_RGB8
> + #define GL_RGB8 0x8051
> + #endif
> +-#endif
> +-
> +-#include <QtDebug>
> +-QT_BEGIN_NAMESPACE
> +
> + static void makeCurrent(QGLContext *context)
> + {
> +@@ -70,6 +66,10 @@ static void makeCurrent(QGLContext *context)
> + if (handle && QOpenGLContext::currentContext() != handle)
> + handle->makeCurrent(handle->surface());
> + }
> ++#endif
> ++
> ++#include <QtDebug>
> ++QT_BEGIN_NAMESPACE
> +
> + QVideoSurfacePainter::~QVideoSurfacePainter()
> + {
> +--
> +cgit v1.2.1
> +
Reviewed-by: Peter Seiderer <ps.report@gmx.net>
Regards,
Peter
^ permalink raw reply [flat|nested] 3+ messages in thread* [Buildroot] [PATCH 1/1] package/qt5multimedia: fix build without opengl
2019-08-15 22:34 [Buildroot] [PATCH 1/1] package/qt5multimedia: fix build without opengl Fabrice Fontaine
2019-08-15 22:42 ` Peter Seiderer
@ 2019-08-17 14:32 ` Thomas Petazzoni
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2019-08-17 14:32 UTC (permalink / raw)
To: buildroot
On Fri, 16 Aug 2019 00:34:03 +0200
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:
> Fixes:
> - http://autobuild.buildroot.org/results/fc7bcc6b3ccf1e075dce43296b36e7e1cac417db
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
> ...en-no-opengl-in-QVideoSurfacePainter.patch | 47 +++++++++++++++++++
> 1 file changed, 47 insertions(+)
> create mode 100644 package/qt5/qt5multimedia/5.12.4/0001-Fix-compile-issue-when-no-opengl-in-QVideoSurfacePainter.patch
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-08-17 14:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-08-15 22:34 [Buildroot] [PATCH 1/1] package/qt5multimedia: fix build without opengl Fabrice Fontaine
2019-08-15 22:42 ` Peter Seiderer
2019-08-17 14:32 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox