Skip to contentSkip to conversation

package/qt5base: libgtk3 support depends on X11 backend

PATCH New Joshua Henderson 3 participants 5 messages Aug 9, 2017 – Aug 11, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

[1] http://autobuild.buildroot.net/results/6f3c2fcb0a44cd13ef4c73822d4d08f923291099

Cc Julien Corjon <[email protected]>
Cc Brent Sink <[email protected]>
Cc Naoki Matsumoto <[email protected]>
---
 package/qt5/qt5base/qt5base.mk | 10 ++++++++++
 1 file changed, 10 insertions(+)
package/qt5/qt5base/qt5base.mk +10 -0
index bbbdd41..1b4bd7b 100644
@@ -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
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 package/qt5base: libgtk3 support depends on X11 backend

Hello Joshua,

Quoted 10 lines

Gesendet: Mittwoch, 09. August 2017 um 02:09 Uhr
Von: "Joshua Henderson" <[email protected]>
An: buildroot at buildroot.org
Cc: "Peter Seiderer" <[email protected]>, "Julien Corjon" <[email protected]>, "Brent Sink" <[email protected]>, "Naoki Matsumoto" <[email protected]>
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

Quoted 36 lines

[1] http://autobuild.buildroot.net/results/6f3c2fcb0a44cd13ef4c73822d4d08f923291099

Cc Julien Corjon <[email protected]>
Cc Brent Sink <[email protected]>
Cc Naoki Matsumoto <[email protected]>
---
 package/qt5/qt5base/qt5base.mk | 10 ++++++++++
 1 file changed, 10 insertions(+)
package/qt5/qt5base/qt5base.mk +10 -0
index bbbdd41..1b4bd7b 100644
@@ -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
Signature · 1 line
2.7.4
#2 lore raw

PATCH 1/1 package/qt5base: libgtk3 support depends on X11 backend

Hi Peter,

Quoted 8 lines · Peter Seiderer

Hello Joshua,

Quoted 6 lines

Gesendet: Mittwoch, 09. August 2017 um 02:09 Uhr
Von: "Joshua Henderson" <[email protected]>
An: buildroot at buildroot.org
Cc: "Peter Seiderer" <[email protected]>, "Julien Corjon" <[email protected]>, "Brent Sink" <[email protected]>, "Naoki Matsumoto" <[email protected]>
Betreff: [PATCH] package/qt5base: libgtk3 support depends on X11 backend

Quoted 6 lines
Quoted 4 lines

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...

Do you expect a proper resolution to arrive before 2017.08, or should I apply
Joshua's patch (with modified commit message) to master after all?

Regards,
Arnout

Quoted 6 lines

Regards,
Peter

[2] http://lists.busybox.net/pipermail/buildroot/2017-July/196075.html

Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
#3 lore raw

PATCH 1/1 package/qt5base: libgtk3 support depends on X11 backend

Hello Arnout,

Quoted 15 lines · Arnout Vandecappelle

Hi Peter,

Quoted 12 lines · Peter Seiderer

Hello Joshua,

Quoted 10 lines

Gesendet: Mittwoch, 09. August 2017 um 02:09 Uhr
Von: "Joshua Henderson" <[email protected]>
An: buildroot at buildroot.org
Cc: "Peter Seiderer" <[email protected]>, "Julien Corjon" <[email protected]>, "Brent Sink" <[email protected]>, "Naoki Matsumoto" <[email protected]>
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.

Quoted 5 lines
Quoted 2 lines

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...

Do you expect a proper resolution to arrive before 2017.08, or should I apply
Joshua's patch (with modified commit message) to master after all?

Would prefer to try patch [3] or add MESA_EGL_NO_X11_HEADERS define via arch.conf (as done e.g. for libatomic by Yann's patch [4])...but will not find enough time the next two weeks to try...

Regards,
Peter

[3] https://codereview.qt-project.org/#/c/198906/
[4] https://git.buildroot.net/buildroot/commit/?id=7d286be4f96cfb731e184c3e8cfea27a031bde3c

Quoted 11 lines

Regards,
Arnout

Quoted 6 lines

Regards,
Peter

[2] http://lists.busybox.net/pipermail/buildroot/2017-July/196075.html

#4 lore raw

PATCH 1/1 package/qt5base: libgtk3 support depends on X11 backend

Quoted 22 lines · Peter Seiderer

Hello Arnout,

Quoted 18 lines · Arnout Vandecappelle

Hi Peter,

Quoted 14 lines · Peter Seiderer

Hello Joshua,

Quoted 10 lines

Gesendet: Mittwoch, 09. August 2017 um 02:09 Uhr
Von: "Joshua Henderson" <[email protected]>
An: buildroot at buildroot.org
Cc: "Peter Seiderer" <[email protected]>, "Julien Corjon" <[email protected]>, "Brent Sink" <[email protected]>, "Naoki Matsumoto" <[email protected]>
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...

Quoted 6 lines
Quoted 2 lines

Do you expect a proper resolution to arrive before 2017.08, or should I apply
Joshua's patch (with modified commit message) to master after all?

Would prefer to try patch [3] or add MESA_EGL_NO_X11_HEADERS define via arch.conf (as done e.g. for libatomic by Yann's patch [4])...but will not find enough time the next two weeks to try...

Also your reference [3] got negative review, and doing it through arch.conf
sounds like a hack. So I've applied to master, with a few changes:
- extend commit message
- improve comment
- also pass -no-gtk if libgtk3 is not selected

Regards,
Arnout

Quoted 20 lines

Regards,
Peter

[3] https://codereview.qt-project.org/#/c/198906/
[4] https://git.buildroot.net/buildroot/commit/?id=7d286be4f96cfb731e184c3e8cfea27a031bde3c

Quoted 11 lines

Regards,
Arnout

Quoted 6 lines

Regards,
Peter

[2] http://lists.busybox.net/pipermail/buildroot/2017-July/196075.html

Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF