[Buildroot] [PATCH v1] qt5multimedia: select Qt5OpenGL module in case OpenGL support is enabled
Peter Seiderer
ps.report at gmx.net
Tue May 17 12:07:33 UTC 2016
On Tue, 17 May 2016 13:45:15 +0200, Thomas Petazzoni <thomas.petazzoni at free-electrons.com> wrote:
Hello Thomas,
> Hello,
>
> On Tue, 17 May 2016 13:09:08 +0200, Peter Seiderer wrote:
>
> > diff --git a/package/qt5/qt5multimedia/Config.in b/package/qt5/qt5multimedia/Config.in
> > index 59c3984..7549b35 100644
> > --- a/package/qt5/qt5multimedia/Config.in
> > +++ b/package/qt5/qt5multimedia/Config.in
> > @@ -3,6 +3,7 @@ config BR2_PACKAGE_QT5MULTIMEDIA
> > select BR2_PACKAGE_QT5BASE
> > select BR2_PACKAGE_QT5BASE_GUI
> > select BR2_PACKAGE_QT5BASE_NETWORK
> > + select BR2_PACKAGE_QT5BASE_OPENGL_LIB if BR2_PACKAGE_QT5BASE_OPENGL
>
> Do you know why we have this BR2_PACKAGE_QT5BASE_OPENGL_LIB option,
> rather than just installing Qt5OpenGL as soon as
> BR2_PACKAGE_QT5BASE_OPENGL is true?
>
> Whenever BR2_PACKAGE_QT5BASE_OPENGL is enabled, either
> BR2_PACKAGE_QT5BASE_OPENGL_DESKTOP or BR2_PACKAGE_QT5BASE_OPENGL_ES2
> are selected, since they are part of a choice. And both of them enable
> OpenGL support in Qt:
>
> ifeq ($(BR2_PACKAGE_QT5BASE_OPENGL_DESKTOP),y)
> QT5BASE_CONFIGURE_OPTS += -opengl desktop
> QT5BASE_DEPENDENCIES += libgl
> else ifeq ($(BR2_PACKAGE_QT5BASE_OPENGL_ES2),y)
> QT5BASE_CONFIGURE_OPTS += -opengl es2
> QT5BASE_DEPENDENCIES += libgles
> else
> QT5BASE_CONFIGURE_OPTS += -no-opengl
> endif
>
> So it seems weird to enable OpenGL support in Qt but to not install the
> corresponding library. Or are there use cases where OpenGL support is
> used, but the Qt5OpenGL library is not needed?
>
E.g. qt5declarative/quick module selects BR2_PACKAGE_QT5BASE_OPENGL without
BR2_PACKAGE_QT5BASE_OPENGL_LIB (and I think it works)..., maybe all not widget
based OpenGL features...
Regards,
Peter
> Thanks!
>
> Thomas
More information about the buildroot
mailing list