* [Buildroot] [PATCH v1 1/2] qt5base: fix eglfs x11 header related compile failure
@ 2017-03-10 22:15 Peter Seiderer
2017-03-10 22:15 ` [Buildroot] [PATCH v1 2/2] qt5base: install libQt5EglFsKmsSupport Peter Seiderer
` (4 more replies)
0 siblings, 5 replies; 7+ messages in thread
From: Peter Seiderer @ 2017-03-10 22:15 UTC (permalink / raw)
To: buildroot
Add egl config and QT_EGL_NO_X11 define (as all other eglfs project
files do) to src/plugins/platforms/eglfs/eglfs-plugin.pro.
Fixes ([1]):
In file included from .../host/usr/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include/EGL/egl.h:39:0,
from ../../../../include/QtEglSupport/5.8.0/QtEglSupport/private/../../../../../src/platformsupport/eglconvenience/qt_egl_p.h:63,
from ../../../../include/QtEglSupport/5.8.0/QtEglSupport/private/qt_egl_p.h:1,
from api/qeglfsglobal_p.h:56,
from api/qeglfsintegration_p.h:54,
from qeglfsmain.cpp:41:
.../host/usr/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include/EGL/eglplatform.h:119:22: fatal error: X11/Xlib.h: No such file or directory
compilation terminated.
Makefile.eglfs-plugin:1024: recipe for target '.obj/qeglfsmain.o' failed
make[2]: *** [.obj/qeglfsmain.o] Error 1
make[2]: Leaving directory '.../qt5base-5.8.0/src/plugins/platforms/eglfs'
Makefile:71: recipe for target 'sub-eglfs-plugin-pro-make_first-ordered' failed
make[1]: *** [sub-eglfs-plugin-pro-make_first-ordered] Error 2
[1] http://lists.busybox.net/pipermail/buildroot/2017-March/186158.html
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
---
| 36 ++++++++++++++++++++++
1 file changed, 36 insertions(+)
create mode 100644 package/qt5/qt5base/5.8.0/0003-eglfs-fix-x11-header-related-compile-failure.patch
--git a/package/qt5/qt5base/5.8.0/0003-eglfs-fix-x11-header-related-compile-failure.patch b/package/qt5/qt5base/5.8.0/0003-eglfs-fix-x11-header-related-compile-failure.patch
new file mode 100644
index 000000000..0e8bcffa2
--- /dev/null
+++ b/package/qt5/qt5base/5.8.0/0003-eglfs-fix-x11-header-related-compile-failure.patch
@@ -0,0 +1,36 @@
+From 8902f4d7b7c532592d1a34ad117698d3e380e9e1 Mon Sep 17 00:00:00 2001
+From: Peter Seiderer <ps.report@gmx.net>
+Date: Fri, 10 Mar 2017 22:23:06 +0100
+Subject: [PATCH] eglfs: fix x11 header related compile failure
+
+Add egl config and QT_EGL_NO_X11 define (as all other eglfs project
+files do).
+
+Task-number: QTBUG-59427
+Change-Id: Ifbb11eae0fdf0e58c0b7feecb9a7914a889c8f77
+
+Upstream: https://codereview.qt-project.org/188158
+Signed-off-by: Peter Seiderer <ps.report@gmx.net>
+---
+ src/plugins/platforms/eglfs/eglfs-plugin.pro | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/src/plugins/platforms/eglfs/eglfs-plugin.pro b/src/plugins/platforms/eglfs/eglfs-plugin.pro
+index cf4863975a..ec229796e5 100644
+--- a/src/plugins/platforms/eglfs/eglfs-plugin.pro
++++ b/src/plugins/platforms/eglfs/eglfs-plugin.pro
+@@ -2,6 +2,11 @@ TARGET = qeglfs
+
+ QT += eglfsdeviceintegration-private
+
++CONFIG += egl
++
++# Avoid X11 header collision, use generic EGL native types
++DEFINES += QT_EGL_NO_X11
++
+ SOURCES += $$PWD/qeglfsmain.cpp
+
+ OTHER_FILES += $$PWD/eglfs.json
+--
+2.11.0
+
--
2.11.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH v1 2/2] qt5base: install libQt5EglFsKmsSupport
2017-03-10 22:15 [Buildroot] [PATCH v1 1/2] qt5base: fix eglfs x11 header related compile failure Peter Seiderer
@ 2017-03-10 22:15 ` Peter Seiderer
2017-03-13 23:15 ` Peter Korsgaard
2017-03-11 16:57 ` [Buildroot] [PATCH v1 1/2] qt5base: fix eglfs x11 header related compile failure Arnout Vandecappelle
` (3 subsequent siblings)
4 siblings, 1 reply; 7+ messages in thread
From: Peter Seiderer @ 2017-03-10 22:15 UTC (permalink / raw)
To: buildroot
According to src/plugins/platforms/eglfs/deviceintegration/deviceintegration.pro
depends on eglfs_gbm which depends according to src/gui/configure.json
on features.eglfs and features.gbm and features.kms, so dependency
on BR2_PACKAGE_MESA3D_OPENGL_EGL which enables mesa3d gbm support
should be sufficient.
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
---
package/qt5/qt5base/qt5base.mk | 3 +++
1 file changed, 3 insertions(+)
diff --git a/package/qt5/qt5base/qt5base.mk b/package/qt5/qt5base/qt5base.mk
index 7a335736d..102034890 100644
--- a/package/qt5/qt5base/qt5base.mk
+++ b/package/qt5/qt5base/qt5base.mk
@@ -200,6 +200,9 @@ QT5BASE_INSTALL_LIBS_$(BR2_PACKAGE_QT5BASE_XML) += Qt5Xml
QT5BASE_INSTALL_LIBS_$(BR2_PACKAGE_QT5BASE_OPENGL_LIB) += Qt5OpenGL
ifeq ($(BR2_PACKAGE_QT5_VERSION_LATEST),y)
QT5BASE_INSTALL_LIBS_$(BR2_PACKAGE_QT5BASE_EGLFS) += Qt5EglFSDeviceIntegration
+ifeq ($(BR2_PACKAGE_MESA3D_OPENGL_EGL),y)
+QT5BASE_INSTALL_LIBS_$(BR2_PACKAGE_QT5BASE_EGLFS) += Qt5EglFsKmsSupport
+endif
else
QT5BASE_INSTALL_LIBS_$(BR2_PACKAGE_QT5BASE_EGLFS) += Qt5EglDeviceIntegration
endif
--
2.11.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH v1 1/2] qt5base: fix eglfs x11 header related compile failure
2017-03-10 22:15 [Buildroot] [PATCH v1 1/2] qt5base: fix eglfs x11 header related compile failure Peter Seiderer
2017-03-10 22:15 ` [Buildroot] [PATCH v1 2/2] qt5base: install libQt5EglFsKmsSupport Peter Seiderer
@ 2017-03-11 16:57 ` Arnout Vandecappelle
2017-03-12 14:39 ` Thomas Petazzoni
` (2 subsequent siblings)
4 siblings, 0 replies; 7+ messages in thread
From: Arnout Vandecappelle @ 2017-03-11 16:57 UTC (permalink / raw)
To: buildroot
On 10-03-17 23:15, Peter Seiderer wrote:
> Add egl config and QT_EGL_NO_X11 define (as all other eglfs project
> files do) to src/plugins/platforms/eglfs/eglfs-plugin.pro.
>
> Fixes ([1]):
>
> In file included from .../host/usr/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include/EGL/egl.h:39:0,
> from ../../../../include/QtEglSupport/5.8.0/QtEglSupport/private/../../../../../src/platformsupport/eglconvenience/qt_egl_p.h:63,
> from ../../../../include/QtEglSupport/5.8.0/QtEglSupport/private/qt_egl_p.h:1,
> from api/qeglfsglobal_p.h:56,
> from api/qeglfsintegration_p.h:54,
> from qeglfsmain.cpp:41:
> .../host/usr/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include/EGL/eglplatform.h:119:22: fatal error: X11/Xlib.h: No such file or directory
> compilation terminated.
> Makefile.eglfs-plugin:1024: recipe for target '.obj/qeglfsmain.o' failed
> make[2]: *** [.obj/qeglfsmain.o] Error 1
> make[2]: Leaving directory '.../qt5base-5.8.0/src/plugins/platforms/eglfs'
> Makefile:71: recipe for target 'sub-eglfs-plugin-pro-make_first-ordered' failed
> make[1]: *** [sub-eglfs-plugin-pro-make_first-ordered] Error 2
>
> [1] http://lists.busybox.net/pipermail/buildroot/2017-March/186158.html
Also fixes https://gitlab.com/buildroot.org/buildroot/builds/11700987
>
> Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Can't say I *really* understand the patch, but looks good to me.
Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
> ---
> ...fs-fix-x11-header-related-compile-failure.patch | 36 ++++++++++++++++++++++
> 1 file changed, 36 insertions(+)
> create mode 100644 package/qt5/qt5base/5.8.0/0003-eglfs-fix-x11-header-related-compile-failure.patch
>
> diff --git a/package/qt5/qt5base/5.8.0/0003-eglfs-fix-x11-header-related-compile-failure.patch b/package/qt5/qt5base/5.8.0/0003-eglfs-fix-x11-header-related-compile-failure.patch
> new file mode 100644
> index 000000000..0e8bcffa2
> --- /dev/null
> +++ b/package/qt5/qt5base/5.8.0/0003-eglfs-fix-x11-header-related-compile-failure.patch
> @@ -0,0 +1,36 @@
> +From 8902f4d7b7c532592d1a34ad117698d3e380e9e1 Mon Sep 17 00:00:00 2001
> +From: Peter Seiderer <ps.report@gmx.net>
> +Date: Fri, 10 Mar 2017 22:23:06 +0100
> +Subject: [PATCH] eglfs: fix x11 header related compile failure
> +
> +Add egl config and QT_EGL_NO_X11 define (as all other eglfs project
> +files do).
Well, not exactly all others, e.g. eglfs_viv doesn't. But eglfs_x11 *does*
define this, strangely enough.
Regards,
Arnout
> +
> +Task-number: QTBUG-59427
> +Change-Id: Ifbb11eae0fdf0e58c0b7feecb9a7914a889c8f77
> +
> +Upstream: https://codereview.qt-project.org/188158
> +Signed-off-by: Peter Seiderer <ps.report@gmx.net>
> +---
> + src/plugins/platforms/eglfs/eglfs-plugin.pro | 5 +++++
> + 1 file changed, 5 insertions(+)
> +
> +diff --git a/src/plugins/platforms/eglfs/eglfs-plugin.pro b/src/plugins/platforms/eglfs/eglfs-plugin.pro
> +index cf4863975a..ec229796e5 100644
> +--- a/src/plugins/platforms/eglfs/eglfs-plugin.pro
> ++++ b/src/plugins/platforms/eglfs/eglfs-plugin.pro
> +@@ -2,6 +2,11 @@ TARGET = qeglfs
> +
> + QT += eglfsdeviceintegration-private
> +
> ++CONFIG += egl
> ++
> ++# Avoid X11 header collision, use generic EGL native types
> ++DEFINES += QT_EGL_NO_X11
> ++
> + SOURCES += $$PWD/qeglfsmain.cpp
> +
> + OTHER_FILES += $$PWD/eglfs.json
> +--
> +2.11.0
> +
>
--
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH v1 1/2] qt5base: fix eglfs x11 header related compile failure
2017-03-10 22:15 [Buildroot] [PATCH v1 1/2] qt5base: fix eglfs x11 header related compile failure Peter Seiderer
2017-03-10 22:15 ` [Buildroot] [PATCH v1 2/2] qt5base: install libQt5EglFsKmsSupport Peter Seiderer
2017-03-11 16:57 ` [Buildroot] [PATCH v1 1/2] qt5base: fix eglfs x11 header related compile failure Arnout Vandecappelle
@ 2017-03-12 14:39 ` Thomas Petazzoni
2017-03-12 14:40 ` Fabio Estevam
2017-03-13 23:15 ` Peter Korsgaard
4 siblings, 0 replies; 7+ messages in thread
From: Thomas Petazzoni @ 2017-03-12 14:39 UTC (permalink / raw)
To: buildroot
Hello,
On Fri, 10 Mar 2017 23:15:46 +0100, Peter Seiderer wrote:
> Add egl config and QT_EGL_NO_X11 define (as all other eglfs project
> files do) to src/plugins/platforms/eglfs/eglfs-plugin.pro.
>
> Fixes ([1]):
>
> In file included from .../host/usr/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include/EGL/egl.h:39:0,
> from ../../../../include/QtEglSupport/5.8.0/QtEglSupport/private/../../../../../src/platformsupport/eglconvenience/qt_egl_p.h:63,
> from ../../../../include/QtEglSupport/5.8.0/QtEglSupport/private/qt_egl_p.h:1,
> from api/qeglfsglobal_p.h:56,
> from api/qeglfsintegration_p.h:54,
> from qeglfsmain.cpp:41:
> .../host/usr/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include/EGL/eglplatform.h:119:22: fatal error: X11/Xlib.h: No such file or directory
> compilation terminated.
> Makefile.eglfs-plugin:1024: recipe for target '.obj/qeglfsmain.o' failed
> make[2]: *** [.obj/qeglfsmain.o] Error 1
> make[2]: Leaving directory '.../qt5base-5.8.0/src/plugins/platforms/eglfs'
> Makefile:71: recipe for target 'sub-eglfs-plugin-pro-make_first-ordered' failed
> make[1]: *** [sub-eglfs-plugin-pro-make_first-ordered] Error 2
>
> [1] http://lists.busybox.net/pipermail/buildroot/2017-March/186158.html
>
> Signed-off-by: Peter Seiderer <ps.report@gmx.net>
> ---
> ...fs-fix-x11-header-related-compile-failure.patch | 36 ++++++++++++++++++++++
> 1 file changed, 36 insertions(+)
> create mode 100644 package/qt5/qt5base/5.8.0/0003-eglfs-fix-x11-header-related-compile-failure.patch
Both applied to master. Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH v1 1/2] qt5base: fix eglfs x11 header related compile failure
2017-03-10 22:15 [Buildroot] [PATCH v1 1/2] qt5base: fix eglfs x11 header related compile failure Peter Seiderer
` (2 preceding siblings ...)
2017-03-12 14:39 ` Thomas Petazzoni
@ 2017-03-12 14:40 ` Fabio Estevam
2017-03-13 23:15 ` Peter Korsgaard
4 siblings, 0 replies; 7+ messages in thread
From: Fabio Estevam @ 2017-03-12 14:40 UTC (permalink / raw)
To: buildroot
On Fri, Mar 10, 2017 at 7:15 PM, Peter Seiderer <ps.report@gmx.net> wrote:
> Add egl config and QT_EGL_NO_X11 define (as all other eglfs project
> files do) to src/plugins/platforms/eglfs/eglfs-plugin.pro.
>
> Fixes ([1]):
>
> In file included from .../host/usr/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include/EGL/egl.h:39:0,
> from ../../../../include/QtEglSupport/5.8.0/QtEglSupport/private/../../../../../src/platformsupport/eglconvenience/qt_egl_p.h:63,
> from ../../../../include/QtEglSupport/5.8.0/QtEglSupport/private/qt_egl_p.h:1,
> from api/qeglfsglobal_p.h:56,
> from api/qeglfsintegration_p.h:54,
> from qeglfsmain.cpp:41:
> .../host/usr/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include/EGL/eglplatform.h:119:22: fatal error: X11/Xlib.h: No such file or directory
> compilation terminated.
> Makefile.eglfs-plugin:1024: recipe for target '.obj/qeglfsmain.o' failed
> make[2]: *** [.obj/qeglfsmain.o] Error 1
> make[2]: Leaving directory '.../qt5base-5.8.0/src/plugins/platforms/eglfs'
> Makefile:71: recipe for target 'sub-eglfs-plugin-pro-make_first-ordered' failed
> make[1]: *** [sub-eglfs-plugin-pro-make_first-ordered] Error 2
>
> [1] http://lists.busybox.net/pipermail/buildroot/2017-March/186158.html
>
> Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Thanks a lot for the fixes, Peter!
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH v1 1/2] qt5base: fix eglfs x11 header related compile failure
2017-03-10 22:15 [Buildroot] [PATCH v1 1/2] qt5base: fix eglfs x11 header related compile failure Peter Seiderer
` (3 preceding siblings ...)
2017-03-12 14:40 ` Fabio Estevam
@ 2017-03-13 23:15 ` Peter Korsgaard
4 siblings, 0 replies; 7+ messages in thread
From: Peter Korsgaard @ 2017-03-13 23:15 UTC (permalink / raw)
To: buildroot
>>>>> "Peter" == Peter Seiderer <ps.report@gmx.net> writes:
> Add egl config and QT_EGL_NO_X11 define (as all other eglfs project
> files do) to src/plugins/platforms/eglfs/eglfs-plugin.pro.
> Fixes ([1]):
> In file included from .../host/usr/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include/EGL/egl.h:39:0,
> from ../../../../include/QtEglSupport/5.8.0/QtEglSupport/private/../../../../../src/platformsupport/eglconvenience/qt_egl_p.h:63,
> from ../../../../include/QtEglSupport/5.8.0/QtEglSupport/private/qt_egl_p.h:1,
> from api/qeglfsglobal_p.h:56,
> from api/qeglfsintegration_p.h:54,
> from qeglfsmain.cpp:41:
> .../host/usr/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include/EGL/eglplatform.h:119:22: fatal error: X11/Xlib.h: No such file or directory
> compilation terminated.
> Makefile.eglfs-plugin:1024: recipe for target '.obj/qeglfsmain.o' failed
> make[2]: *** [.obj/qeglfsmain.o] Error 1
> make[2]: Leaving directory '.../qt5base-5.8.0/src/plugins/platforms/eglfs'
> Makefile:71: recipe for target 'sub-eglfs-plugin-pro-make_first-ordered' failed
> make[1]: *** [sub-eglfs-plugin-pro-make_first-ordered] Error 2
> [1] http://lists.busybox.net/pipermail/buildroot/2017-March/186158.html
> Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Committed to 2017.02.x, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH v1 2/2] qt5base: install libQt5EglFsKmsSupport
2017-03-10 22:15 ` [Buildroot] [PATCH v1 2/2] qt5base: install libQt5EglFsKmsSupport Peter Seiderer
@ 2017-03-13 23:15 ` Peter Korsgaard
0 siblings, 0 replies; 7+ messages in thread
From: Peter Korsgaard @ 2017-03-13 23:15 UTC (permalink / raw)
To: buildroot
>>>>> "Peter" == Peter Seiderer <ps.report@gmx.net> writes:
> According to src/plugins/platforms/eglfs/deviceintegration/deviceintegration.pro
> depends on eglfs_gbm which depends according to src/gui/configure.json
> on features.eglfs and features.gbm and features.kms, so dependency
> on BR2_PACKAGE_MESA3D_OPENGL_EGL which enables mesa3d gbm support
> should be sufficient.
> Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Committed to 2017.02.x, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2017-03-13 23:15 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-10 22:15 [Buildroot] [PATCH v1 1/2] qt5base: fix eglfs x11 header related compile failure Peter Seiderer
2017-03-10 22:15 ` [Buildroot] [PATCH v1 2/2] qt5base: install libQt5EglFsKmsSupport Peter Seiderer
2017-03-13 23:15 ` Peter Korsgaard
2017-03-11 16:57 ` [Buildroot] [PATCH v1 1/2] qt5base: fix eglfs x11 header related compile failure Arnout Vandecappelle
2017-03-12 14:39 ` Thomas Petazzoni
2017-03-12 14:40 ` Fabio Estevam
2017-03-13 23:15 ` Peter Korsgaard
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.