Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id B7521C04A95 for ; Wed, 28 Sep 2022 15:09:29 +0000 (UTC) Received: from mail.koansoftware.com (mail.koansoftware.com [172.104.12.216]) by mx.groups.io with SMTP id smtpd.web10.9128.1664377761888547814 for ; Wed, 28 Sep 2022 08:09:22 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: koansoftware.com, ip: 172.104.12.216, mailfrom: m.salvini@koansoftware.com) Received: from localhost (localhost [127.0.0.1]) by mail.koansoftware.com (Postfix) with ESMTP id 245FE3E426; Wed, 28 Sep 2022 17:09:21 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail Received: from mail.koansoftware.com ([127.0.0.1]) by localhost (mail.koansoftware.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OeZ0q1RXGSzD; Wed, 28 Sep 2022 17:09:19 +0200 (CEST) Message-ID: <276b9c6d-9ec1-f87e-34e2-433c8171412e@koansoftware.com> Date: Wed, 28 Sep 2022 17:09:16 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [meta-freescale] [PATCH] qt4-imx-support: fix build for imxgpu2d SOCs Content-Language: it-IT To: Otavio Salvador Cc: meta-freescale@lists.yoctoproject.org References: <20220928141047.31598-1-m.salvini@koansoftware.com> From: Mauro Salvini In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 28 Sep 2022 15:09:29 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-freescale/message/24862 On 28/09/22 16:34, Otavio Salvador wrote: > Hello Mauro, >=20 > Please open a PR in GitHub for it. Thanks for fixing it :-) >=20 Hi Otavio, oh sorry. I just opened a PR on GitHub. Thanks --=20 Mauro > Em qua., 28 de set. de 2022 =C3=A0s 11:11, Mauro > escreveu: >=20 > Before this change, when imxgpu2d is selected, the qt4 do_configure > fails with the following error: >=20 > | EGL (EGL/egl.h) auto-detection... () > | compiling egl.cpp > ... > | > /home/wrk/yocto/build-qt4/tmp/work/imx8mmevk-fslc-linux/qt4-embedde= d/4.8.7-r0/recipe-sysroot/usr/include/EGL/eglplatform.h:150:10: > fatal error: X11/Xlib.h: No such file or directory > |=C2=A0 =C2=A0150 | #include > |=C2=A0 =C2=A0 =C2=A0 =C2=A0|=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^~~= ~~~~~~~~~ > | compilation terminated. > | Makefile:178: recipe for target 'egl.o' failed > | make: *** [egl.o] Error 1 > | EGL (EGL/egl.h) disabled. > | EGL (GLES/egl.h) auto-detection... () > ... > | > /home/wrk/yocto/build-qt4/tmp/work/imx8mmevk-fslc-linux/qt4-embedde= d/4.8.7-r0/recipe-sysroot/usr/include/EGL/eglplatform.h:150:10: > fatal error: X11/Xlib.h: No such file or directory > |=C2=A0 =C2=A0150 | #include > |=C2=A0 =C2=A0 =C2=A0 =C2=A0|=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^~~= ~~~~~~~~~ > | compilation terminated. > | Makefile:178: recipe for target 'egl4gles1.o' failed > | make: *** [egl4gles1.o] Error 1 > | EGL (GLES/egl.h) disabled. > | The EGL functionality test failed! >=20 > This is because the -DLINUX=3D1 and -DEGL_API_FB=3D1 flags added to > QT_CONFIG_FLAGS > are not pushed down during these configuration tests. >=20 > This commit adds these two flags directly to the related .pro files > in Qt4 sources. >=20 > Since it's been a long time that meta-qt4 is not updated anymore, > the patch can be backported to LTS releases. >=20 > Signed-off-by: Mauro Salvini > > --- > =C2=A0.../qt4-layer/recipes-qt4/qt4/qt4-imx-support.inc=C2=A0 =C2=A0= =C2=A0 =C2=A0 | 2 ++ > =C2=A0.../qt4/egl-pro-add-defines-to-compile-with-viv-fb.patch | 9= +++++++++ > =C2=A0...gl4gles1-pro-add-defines-to-compile-with-viv-fb.patch | 9= +++++++++ > =C2=A03 files changed, 20 insertions(+) > =C2=A0create mode 100644 > dynamic-layers/qt4-layer/recipes-qt4/qt4/qt4/egl-pro-add-defines-to= -compile-with-viv-fb.patch > =C2=A0create mode 100644 > dynamic-layers/qt4-layer/recipes-qt4/qt4/qt4/egl4gles1-pro-add-defi= nes-to-compile-with-viv-fb.patch >=20 > diff --git > a/dynamic-layers/qt4-layer/recipes-qt4/qt4/qt4-imx-support.inc > b/dynamic-layers/qt4-layer/recipes-qt4/qt4/qt4-imx-support.inc > index 03e09e57..ac009a3a 100644 > --- a/dynamic-layers/qt4-layer/recipes-qt4/qt4/qt4-imx-support.inc > +++ b/dynamic-layers/qt4-layer/recipes-qt4/qt4/qt4-imx-support.inc > @@ -12,6 +12,8 @@ SRC_URI:append:imxgpu2d +=3D " \ > =C2=A0 =C2=A0 =C2=A0 =C2=A0 file://0001-Add-support-for-i.MX-codec= s-to-phonon.patch \ > =20 > file://0002-i.MX-video-renderer-Allow-v4l-device-from-environmen.pa= tch \ > =C2=A0 =C2=A0 =C2=A0 =C2=A0 file://0003-i.MX6-force-egl-visual-ID-= 33.patch \ > +=C2=A0 =C2=A0 =C2=A0 =C2=A0file://egl-pro-add-defines-to-compile-w= ith-viv-fb.patch \ > +=C2=A0 =C2=A0 =C2=A0 =C2=A0file://egl4gles1-pro-add-defines-to-com= pile-with-viv-fb.patch \ > =C2=A0" >=20 > =C2=A0DEPENDS:append:imxgpu2d =3D " virtual/kernel virtual/libgles= 2" > diff --git > a/dynamic-layers/qt4-layer/recipes-qt4/qt4/qt4/egl-pro-add-defines-= to-compile-with-viv-fb.patch > b/dynamic-layers/qt4-layer/recipes-qt4/qt4/qt4/egl-pro-add-defines-= to-compile-with-viv-fb.patch > new file mode 100644 > index 00000000..e512fd47 > --- /dev/null > +++ > b/dynamic-layers/qt4-layer/recipes-qt4/qt4/qt4/egl-pro-add-defines-= to-compile-with-viv-fb.patch > @@ -0,0 +1,9 @@ > +--- a/config.tests/unix/egl/egl.pro =C2=A0 =C2=A0 = 2015-05-07 > 16:14:42.000000000 +0200 > ++++ b/config.tests/unix/egl/egl.pro =C2=A0 =C2=A0 = 2022-09-28 > 15:36:53.819893439 +0200 > +@@ -6,5 +6,6 @@ for(p, QMAKE_LIBDIR_EGL) { > + > + !isEmpty(QMAKE_INCDIR_EGL): INCLUDEPATH +=3D $$QMAKE_INCDIR_EGL > + !isEmpty(QMAKE_LIBS_EGL): LIBS +=3D $$QMAKE_LIBS_EGL > ++DEFINES +=3D LINUX=3D1 EGL_API_FB=3D1 > + > + CONFIG -=3D qt > diff --git > a/dynamic-layers/qt4-layer/recipes-qt4/qt4/qt4/egl4gles1-pro-add-de= fines-to-compile-with-viv-fb.patch > b/dynamic-layers/qt4-layer/recipes-qt4/qt4/qt4/egl4gles1-pro-add-de= fines-to-compile-with-viv-fb.patch > new file mode 100644 > index 00000000..61b40eb7 > --- /dev/null > +++ > b/dynamic-layers/qt4-layer/recipes-qt4/qt4/qt4/egl4gles1-pro-add-de= fines-to-compile-with-viv-fb.patch > @@ -0,0 +1,9 @@ > +--- a/config.tests/unix/egl4gles1/egl4gles1.pro > =C2=A0 =C2=A0 =C2=A0 =C2=A0 2015-05-07 16:14:= 42.000000000 +0200 > ++++ b/config.tests/unix/egl4gles1/egl4gles1.pro > =C2=A0 =C2=A0 =C2=A0 =C2=A0 2022-09-28 15:36:= 53.827893490 +0200 > +@@ -6,5 +6,6 @@ for(p, QMAKE_LIBDIR_EGL) { > + > + !isEmpty(QMAKE_INCDIR_EGL): INCLUDEPATH +=3D $$QMAKE_INCDIR_EGL > + !isEmpty(QMAKE_LIBS_EGL): LIBS +=3D $$QMAKE_LIBS_EGL > ++DEFINES +=3D LINUX=3D1 EGL_API_FB=3D1 > + > + CONFIG -=3D qt > --=20 > 2.17.1 >=20 >=20 >=20 >=20 >=20 >=20 > --=20 > Otavio Salvador =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 O.S. Systems > http://www.ossystems.com.br =20 > http://code.ossystems.com.br > Mobile: +55 (53) 9 9981-7854 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Mobile: = +1 (347) 903-9750 >=20 >=20 > -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- > Links: You receive all messages sent to this group. > View/Reply Online (#24861): https://lists.yoctoproject.org/g/meta-frees= cale/message/24861 > Mute This Topic: https://lists.yoctoproject.org/mt/93973325/3618382 > Group Owner: meta-freescale+owner@lists.yoctoproject.org > Unsubscribe: https://lists.yoctoproject.org/g/meta-freescale/unsub [m.s= alvini@koansoftware.com] > -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- >=20