[Buildroot] [PATCH] package/qt5base: libgtk3 support depends on X11 backend
Peter Seiderer
ps.report at gmx.net
Wed Aug 9 07:38:11 UTC 2017
Hello Joshua,
> Gesendet: Mittwoch, 09. August 2017 um 02:09 Uhr
> Von: "Joshua Henderson" <joshua.henderson at microchip.com>
> An: buildroot at buildroot.org
> Cc: "Peter Seiderer" <ps.report at gmx.net>, "Julien Corjon" <corjon.j at ecagroup.com>, "Brent Sink" <brents_3 at hotmail.com>, "Naoki Matsumoto" <n-matsumoto at melcoinc.co.jp>
> Betreff: [PATCH] package/qt5base: libgtk3 support depends on X11 backend
>
> libgtk3 can conditionally be build with or without the X11 backend unlike
> libgtk2. If libgtk3 is enabled and the X11 backend is not enabled for
> BR2_PACKAGE_QT5_VERSION_LATEST, a build error [1] is introduced. This change
> disables gtk support in this case.
NAK - or only as a workaround, the real issue is a missing QT_EGL_NO_X11/MESA_EGL_NO_X11_HEADERS
define, see e.g. [2] for further discussion...
Regards,
Peter
[2] http://lists.busybox.net/pipermail/buildroot/2017-July/196075.html
>
> [1] http://autobuild.buildroot.net/results/6f3c2fcb0a44cd13ef4c73822d4d08f923291099
>
> Signed-off-by: Joshua Henderson <joshua.henderson at microchip.com>
> Cc: Julien Corjon <corjon.j at ecagroup.com>
> Cc: Brent Sink <brents_3 at hotmail.com>
> Cc: Naoki Matsumoto <n-matsumoto at melcoinc.co.jp>
> ---
> package/qt5/qt5base/qt5base.mk | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
> diff --git a/package/qt5/qt5base/qt5base.mk b/package/qt5/qt5base/qt5base.mk
> index bbbdd41..1b4bd7b 100644
> --- a/package/qt5/qt5base/qt5base.mk
> +++ b/package/qt5/qt5base/qt5base.mk
> @@ -190,6 +190,16 @@ else
> QT5BASE_CONFIGURE_OPTS += -no-libinput
> endif
>
> +ifeq ($(BR2_PACKAGE_QT5_VERSION_LATEST)$(BR2_PACKAGE_LIBGTK3),yy)
> +# only enable gtk support if libgtk3 X11 backend is enabled
> +ifeq ($(BR2_PACKAGE_LIBGTK3_X11),y)
> +QT5BASE_CONFIGURE_OPTS += -gtk
> +QT5BASE_DEPENDENCIES += libgtk3
> +else
> +QT5BASE_CONFIGURE_OPTS += -no-gtk
> +endif
> +endif
> +
> # Build the list of libraries to be installed on the target
> QT5BASE_INSTALL_LIBS_y += Qt5Core
> QT5BASE_INSTALL_LIBS_$(BR2_PACKAGE_QT5BASE_XCB) += Qt5XcbQpa
> --
> 2.7.4
>
>
More information about the buildroot
mailing list