qt5base: add qmake.conf fixup for i.MX platforms
PATCH 1/1 qt5base: add qmake.conf fixup for i.MX platforms
As stated in QTBUG-61156 [1], since Qt5.9 all the Qt apps fail to start on i.MX platforms.
The reason is that the qmake.conf should apparently now specify which eglfs backend to use.
It can be seen in the qmake.conf example for i.MX [2].
It has also been integrated into the Yocto meta-freescale layer [3].
Although this issue can be worked around by exporting a variable (QT_QPA_EGLFS_INTEGRATION=eglfs_viv), this patch aims at providing a more user-friendly approach by modifying qmake.conf when created.
[1]: https://bugreports.qt.io/browse/QTBUG-61156
[2]: https://github.com/qt/qtbase/blob/5.9/mkspecs/devices/linux-imx6-g%2B%2B/qmake.conf#L35
[3]: https://github.com/Freescale/meta-freescale/blob/master/dynamic-layers/qt5-layer/recipes-qt/qt5/qtbase/0015-Add-eglfs-to-IMX-GPU.patch
---
Hi all,
Not sure if this approach is acceptable but my idea was to make this patch as small as possible.
It was tested on Nitrogen6x using the nitrogen6x_qt5_gst1_defconfig from our newly created external repository:
https://github.com/boundarydevices/buildroot-external-boundary
Regards,
Gary
--- package/qt5/qt5base/qt5base.mk | 10 ++++++++++ 1 file changed, 10 insertions(+)
package/qt5/qt5base/qt5base.mk +10 -0
@@ -214,6 +214,15 @@ QT5BASE_INSTALL_LIBS_$(BR2_PACKAGE_QT5BASE_PRINTSUPPORT) += Qt5PrintSupport QT5BASE_INSTALL_LIBS_$(BR2_PACKAGE_QT5BASE_DBUS) += Qt5DBus +ifeq ($(BR2_PACKAGE_QT5_VERSION_LATEST),y) +ifeq ($(BR2_PACKAGE_IMX_GPU_VIV),y) +define QT5BASE_CONFIGURE_QMAKE_CONFIG + echo "EGLFS_DEVICE_INTEGRATION = eglfs_viv" >> \ + $(@D)/mkspecs/devices/linux-buildroot-g++/qmake.conf +endef +endif +endif + ifneq ($(QT5BASE_CONFIG_FILE),) define QT5BASE_CONFIGURE_CONFIG_FILE cp $(QT5BASE_CONFIG_FILE) $(@D)/src/corelib/global/qconfig-buildroot.h
@@ -231,6 +240,7 @@ endif define QT5BASE_CONFIGURE_CMDS $(INSTALL) -m 0644 -D $(QT5BASE_PKGDIR)/qmake.conf \ $(@D)/mkspecs/devices/linux-buildroot-g++/qmake.conf + $(QT5BASE_CONFIGURE_QMAKE_CONFIG) $(INSTALL) -m 0644 -D $(QT5BASE_PKGDIR)/qplatformdefs.h \ $(@D)/mkspecs/devices/linux-buildroot-g++/qplatformdefs.h $(QT5BASE_CONFIGURE_CONFIG_FILE)
Signature · 1 line
2.14.1
PATCH 1/1 qt5base: add qmake.conf fixup for i.MX platforms
Hi,
Quoted 14 lines · Gary Bisson
As stated in QTBUG-61156 [1], since Qt5.9 all the Qt apps fail to start on i.MX platforms.
The reason is that the qmake.conf should apparently now specify which eglfs backend to use.
It can be seen in the qmake.conf example for i.MX [2].
It has also been integrated into the Yocto meta-freescale layer [3].
Although this issue can be worked around by exporting a variable (QT_QPA_EGLFS_INTEGRATION=eglfs_viv), this patch aims at providing a more user-friendly approach by modifying qmake.conf when created.
Quoted 5 lines
[1]: https://bugreports.qt.io/browse/QTBUG-61156
[2]: https://github.com/qt/qtbase/blob/5.9/mkspecs/devices/linux-imx6-g%2B%2B/qmake.conf#L35
[3]: https://github.com/Freescale/meta-freescale/blob/master/dynamic-layers/qt5-layer/recipes-qt/qt5/qtbase/0015-Add-eglfs-to-IMX-GPU.patchSigned-off-by Gary Bisson <[email protected]>
I'm a bit late at the party, but I encountered the same bug, and that fixed it.
Thanks!
Maxime
Signature · 10 lines
Maxime Ripard, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 801 bytes Desc: not available URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20171106/690c0681/attachment.asc>
PATCH 1/1 qt5base: add qmake.conf fixup for i.MX platforms
In reply to Gary BissonQuoted 20 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Gary" == Gary Bisson <[email protected]> writes:
As stated in QTBUG-61156 [1], since Qt5.9 all the Qt apps fail to start on i.MX platforms.
The reason is that the qmake.conf should apparently now specify which eglfs backend to use.
It can be seen in the qmake.conf example for i.MX [2].
It has also been integrated into the Yocto meta-freescale layer [3].
Although this issue can be worked around by exporting a variable (QT_QPA_EGLFS_INTEGRATION=eglfs_viv), this patch aims at providing a more user-friendly approach by modifying qmake.conf when created.
[1]: https://bugreports.qt.io/browse/QTBUG-61156
[2]: https://github.com/qt/qtbase/blob/5.9/mkspecs/devices/linux-imx6-g%2B%2B/qmake.conf#L35
[3]: https://github.com/Freescale/meta-freescale/blob/master/dynamic-layers/qt5-layer/recipes-qt/qt5/qtbase/0015-Add-eglfs-to-IMX-GPU.patch
Quoted 6 lines
Signed-off-by Gary Bisson <[email protected]>---
Hi all,Not sure if this approach is acceptable but my idea was to make this patch as small as possible.
I also don't find it very nice, but OK - Nobody suggested any better option - So committed after a minor cleanup, thanks.
package/qt5/qt5base/qt5base.mk QT5BASE_INSTALL_LIBS_$(BR2_PACKAGE_QT5BASE_PRINTSUPPORT) += Qt5PrintSupport · line 218
Quoted 4 lines
QT5BASE_INSTALL_LIBS_$(BR2_PACKAGE_QT5BASE_DBUS) += Qt5DBus
package/qt5/qt5base/qt5base.mk +2
-0+ifeq ($(BR2_PACKAGE_QT5_VERSION_LATEST),y) +ifeq ($(BR2_PACKAGE_IMX_GPU_VIV),y)
It is simpler to handle these in a single conditionl - E.G.:
ifeq ($(BR2_PACKAGE_QT5_VERSION_LATEST)$(BR2_PACKAGE_IMX_GPU_VIV),yy)
Like it is already done elsewhere in qt5base.mk.
I also added a comment explaining why we do this.
Signature · 1 line
Bye, Peter Korsgaard