[Buildroot] [PATCH v1] qt5multimedia: select Qt5OpenGL module in case OpenGL support is enabled

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Tue May 17 11:45:15 UTC 2016


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?

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com


More information about the buildroot mailing list