All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-qt5][meta-raspberrypi]: QMAKE_LIBS_EGL not properly set
@ 2016-02-02 16:50 GUEYTAT Julien
  2016-02-02 17:03 ` [meta-raspberrypi][PATCH v3 1/2] qt5: fixed raspberrypi support John Madieu
  2016-02-03  6:08 ` [meta-qt5][meta-raspberrypi]: QMAKE_LIBS_EGL not properly set Khem Raj
  0 siblings, 2 replies; 13+ messages in thread
From: GUEYTAT Julien @ 2016-02-02 16:50 UTC (permalink / raw)
  To: 'yocto@yoctoproject.org'


[-- Attachment #1.1: Type: text/plain, Size: 975 bytes --]

Hi,

It seems that there are some stiff missing between meta-qt5 or meta-raspberrypi.
When we set the option gles... to qtbase we don't get the QMAKE_LIBS_EGL set properly.
We can compare a working set of variables in the qt mkspecs directory of qt.
There is one dedicated file for the RaspberryPi2. May be one also for RaspberryPi.
Anyway!
How could we set those *_EGL variables properly? And... If they are properly set, will qtbase will take them into account?

I will be happy to propose a patch but I need to get more precision first.
Thanks in advance,



Julien GUEYTAT
Ingénieur Informatique
[Logo CDS SOFT]
1027, avenue du Docteur Julien Lefebre BP27
06271 Villeneuve-Loubet Cedex
Fixe :  +33 (0) 492 024 545
Mob :  +33(0) 617 980 383
Fax :    +33(0) 492 024 546
Email : j.gueytat@cdssoft.studiel.fr<mailto:j.gueytat@cdssoft.studiel.fr>
www : www.studiel.fr<http://www.studiel.fr/>
P Pensez Environnement, imprimez seulement si nécessaire


[-- Attachment #1.2: Type: text/html, Size: 5637 bytes --]

[-- Attachment #2: image001.png --]
[-- Type: image/png, Size: 7552 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [meta-raspberrypi][PATCH v3 1/2] qt5: fixed raspberrypi support
  2016-02-02 16:50 [meta-qt5][meta-raspberrypi]: QMAKE_LIBS_EGL not properly set GUEYTAT Julien
@ 2016-02-02 17:03 ` John Madieu
  2016-02-02 17:03   ` [meta-raspberrypi][PATCH v3 2/2] layer.conf: avoid to force users to add the qt5 layer because of qtbase bbappend John Madieu
  2016-02-03  6:08 ` [meta-qt5][meta-raspberrypi]: QMAKE_LIBS_EGL not properly set Khem Raj
  1 sibling, 1 reply; 13+ messages in thread
From: John Madieu @ 2016-02-02 17:03 UTC (permalink / raw)
  To: yocto

    Because EGL properties were not defined properly, we always had the following error
        make: *** [egl] Error 1
        | EGL disabled.
        |  The EGL functionality test failed; EGL is required by some QPA plugins to manage cont
        |  You might need to modify the include and library search paths by editing QMAKE_INCDIR

    x11 in DISTRO_FEATURES also produced the following error
        error: 'QAccessible' has not been declared
        |              } else if (QStyleHelper::isInstanceOf(groupBox->styleObject,
        QAccessible::Grouping)) {
        |                                                       ^
        |Makefile:53048: recipe for target '.obj/qgtkstyle.o' failed

    This bbappend definitively fix these bug

Signed-off-by: John Madieu <j.madieu@expemb.com>
---
 qt5-layer/recipes-qt/qt5/qtbase_%.bbappend | 33 ++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 qt5-layer/recipes-qt/qt5/qtbase_%.bbappend

diff --git a/qt5-layer/recipes-qt/qt5/qtbase_%.bbappend b/qt5-layer/recipes-qt/qt5/qtbase_%.bbappend
new file mode 100644
index 0000000..f61cd1d
--- /dev/null
+++ b/qt5-layer/recipes-qt/qt5/qtbase_%.bbappend
@@ -0,0 +1,33 @@
+
+# Raspberrypi only need gles2
+PACKAGECONFIG_GL = "gles2"
+
+QT_CONFIG_FLAGS_append = "${@base_contains('DISTRO_FEATURES', 'x11', ' -accessibility ', '', d)}"
+do_configure_prepend_rpi() {
+
+	sed -i 's!load(qt_config)!!' ${S}/mkspecs/linux-oe-g++/qmake.conf
+    if ! grep -q '^EGLFS_' ${S}/mkspecs/linux-oe-g++/qmake.conf; then
+        cat >> ${S}/mkspecs/linux-oe-g++/qmake.conf <<EOF
+QMAKE_INCDIR_EGL = \$\$[QT_SYSROOT]${includedir}/interface/vcos/pthreads \$\$[QT_SYSROOT]${includedir}/interface/vmcs_host/linux
+QMAKE_INCDIR_OPENGL_ES2 = \$\${QMAKE_INCDIR_EGL}
+QMAKE_LIBS_EGL = -lEGL -lGLESv2
+EOF
+
+        if [ -d ${S}/src/plugins/platforms/eglfs/deviceintegration/eglfs_brcm ]; then
+            cat >> ${S}/mkspecs/linux-oe-g++/qmake.conf <<EOF
+EGLFS_DEVICE_INTEGRATION = eglfs_brcm
+EOF
+        else
+            cat >> ${S}/mkspecs/linux-oe-g++/qmake.conf <<EOF
+EGLFS_PLATFORM_HOOKS_LIBS = -lbcm_host
+EGLFS_PLATFORM_HOOKS_SOURCES = \$\$PWD/../devices/linux-rasp-pi-g++/qeglfshooks_pi.cpp
+EOF
+        fi
+    fi
+    cat >> ${S}/mkspecs/linux-oe-g++/qmake.conf <<EOF
+
+
+load(qt_config)
+
+EOF
+}
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [meta-raspberrypi][PATCH v3 2/2] layer.conf: avoid to force users to add the qt5 layer because of qtbase bbappend
  2016-02-02 17:03 ` [meta-raspberrypi][PATCH v3 1/2] qt5: fixed raspberrypi support John Madieu
@ 2016-02-02 17:03   ` John Madieu
  0 siblings, 0 replies; 13+ messages in thread
From: John Madieu @ 2016-02-02 17:03 UTC (permalink / raw)
  To: yocto

Signed-off-by: John Madieu <j.madieu@expemb.com>
---
 conf/layer.conf | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/conf/layer.conf b/conf/layer.conf
index bea5a65..60f1bcb 100644
--- a/conf/layer.conf
+++ b/conf/layer.conf
@@ -12,3 +12,7 @@ BBFILE_PRIORITY_raspberrypi = "9"
 # Additional license directories.
 LICENSE_PATH += "${LAYERDIR}/files/custom-licenses"
 
+# Let us add layer-specific (such as qt5-layer) bbappends which
+# are only applied when that layer is included in our configuration
+BBFILES += "${@' '.join('${LAYERDIR}/%s/recipes*/*/*.bbappend' % layer \
+               for layer in BBFILE_COLLECTIONS.split())}"
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 13+ messages in thread

* Re: [meta-qt5][meta-raspberrypi]: QMAKE_LIBS_EGL not properly set
  2016-02-02 16:50 [meta-qt5][meta-raspberrypi]: QMAKE_LIBS_EGL not properly set GUEYTAT Julien
  2016-02-02 17:03 ` [meta-raspberrypi][PATCH v3 1/2] qt5: fixed raspberrypi support John Madieu
@ 2016-02-03  6:08 ` Khem Raj
  2016-02-03  7:40   ` Yannick Kiekens
  1 sibling, 1 reply; 13+ messages in thread
From: Khem Raj @ 2016-02-03  6:08 UTC (permalink / raw)
  To: GUEYTAT Julien; +Cc: yocto


[-- Attachment #1.1: Type: text/plain, Size: 1474 bytes --]


> On Feb 2, 2016, at 8:50 AM, GUEYTAT Julien <j.gueytat@cdssoft.studiel.fr> wrote:
> 
> Hi,
> 
> It seems that there are some stiff missing between meta-qt5 or meta-raspberrypi.
> When we set the option gles… to qtbase we don’t get the QMAKE_LIBS_EGL set properly.
> We can compare a working set of variables in the qt mkspecs directory of qt.
> There is one dedicated file for the RaspberryPi2. May be one also for RaspberryPi.
> Anyway!
> How could we set those *_EGL variables properly? And… If they are properly set, will qtbase will take them into account?
> 
> I will be happy to propose a patch but I need to get more precision first.

Firstly show the DISTRO_FEATURES may be you are missing some important knobs for EGL
like openGL and gles2 etc.

> Thanks in advance,
> 
> 
> 
> Julien GUEYTAT
> Ingénieur Informatique
> <image001.png>
> 1027, avenue du Docteur Julien Lefebre BP27
> 06271 Villeneuve-Loubet Cedex
> Fixe :  +33 (0) 492 024 545
> Mob :  +33(0) 617 980 383
> Fax :    +33(0) 492 024 546
> Email : j.gueytat@cdssoft.studiel.fr <mailto:j.gueytat@cdssoft.studiel.fr>
> www : www.studiel.fr <http://www.studiel.fr/>
> P Pensez Environnement, imprimez seulement si nécessaire
> 
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org <mailto:yocto@yoctoproject.org>
> https://lists.yoctoproject.org/listinfo/yocto <https://lists.yoctoproject.org/listinfo/yocto>

[-- Attachment #1.2: Type: text/html, Size: 11187 bytes --]

[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 211 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [meta-qt5][meta-raspberrypi]: QMAKE_LIBS_EGL not properly set
  2016-02-03  6:08 ` [meta-qt5][meta-raspberrypi]: QMAKE_LIBS_EGL not properly set Khem Raj
@ 2016-02-03  7:40   ` Yannick Kiekens
  2016-02-03 11:46     ` GUEYTAT Julien
  0 siblings, 1 reply; 13+ messages in thread
From: Yannick Kiekens @ 2016-02-03  7:40 UTC (permalink / raw)
  To: Khem Raj; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 1784 bytes --]

Have a look at this git repo: https://github.com/YannickKiekens/meta-qt5-pi

I have build a qt5 eglfs with raspberry pi2 backend on master branch
yesterday evening

On Wed, Feb 3, 2016 at 7:08 AM, Khem Raj <raj.khem@gmail.com> wrote:

>
> On Feb 2, 2016, at 8:50 AM, GUEYTAT Julien <j.gueytat@cdssoft.studiel.fr>
> wrote:
>
> Hi,
>
> It seems that there are some stiff missing between meta-qt5 or
> meta-raspberrypi.
> When we set the option gles… to qtbase we don’t get the QMAKE_LIBS_EGL set
> properly.
> We can compare a working set of variables in the qt mkspecs directory of
> qt.
> There is one dedicated file for the RaspberryPi2. May be one also for
> RaspberryPi.
> Anyway!
> How could we set those *_EGL variables properly? And… If they are properly
> set, will qtbase will take them into account?
>
> I will be happy to propose a patch but I need to get more precision first.
>
>
> Firstly show the DISTRO_FEATURES may be you are missing some important
> knobs for EGL
> like openGL and gles2 etc.
>
> Thanks in advance,
>
>
>
> *Julien GUEYTAT*
> *Ingénieur Informatique*
> <image001.png>
> 1027, avenue du Docteur Julien Lefebre BP27
> 06271 Villeneuve-Loubet Cedex
> *Fixe* :  +33 (0) 492 024 545
> *Mob* :  +33(0) 617 980 383
> *Fax* :    +33(0) 492 024 546
> *Email* : j.gueytat@cdssoft.studiel.fr
> *www* : www.studiel.fr
> *P* *Pensez Environnement, imprimez seulement si nécessaire*
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
>
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
>

[-- Attachment #2: Type: text/html, Size: 9543 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [meta-qt5][meta-raspberrypi]: QMAKE_LIBS_EGL not properly set
  2016-02-03  7:40   ` Yannick Kiekens
@ 2016-02-03 11:46     ` GUEYTAT Julien
  2016-02-03 14:44       ` Khem Raj
  0 siblings, 1 reply; 13+ messages in thread
From: GUEYTAT Julien @ 2016-02-03 11:46 UTC (permalink / raw)
  To: 'Yannick Kiekens', Khem Raj; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 2611 bytes --]

Hi everyone,

I understand that you are all rewriting the qtbase rule to include at least the modification to the QMAKE_LIBS_EGL variable.
The question is:
Could we make somehow some work in meta-qt5 or meta-raspberrypi to not have to overwrite the qtbase rule.
For instance… meta-raspberrypi is providing a package config file for EGL. May be you could have meta-qt5 read this package config.

That’s the question. I’d like to know what the maintainers of those two layers think about that.

Best Regards,

De : Yannick Kiekens [mailto:yannickkiekens@gmail.com]
Envoyé : mercredi 3 février 2016 08:41
À : Khem Raj
Cc : GUEYTAT Julien; yocto@yoctoproject.org
Objet : Re: [yocto] [meta-qt5][meta-raspberrypi]: QMAKE_LIBS_EGL not properly set

Have a look at this git repo: https://github.com/YannickKiekens/meta-qt5-pi

I have build a qt5 eglfs with raspberry pi2 backend on master branch yesterday evening

On Wed, Feb 3, 2016 at 7:08 AM, Khem Raj <raj.khem@gmail.com<mailto:raj.khem@gmail.com>> wrote:

On Feb 2, 2016, at 8:50 AM, GUEYTAT Julien <j.gueytat@cdssoft.studiel.fr<mailto:j.gueytat@cdssoft.studiel.fr>> wrote:

Hi,

It seems that there are some stiff missing between meta-qt5 or meta-raspberrypi.
When we set the option gles… to qtbase we don’t get the QMAKE_LIBS_EGL set properly.
We can compare a working set of variables in the qt mkspecs directory of qt.
There is one dedicated file for the RaspberryPi2. May be one also for RaspberryPi.
Anyway!
How could we set those *_EGL variables properly? And… If they are properly set, will qtbase will take them into account?

I will be happy to propose a patch but I need to get more precision first.

Firstly show the DISTRO_FEATURES may be you are missing some important knobs for EGL
like openGL and gles2 etc.


Thanks in advance,



Julien GUEYTAT
Ingénieur Informatique
<image001.png>
1027, avenue du Docteur Julien Lefebre BP27
06271 Villeneuve-Loubet Cedex
Fixe :  +33 (0) 492 024 545
Mob :  +33(0) 617 980 383
Fax :    +33(0) 492 024 546
Email : j.gueytat@cdssoft.studiel.fr<mailto:j.gueytat@cdssoft.studiel.fr>
www : www.studiel.fr<http://www.studiel.fr/>
P Pensez Environnement, imprimez seulement si nécessaire

--
_______________________________________________
yocto mailing list
yocto@yoctoproject.org<mailto:yocto@yoctoproject.org>
https://lists.yoctoproject.org/listinfo/yocto


--
_______________________________________________
yocto mailing list
yocto@yoctoproject.org<mailto:yocto@yoctoproject.org>
https://lists.yoctoproject.org/listinfo/yocto


[-- Attachment #2: Type: text/html, Size: 14293 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [meta-qt5][meta-raspberrypi]: QMAKE_LIBS_EGL not properly set
  2016-02-03 11:46     ` GUEYTAT Julien
@ 2016-02-03 14:44       ` Khem Raj
  2016-02-03 14:54         ` GUEYTAT Julien
  0 siblings, 1 reply; 13+ messages in thread
From: Khem Raj @ 2016-02-03 14:44 UTC (permalink / raw)
  To: GUEYTAT Julien; +Cc: yocto

On Wed, Feb 3, 2016 at 3:46 AM, GUEYTAT Julien
<j.gueytat@cdssoft.studiel.fr> wrote:
> Hi everyone,
>
>
>
> I understand that you are all rewriting the qtbase rule to include at least
> the modification to the QMAKE_LIBS_EGL variable.
>
> The question is:
>
> Could we make somehow some work in meta-qt5 or meta-raspberrypi to not have
> to overwrite the qtbase rule.


I dont understand. PAKCAGECONFIGS are specifically desined for this
kind of scenario
what problems are you seeing.

>
> For instance… meta-raspberrypi is providing a package config file for EGL.
> May be you could have meta-qt5 read this package config.
>
>
>
> That’s the question. I’d like to know what the maintainers of those two
> layers think about that.
>
>
>
> Best Regards,
>
>
>
> De : Yannick Kiekens [mailto:yannickkiekens@gmail.com]
> Envoyé : mercredi 3 février 2016 08:41
> À : Khem Raj
> Cc : GUEYTAT Julien; yocto@yoctoproject.org
> Objet : Re: [yocto] [meta-qt5][meta-raspberrypi]: QMAKE_LIBS_EGL not
> properly set
>
>
>
> Have a look at this git repo: https://github.com/YannickKiekens/meta-qt5-pi
>
> I have build a qt5 eglfs with raspberry pi2 backend on master branch
> yesterday evening
>
>
>
> On Wed, Feb 3, 2016 at 7:08 AM, Khem Raj <raj.khem@gmail.com> wrote:
>
>
>
> On Feb 2, 2016, at 8:50 AM, GUEYTAT Julien <j.gueytat@cdssoft.studiel.fr>
> wrote:
>
>
>
> Hi,
>
>
>
> It seems that there are some stiff missing between meta-qt5 or
> meta-raspberrypi.
>
> When we set the option gles… to qtbase we don’t get the QMAKE_LIBS_EGL set
> properly.
>
> We can compare a working set of variables in the qt mkspecs directory of qt.
>
> There is one dedicated file for the RaspberryPi2. May be one also for
> RaspberryPi.
>
> Anyway!
>
> How could we set those *_EGL variables properly? And… If they are properly
> set, will qtbase will take them into account?
>
>
>
> I will be happy to propose a patch but I need to get more precision first.
>
>
>
> Firstly show the DISTRO_FEATURES may be you are missing some important knobs
> for EGL
>
> like openGL and gles2 etc.
>
>
>
> Thanks in advance,
>
>
>
>
>
>
>
> Julien GUEYTAT
>
> Ingénieur Informatique
>
> <image001.png>
>
> 1027, avenue du Docteur Julien Lefebre BP27
>
> 06271 Villeneuve-Loubet Cedex
>
> Fixe :  +33 (0) 492 024 545
> Mob :  +33(0) 617 980 383
> Fax :    +33(0) 492 024 546
> Email : j.gueytat@cdssoft.studiel.fr
>
> www : www.studiel.fr
>
> P Pensez Environnement, imprimez seulement si nécessaire
>
>
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
>
>
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
>


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [meta-qt5][meta-raspberrypi]: QMAKE_LIBS_EGL not properly set
  2016-02-03 14:44       ` Khem Raj
@ 2016-02-03 14:54         ` GUEYTAT Julien
  2016-02-03 15:01           ` Khem Raj
  2016-02-04  4:37           ` Khem Raj
  0 siblings, 2 replies; 13+ messages in thread
From: GUEYTAT Julien @ 2016-02-03 14:54 UTC (permalink / raw)
  To: 'Khem Raj'; +Cc: yocto

Setting properly the variable PACKAGECONFIG_GL to gles2 does NOT update properly the variable QMAKE_LIBS_EGL.
By default QMAKE_LIBS_EGL = -lEGL
And depending on hardware... it might be something like QMAKE_LIBS_EGL = -lEGL -lGLESv2 for instance.
And this specific line... "-lEGL -lGLESv2" is only know in the provider of virtual/libglesv2 ... in this case meta-raspberry.
The BSP layer could provide a package config file which will be read to set QMAKE_LIBS_EGL properly.

=> Which means we would need each package providing virtual/libglesv2 ... to provide also a package config file.

I hope it's clear now. Tell me if I missed something.

-----Message d'origine-----
De : Khem Raj [mailto:raj.khem@gmail.com] 
Envoyé : mercredi 3 février 2016 15:45
À : GUEYTAT Julien
Cc : Yannick Kiekens; yocto@yoctoproject.org
Objet : Re: [yocto] [meta-qt5][meta-raspberrypi]: QMAKE_LIBS_EGL not properly set

On Wed, Feb 3, 2016 at 3:46 AM, GUEYTAT Julien <j.gueytat@cdssoft.studiel.fr> wrote:
> Hi everyone,
>
>
>
> I understand that you are all rewriting the qtbase rule to include at 
> least the modification to the QMAKE_LIBS_EGL variable.
>
> The question is:
>
> Could we make somehow some work in meta-qt5 or meta-raspberrypi to not 
> have to overwrite the qtbase rule.


I dont understand. PAKCAGECONFIGS are specifically desined for this kind of scenario what problems are you seeing.

>
> For instance… meta-raspberrypi is providing a package config file for EGL.
> May be you could have meta-qt5 read this package config.
>
>
>
> That’s the question. I’d like to know what the maintainers of those 
> two layers think about that.
>
>
>
> Best Regards,
>
>
>
> De : Yannick Kiekens [mailto:yannickkiekens@gmail.com] Envoyé : 
> mercredi 3 février 2016 08:41 À : Khem Raj Cc : GUEYTAT Julien; 
> yocto@yoctoproject.org Objet : Re: [yocto] 
> [meta-qt5][meta-raspberrypi]: QMAKE_LIBS_EGL not properly set
>
>
>
> Have a look at this git repo: 
> https://github.com/YannickKiekens/meta-qt5-pi
>
> I have build a qt5 eglfs with raspberry pi2 backend on master branch 
> yesterday evening
>
>
>
> On Wed, Feb 3, 2016 at 7:08 AM, Khem Raj <raj.khem@gmail.com> wrote:
>
>
>
> On Feb 2, 2016, at 8:50 AM, GUEYTAT Julien 
> <j.gueytat@cdssoft.studiel.fr>
> wrote:
>
>
>
> Hi,
>
>
>
> It seems that there are some stiff missing between meta-qt5 or 
> meta-raspberrypi.
>
> When we set the option gles… to qtbase we don’t get the QMAKE_LIBS_EGL 
> set properly.
>
> We can compare a working set of variables in the qt mkspecs directory of qt.
>
> There is one dedicated file for the RaspberryPi2. May be one also for 
> RaspberryPi.
>
> Anyway!
>
> How could we set those *_EGL variables properly? And… If they are 
> properly set, will qtbase will take them into account?
>
>
>
> I will be happy to propose a patch but I need to get more precision first.
>
>
>
> Firstly show the DISTRO_FEATURES may be you are missing some important 
> knobs for EGL
>
> like openGL and gles2 etc.
>
>
>
> Thanks in advance,
>
>
>
>
>
>
>
> Julien GUEYTAT
>
> Ingénieur Informatique
>
> <image001.png>
>
> 1027, avenue du Docteur Julien Lefebre BP27
>
> 06271 Villeneuve-Loubet Cedex
>
> Fixe :  +33 (0) 492 024 545
> Mob :  +33(0) 617 980 383
> Fax :    +33(0) 492 024 546
> Email : j.gueytat@cdssoft.studiel.fr
>
> www : www.studiel.fr
>
> P Pensez Environnement, imprimez seulement si nécessaire
>
>
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
>
>
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
>

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [meta-qt5][meta-raspberrypi]: QMAKE_LIBS_EGL not properly set
  2016-02-03 14:54         ` GUEYTAT Julien
@ 2016-02-03 15:01           ` Khem Raj
  2016-02-03 15:23             ` GUEYTAT Julien
  2016-02-04  4:37           ` Khem Raj
  1 sibling, 1 reply; 13+ messages in thread
From: Khem Raj @ 2016-02-03 15:01 UTC (permalink / raw)
  To: GUEYTAT Julien; +Cc: yocto

On Wed, Feb 3, 2016 at 6:54 AM, GUEYTAT Julien
<j.gueytat@cdssoft.studiel.fr> wrote:
> Setting properly the variable PACKAGECONFIG_GL to gles2 does NOT update properly the variable QMAKE_LIBS_EGL.
> By default QMAKE_LIBS_EGL = -lEGL
> And depending on hardware... it might be something like QMAKE_LIBS_EGL = -lEGL -lGLESv2 for instance.
> And this specific line... "-lEGL -lGLESv2" is only know in the provider of virtual/libglesv2 ... in this case meta-raspberry.
> The BSP layer could provide a package config file which will be read to set QMAKE_LIBS_EGL properly.
>
> => Which means we would need each package providing virtual/libglesv2 ... to provide also a package config file.
>

packageconfig could be used if libnames are consistent. something
qtbase can be looked into.

for oe you can pass qmake variables like
QMAKE_LIBS_EGL = -lEGL -lGLESv2

using EXTRA_QMAKEVARS_PRE variable.

> I hope it's clear now. Tell me if I missed something.
>
> -----Message d'origine-----
> De : Khem Raj [mailto:raj.khem@gmail.com]
> Envoyé : mercredi 3 février 2016 15:45
> À : GUEYTAT Julien
> Cc : Yannick Kiekens; yocto@yoctoproject.org
> Objet : Re: [yocto] [meta-qt5][meta-raspberrypi]: QMAKE_LIBS_EGL not properly set
>
> On Wed, Feb 3, 2016 at 3:46 AM, GUEYTAT Julien <j.gueytat@cdssoft.studiel.fr> wrote:
>> Hi everyone,
>>
>>
>>
>> I understand that you are all rewriting the qtbase rule to include at
>> least the modification to the QMAKE_LIBS_EGL variable.
>>
>> The question is:
>>
>> Could we make somehow some work in meta-qt5 or meta-raspberrypi to not
>> have to overwrite the qtbase rule.
>
>
> I dont understand. PAKCAGECONFIGS are specifically desined for this kind of scenario what problems are you seeing.
>
>>
>> For instance… meta-raspberrypi is providing a package config file for EGL.
>> May be you could have meta-qt5 read this package config.
>>
>>
>>
>> That’s the question. I’d like to know what the maintainers of those
>> two layers think about that.
>>
>>
>>
>> Best Regards,
>>
>>
>>
>> De : Yannick Kiekens [mailto:yannickkiekens@gmail.com] Envoyé :
>> mercredi 3 février 2016 08:41 À : Khem Raj Cc : GUEYTAT Julien;
>> yocto@yoctoproject.org Objet : Re: [yocto]
>> [meta-qt5][meta-raspberrypi]: QMAKE_LIBS_EGL not properly set
>>
>>
>>
>> Have a look at this git repo:
>> https://github.com/YannickKiekens/meta-qt5-pi
>>
>> I have build a qt5 eglfs with raspberry pi2 backend on master branch
>> yesterday evening
>>
>>
>>
>> On Wed, Feb 3, 2016 at 7:08 AM, Khem Raj <raj.khem@gmail.com> wrote:
>>
>>
>>
>> On Feb 2, 2016, at 8:50 AM, GUEYTAT Julien
>> <j.gueytat@cdssoft.studiel.fr>
>> wrote:
>>
>>
>>
>> Hi,
>>
>>
>>
>> It seems that there are some stiff missing between meta-qt5 or
>> meta-raspberrypi.
>>
>> When we set the option gles… to qtbase we don’t get the QMAKE_LIBS_EGL
>> set properly.
>>
>> We can compare a working set of variables in the qt mkspecs directory of qt.
>>
>> There is one dedicated file for the RaspberryPi2. May be one also for
>> RaspberryPi.
>>
>> Anyway!
>>
>> How could we set those *_EGL variables properly? And… If they are
>> properly set, will qtbase will take them into account?
>>
>>
>>
>> I will be happy to propose a patch but I need to get more precision first.
>>
>>
>>
>> Firstly show the DISTRO_FEATURES may be you are missing some important
>> knobs for EGL
>>
>> like openGL and gles2 etc.
>>
>>
>>
>> Thanks in advance,
>>
>>
>>
>>
>>
>>
>>
>> Julien GUEYTAT
>>
>> Ingénieur Informatique
>>
>> <image001.png>
>>
>> 1027, avenue du Docteur Julien Lefebre BP27
>>
>> 06271 Villeneuve-Loubet Cedex
>>
>> Fixe :  +33 (0) 492 024 545
>> Mob :  +33(0) 617 980 383
>> Fax :    +33(0) 492 024 546
>> Email : j.gueytat@cdssoft.studiel.fr
>>
>> www : www.studiel.fr
>>
>> P Pensez Environnement, imprimez seulement si nécessaire
>>
>>
>>
>> --
>> _______________________________________________
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>>
>>
>>
>>
>> --
>> _______________________________________________
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>>
>>


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [meta-qt5][meta-raspberrypi]: QMAKE_LIBS_EGL not properly set
  2016-02-03 15:01           ` Khem Raj
@ 2016-02-03 15:23             ` GUEYTAT Julien
  0 siblings, 0 replies; 13+ messages in thread
From: GUEYTAT Julien @ 2016-02-03 15:23 UTC (permalink / raw)
  To: 'Khem Raj'; +Cc: yocto

I'm saying that meta-qt5 should directly GRAB the proper EGLFS settings from the virtual/libgles2 provider.
If qt and gles2 then grab necessary information. If information not present then use defaults like -lEGL in this case.

I guess it should be possible to get the information from a package config.

The BSP layer should not care about Qt.

-----Message d'origine-----
De : Khem Raj [mailto:raj.khem@gmail.com] 
Envoyé : mercredi 3 février 2016 16:02
À : GUEYTAT Julien
Cc : Yannick Kiekens; yocto@yoctoproject.org
Objet : Re: [yocto] [meta-qt5][meta-raspberrypi]: QMAKE_LIBS_EGL not properly set

On Wed, Feb 3, 2016 at 6:54 AM, GUEYTAT Julien <j.gueytat@cdssoft.studiel.fr> wrote:
> Setting properly the variable PACKAGECONFIG_GL to gles2 does NOT update properly the variable QMAKE_LIBS_EGL.
> By default QMAKE_LIBS_EGL = -lEGL
> And depending on hardware... it might be something like QMAKE_LIBS_EGL = -lEGL -lGLESv2 for instance.
> And this specific line... "-lEGL -lGLESv2" is only know in the provider of virtual/libglesv2 ... in this case meta-raspberry.
> The BSP layer could provide a package config file which will be read to set QMAKE_LIBS_EGL properly.
>
> => Which means we would need each package providing virtual/libglesv2 ... to provide also a package config file.
>

packageconfig could be used if libnames are consistent. something qtbase can be looked into.

for oe you can pass qmake variables like QMAKE_LIBS_EGL = -lEGL -lGLESv2

using EXTRA_QMAKEVARS_PRE variable.

> I hope it's clear now. Tell me if I missed something.
>
> -----Message d'origine-----
> De : Khem Raj [mailto:raj.khem@gmail.com] Envoyé : mercredi 3 février 
> 2016 15:45 À : GUEYTAT Julien Cc : Yannick Kiekens; 
> yocto@yoctoproject.org Objet : Re: [yocto] 
> [meta-qt5][meta-raspberrypi]: QMAKE_LIBS_EGL not properly set
>
> On Wed, Feb 3, 2016 at 3:46 AM, GUEYTAT Julien <j.gueytat@cdssoft.studiel.fr> wrote:
>> Hi everyone,
>>
>>
>>
>> I understand that you are all rewriting the qtbase rule to include at 
>> least the modification to the QMAKE_LIBS_EGL variable.
>>
>> The question is:
>>
>> Could we make somehow some work in meta-qt5 or meta-raspberrypi to 
>> not have to overwrite the qtbase rule.
>
>
> I dont understand. PAKCAGECONFIGS are specifically desined for this kind of scenario what problems are you seeing.
>
>>
>> For instance… meta-raspberrypi is providing a package config file for EGL.
>> May be you could have meta-qt5 read this package config.
>>
>>
>>
>> That’s the question. I’d like to know what the maintainers of those 
>> two layers think about that.
>>
>>
>>
>> Best Regards,
>>
>>
>>
>> De : Yannick Kiekens [mailto:yannickkiekens@gmail.com] Envoyé :
>> mercredi 3 février 2016 08:41 À : Khem Raj Cc : GUEYTAT Julien; 
>> yocto@yoctoproject.org Objet : Re: [yocto]
>> [meta-qt5][meta-raspberrypi]: QMAKE_LIBS_EGL not properly set
>>
>>
>>
>> Have a look at this git repo:
>> https://github.com/YannickKiekens/meta-qt5-pi
>>
>> I have build a qt5 eglfs with raspberry pi2 backend on master branch 
>> yesterday evening
>>
>>
>>
>> On Wed, Feb 3, 2016 at 7:08 AM, Khem Raj <raj.khem@gmail.com> wrote:
>>
>>
>>
>> On Feb 2, 2016, at 8:50 AM, GUEYTAT Julien 
>> <j.gueytat@cdssoft.studiel.fr>
>> wrote:
>>
>>
>>
>> Hi,
>>
>>
>>
>> It seems that there are some stiff missing between meta-qt5 or 
>> meta-raspberrypi.
>>
>> When we set the option gles… to qtbase we don’t get the 
>> QMAKE_LIBS_EGL set properly.
>>
>> We can compare a working set of variables in the qt mkspecs directory of qt.
>>
>> There is one dedicated file for the RaspberryPi2. May be one also for 
>> RaspberryPi.
>>
>> Anyway!
>>
>> How could we set those *_EGL variables properly? And… If they are 
>> properly set, will qtbase will take them into account?
>>
>>
>>
>> I will be happy to propose a patch but I need to get more precision first.
>>
>>
>>
>> Firstly show the DISTRO_FEATURES may be you are missing some 
>> important knobs for EGL
>>
>> like openGL and gles2 etc.
>>
>>
>>
>> Thanks in advance,
>>
>>
>>
>>
>>
>>
>>
>> Julien GUEYTAT
>>
>> Ingénieur Informatique
>>
>> <image001.png>
>>
>> 1027, avenue du Docteur Julien Lefebre BP27
>>
>> 06271 Villeneuve-Loubet Cedex
>>
>> Fixe :  +33 (0) 492 024 545
>> Mob :  +33(0) 617 980 383
>> Fax :    +33(0) 492 024 546
>> Email : j.gueytat@cdssoft.studiel.fr
>>
>> www : www.studiel.fr
>>
>> P Pensez Environnement, imprimez seulement si nécessaire
>>
>>
>>
>> --
>> _______________________________________________
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>>
>>
>>
>>
>> --
>> _______________________________________________
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>>
>>

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [meta-qt5][meta-raspberrypi]: QMAKE_LIBS_EGL not properly set
  2016-02-03 14:54         ` GUEYTAT Julien
  2016-02-03 15:01           ` Khem Raj
@ 2016-02-04  4:37           ` Khem Raj
  2016-02-04  9:23             ` GUEYTAT Julien
  1 sibling, 1 reply; 13+ messages in thread
From: Khem Raj @ 2016-02-04  4:37 UTC (permalink / raw)
  To: GUEYTAT Julien; +Cc: yocto

On Wed, Feb 3, 2016 at 6:54 AM, GUEYTAT Julien
<j.gueytat@cdssoft.studiel.fr> wrote:
> Setting properly the variable PACKAGECONFIG_GL to gles2 does NOT update properly the variable QMAKE_LIBS_EGL.
> By default QMAKE_LIBS_EGL = -lEGL
> And depending on hardware... it might be something like QMAKE_LIBS_EGL = -lEGL -lGLESv2 for instance.
> And this specific line... "-lEGL -lGLESv2" is only know in the provider of virtual/libglesv2 ... in this case meta-raspberry.
> The BSP layer could provide a package config file which will be read to set QMAKE_LIBS_EGL properly.
>
> => Which means we would need each package providing virtual/libglesv2 ... to provide also a package config file.
>
> I hope it's clear now. Tell me if I missed something.

you can try my fork of meta-raspberrypi I am carrying few patches
which fix pkgconfig stuff along with wayland support (wip)

>
> -----Message d'origine-----
> De : Khem Raj [mailto:raj.khem@gmail.com]
> Envoyé : mercredi 3 février 2016 15:45
> À : GUEYTAT Julien
> Cc : Yannick Kiekens; yocto@yoctoproject.org
> Objet : Re: [yocto] [meta-qt5][meta-raspberrypi]: QMAKE_LIBS_EGL not properly set
>
> On Wed, Feb 3, 2016 at 3:46 AM, GUEYTAT Julien <j.gueytat@cdssoft.studiel.fr> wrote:
>> Hi everyone,
>>
>>
>>
>> I understand that you are all rewriting the qtbase rule to include at
>> least the modification to the QMAKE_LIBS_EGL variable.
>>
>> The question is:
>>
>> Could we make somehow some work in meta-qt5 or meta-raspberrypi to not
>> have to overwrite the qtbase rule.
>
>
> I dont understand. PAKCAGECONFIGS are specifically desined for this kind of scenario what problems are you seeing.
>
>>
>> For instance… meta-raspberrypi is providing a package config file for EGL.
>> May be you could have meta-qt5 read this package config.
>>
>>
>>
>> That’s the question. I’d like to know what the maintainers of those
>> two layers think about that.
>>
>>
>>
>> Best Regards,
>>
>>
>>
>> De : Yannick Kiekens [mailto:yannickkiekens@gmail.com] Envoyé :
>> mercredi 3 février 2016 08:41 À : Khem Raj Cc : GUEYTAT Julien;
>> yocto@yoctoproject.org Objet : Re: [yocto]
>> [meta-qt5][meta-raspberrypi]: QMAKE_LIBS_EGL not properly set
>>
>>
>>
>> Have a look at this git repo:
>> https://github.com/YannickKiekens/meta-qt5-pi
>>
>> I have build a qt5 eglfs with raspberry pi2 backend on master branch
>> yesterday evening
>>
>>
>>
>> On Wed, Feb 3, 2016 at 7:08 AM, Khem Raj <raj.khem@gmail.com> wrote:
>>
>>
>>
>> On Feb 2, 2016, at 8:50 AM, GUEYTAT Julien
>> <j.gueytat@cdssoft.studiel.fr>
>> wrote:
>>
>>
>>
>> Hi,
>>
>>
>>
>> It seems that there are some stiff missing between meta-qt5 or
>> meta-raspberrypi.
>>
>> When we set the option gles… to qtbase we don’t get the QMAKE_LIBS_EGL
>> set properly.
>>
>> We can compare a working set of variables in the qt mkspecs directory of qt.
>>
>> There is one dedicated file for the RaspberryPi2. May be one also for
>> RaspberryPi.
>>
>> Anyway!
>>
>> How could we set those *_EGL variables properly? And… If they are
>> properly set, will qtbase will take them into account?
>>
>>
>>
>> I will be happy to propose a patch but I need to get more precision first.
>>
>>
>>
>> Firstly show the DISTRO_FEATURES may be you are missing some important
>> knobs for EGL
>>
>> like openGL and gles2 etc.
>>
>>
>>
>> Thanks in advance,
>>
>>
>>
>>
>>
>>
>>
>> Julien GUEYTAT
>>
>> Ingénieur Informatique
>>
>> <image001.png>
>>
>> 1027, avenue du Docteur Julien Lefebre BP27
>>
>> 06271 Villeneuve-Loubet Cedex
>>
>> Fixe :  +33 (0) 492 024 545
>> Mob :  +33(0) 617 980 383
>> Fax :    +33(0) 492 024 546
>> Email : j.gueytat@cdssoft.studiel.fr
>>
>> www : www.studiel.fr
>>
>> P Pensez Environnement, imprimez seulement si nécessaire
>>
>>
>>
>> --
>> _______________________________________________
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>>
>>
>>
>>
>> --
>> _______________________________________________
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>>
>>


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [meta-qt5][meta-raspberrypi]: QMAKE_LIBS_EGL not properly set
  2016-02-04  4:37           ` Khem Raj
@ 2016-02-04  9:23             ` GUEYTAT Julien
  2016-04-14  7:49               ` GUEYTAT Julien
  0 siblings, 1 reply; 13+ messages in thread
From: GUEYTAT Julien @ 2016-02-04  9:23 UTC (permalink / raw)
  To: 'Khem Raj'; +Cc: yocto

I just checked your master branch and saw the updates on the pkgconfig and cmake files generation.

Either we make meta-qt5 look for the GLESv2 package config file to update properly the QMAKE_LIBS_EGL variable.
Otherwise we check in meta-raspberrypi that the meta-qt5 is enabled to feed EXTRA_QMAKEVARS_PRE.

Let's say that both options should work.
The first option could bring some patches to Qt mainstream.
The second is quite clean and easy to try.

I'll fork your branch and try out the second option.

- Have a nice day

-----Message d'origine-----
De : Khem Raj [mailto:raj.khem@gmail.com] 
Envoyé : jeudi 4 février 2016 05:38
À : GUEYTAT Julien
Cc : Yannick Kiekens; yocto@yoctoproject.org
Objet : Re: [yocto] [meta-qt5][meta-raspberrypi]: QMAKE_LIBS_EGL not properly set

On Wed, Feb 3, 2016 at 6:54 AM, GUEYTAT Julien <j.gueytat@cdssoft.studiel.fr> wrote:
> Setting properly the variable PACKAGECONFIG_GL to gles2 does NOT update properly the variable QMAKE_LIBS_EGL.
> By default QMAKE_LIBS_EGL = -lEGL
> And depending on hardware... it might be something like QMAKE_LIBS_EGL = -lEGL -lGLESv2 for instance.
> And this specific line... "-lEGL -lGLESv2" is only know in the provider of virtual/libglesv2 ... in this case meta-raspberry.
> The BSP layer could provide a package config file which will be read to set QMAKE_LIBS_EGL properly.
>
> => Which means we would need each package providing virtual/libglesv2 ... to provide also a package config file.
>
> I hope it's clear now. Tell me if I missed something.

you can try my fork of meta-raspberrypi I am carrying few patches which fix pkgconfig stuff along with wayland support (wip)

>
> -----Message d'origine-----
> De : Khem Raj [mailto:raj.khem@gmail.com] Envoyé : mercredi 3 février 
> 2016 15:45 À : GUEYTAT Julien Cc : Yannick Kiekens; 
> yocto@yoctoproject.org Objet : Re: [yocto] 
> [meta-qt5][meta-raspberrypi]: QMAKE_LIBS_EGL not properly set
>
> On Wed, Feb 3, 2016 at 3:46 AM, GUEYTAT Julien <j.gueytat@cdssoft.studiel.fr> wrote:
>> Hi everyone,
>>
>>
>>
>> I understand that you are all rewriting the qtbase rule to include at 
>> least the modification to the QMAKE_LIBS_EGL variable.
>>
>> The question is:
>>
>> Could we make somehow some work in meta-qt5 or meta-raspberrypi to 
>> not have to overwrite the qtbase rule.
>
>
> I dont understand. PAKCAGECONFIGS are specifically desined for this kind of scenario what problems are you seeing.
>
>>
>> For instance… meta-raspberrypi is providing a package config file for EGL.
>> May be you could have meta-qt5 read this package config.
>>
>>
>>
>> That’s the question. I’d like to know what the maintainers of those 
>> two layers think about that.
>>
>>
>>
>> Best Regards,
>>
>>
>>
>> De : Yannick Kiekens [mailto:yannickkiekens@gmail.com] Envoyé :
>> mercredi 3 février 2016 08:41 À : Khem Raj Cc : GUEYTAT Julien; 
>> yocto@yoctoproject.org Objet : Re: [yocto]
>> [meta-qt5][meta-raspberrypi]: QMAKE_LIBS_EGL not properly set
>>
>>
>>
>> Have a look at this git repo:
>> https://github.com/YannickKiekens/meta-qt5-pi
>>
>> I have build a qt5 eglfs with raspberry pi2 backend on master branch 
>> yesterday evening
>>
>>
>>
>> On Wed, Feb 3, 2016 at 7:08 AM, Khem Raj <raj.khem@gmail.com> wrote:
>>
>>
>>
>> On Feb 2, 2016, at 8:50 AM, GUEYTAT Julien 
>> <j.gueytat@cdssoft.studiel.fr>
>> wrote:
>>
>>
>>
>> Hi,
>>
>>
>>
>> It seems that there are some stiff missing between meta-qt5 or 
>> meta-raspberrypi.
>>
>> When we set the option gles… to qtbase we don’t get the 
>> QMAKE_LIBS_EGL set properly.
>>
>> We can compare a working set of variables in the qt mkspecs directory of qt.
>>
>> There is one dedicated file for the RaspberryPi2. May be one also for 
>> RaspberryPi.
>>
>> Anyway!
>>
>> How could we set those *_EGL variables properly? And… If they are 
>> properly set, will qtbase will take them into account?
>>
>>
>>
>> I will be happy to propose a patch but I need to get more precision first.
>>
>>
>>
>> Firstly show the DISTRO_FEATURES may be you are missing some 
>> important knobs for EGL
>>
>> like openGL and gles2 etc.
>>
>>
>>
>> Thanks in advance,
>>
>>
>>
>>
>>
>>
>>
>> Julien GUEYTAT
>>
>> Ingénieur Informatique
>>
>> <image001.png>
>>
>> 1027, avenue du Docteur Julien Lefebre BP27
>>
>> 06271 Villeneuve-Loubet Cedex
>>
>> Fixe :  +33 (0) 492 024 545
>> Mob :  +33(0) 617 980 383
>> Fax :    +33(0) 492 024 546
>> Email : j.gueytat@cdssoft.studiel.fr
>>
>> www : www.studiel.fr
>>
>> P Pensez Environnement, imprimez seulement si nécessaire
>>
>>
>>
>> --
>> _______________________________________________
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>>
>>
>>
>>
>> --
>> _______________________________________________
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>>
>>

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [meta-qt5][meta-raspberrypi]: QMAKE_LIBS_EGL not properly set
  2016-02-04  9:23             ` GUEYTAT Julien
@ 2016-04-14  7:49               ` GUEYTAT Julien
  0 siblings, 0 replies; 13+ messages in thread
From: GUEYTAT Julien @ 2016-04-14  7:49 UTC (permalink / raw)
  To: GUEYTAT Julien, 'Khem Raj'; +Cc: yocto

Just to keep you informed that the compilation of Qt on top of the meta-raspberry stills need some work to pass with GLESv2 activated.
The EXTRA_QMAKEVARS_PRE variable can improve the situation... "QMAKE_LIBS_EGL = -lEGL -lGLESv2" get used during the compilation but NOT during the configuration. Which means that the configuration does not work and the bitbake qtbase fails.
I tried out the master branch of meta-raspberrypi with the pkgconfig updates on the userland.
And... It does not improve the configuration step.

I guess it is not so far because Qt is looking for those pkgconfig files which just means that they are not present yet during the configuration step.
So the question is:
How can you have those pkgconfig files get used during the Qt configuration step?

Best Regards,

-----Message d'origine-----
De : yocto-bounces@yoctoproject.org [mailto:yocto-bounces@yoctoproject.org] De la part de GUEYTAT Julien
Envoyé : jeudi 4 février 2016 10:24
À : 'Khem Raj'
Cc : yocto@yoctoproject.org
Objet : Re: [yocto] [meta-qt5][meta-raspberrypi]: QMAKE_LIBS_EGL not properly set

I just checked your master branch and saw the updates on the pkgconfig and cmake files generation.

Either we make meta-qt5 look for the GLESv2 package config file to update properly the QMAKE_LIBS_EGL variable.
Otherwise we check in meta-raspberrypi that the meta-qt5 is enabled to feed EXTRA_QMAKEVARS_PRE.

Let's say that both options should work.
The first option could bring some patches to Qt mainstream.
The second is quite clean and easy to try.

I'll fork your branch and try out the second option.

- Have a nice day

-----Message d'origine-----
De : Khem Raj [mailto:raj.khem@gmail.com] Envoyé : jeudi 4 février 2016 05:38 À : GUEYTAT Julien Cc : Yannick Kiekens; yocto@yoctoproject.org Objet : Re: [yocto] [meta-qt5][meta-raspberrypi]: QMAKE_LIBS_EGL not properly set

On Wed, Feb 3, 2016 at 6:54 AM, GUEYTAT Julien <j.gueytat@cdssoft.studiel.fr> wrote:
> Setting properly the variable PACKAGECONFIG_GL to gles2 does NOT update properly the variable QMAKE_LIBS_EGL.
> By default QMAKE_LIBS_EGL = -lEGL
> And depending on hardware... it might be something like QMAKE_LIBS_EGL = -lEGL -lGLESv2 for instance.
> And this specific line... "-lEGL -lGLESv2" is only know in the provider of virtual/libglesv2 ... in this case meta-raspberry.
> The BSP layer could provide a package config file which will be read to set QMAKE_LIBS_EGL properly.
>
> => Which means we would need each package providing virtual/libglesv2 ... to provide also a package config file.
>
> I hope it's clear now. Tell me if I missed something.

you can try my fork of meta-raspberrypi I am carrying few patches which fix pkgconfig stuff along with wayland support (wip)

>
> -----Message d'origine-----
> De : Khem Raj [mailto:raj.khem@gmail.com] Envoyé : mercredi 3 février
> 2016 15:45 À : GUEYTAT Julien Cc : Yannick Kiekens; 
> yocto@yoctoproject.org Objet : Re: [yocto]
> [meta-qt5][meta-raspberrypi]: QMAKE_LIBS_EGL not properly set
>
> On Wed, Feb 3, 2016 at 3:46 AM, GUEYTAT Julien <j.gueytat@cdssoft.studiel.fr> wrote:
>> Hi everyone,
>>
>>
>>
>> I understand that you are all rewriting the qtbase rule to include at 
>> least the modification to the QMAKE_LIBS_EGL variable.
>>
>> The question is:
>>
>> Could we make somehow some work in meta-qt5 or meta-raspberrypi to 
>> not have to overwrite the qtbase rule.
>
>
> I dont understand. PAKCAGECONFIGS are specifically desined for this kind of scenario what problems are you seeing.
>
>>
>> For instance… meta-raspberrypi is providing a package config file for EGL.
>> May be you could have meta-qt5 read this package config.
>>
>>
>>
>> That’s the question. I’d like to know what the maintainers of those 
>> two layers think about that.
>>
>>
>>
>> Best Regards,
>>
>>
>>
>> De : Yannick Kiekens [mailto:yannickkiekens@gmail.com] Envoyé :
>> mercredi 3 février 2016 08:41 À : Khem Raj Cc : GUEYTAT Julien; 
>> yocto@yoctoproject.org Objet : Re: [yocto]
>> [meta-qt5][meta-raspberrypi]: QMAKE_LIBS_EGL not properly set
>>
>>
>>
>> Have a look at this git repo:
>> https://github.com/YannickKiekens/meta-qt5-pi
>>
>> I have build a qt5 eglfs with raspberry pi2 backend on master branch 
>> yesterday evening
>>
>>
>>
>> On Wed, Feb 3, 2016 at 7:08 AM, Khem Raj <raj.khem@gmail.com> wrote:
>>
>>
>>
>> On Feb 2, 2016, at 8:50 AM, GUEYTAT Julien 
>> <j.gueytat@cdssoft.studiel.fr>
>> wrote:
>>
>>
>>
>> Hi,
>>
>>
>>
>> It seems that there are some stiff missing between meta-qt5 or 
>> meta-raspberrypi.
>>
>> When we set the option gles… to qtbase we don’t get the 
>> QMAKE_LIBS_EGL set properly.
>>
>> We can compare a working set of variables in the qt mkspecs directory of qt.
>>
>> There is one dedicated file for the RaspberryPi2. May be one also for 
>> RaspberryPi.
>>
>> Anyway!
>>
>> How could we set those *_EGL variables properly? And… If they are 
>> properly set, will qtbase will take them into account?
>>
>>
>>
>> I will be happy to propose a patch but I need to get more precision first.
>>
>>
>>
>> Firstly show the DISTRO_FEATURES may be you are missing some 
>> important knobs for EGL
>>
>> like openGL and gles2 etc.
>>
>>
>>
>> Thanks in advance,
>>
>>
>>
>>
>>
>>
>>
>> Julien GUEYTAT
>>
>> Ingénieur Informatique
>>
>> <image001.png>
>>
>> 1027, avenue du Docteur Julien Lefebre BP27
>>
>> 06271 Villeneuve-Loubet Cedex
>>
>> Fixe :  +33 (0) 492 024 545
>> Mob :  +33(0) 617 980 383
>> Fax :    +33(0) 492 024 546
>> Email : j.gueytat@cdssoft.studiel.fr
>>
>> www : www.studiel.fr
>>
>> P Pensez Environnement, imprimez seulement si nécessaire
>>
>>
>>
>> --
>> _______________________________________________
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>>
>>
>>
>>
>> --
>> _______________________________________________
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>>
>>
--
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2016-04-14  7:49 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-02 16:50 [meta-qt5][meta-raspberrypi]: QMAKE_LIBS_EGL not properly set GUEYTAT Julien
2016-02-02 17:03 ` [meta-raspberrypi][PATCH v3 1/2] qt5: fixed raspberrypi support John Madieu
2016-02-02 17:03   ` [meta-raspberrypi][PATCH v3 2/2] layer.conf: avoid to force users to add the qt5 layer because of qtbase bbappend John Madieu
2016-02-03  6:08 ` [meta-qt5][meta-raspberrypi]: QMAKE_LIBS_EGL not properly set Khem Raj
2016-02-03  7:40   ` Yannick Kiekens
2016-02-03 11:46     ` GUEYTAT Julien
2016-02-03 14:44       ` Khem Raj
2016-02-03 14:54         ` GUEYTAT Julien
2016-02-03 15:01           ` Khem Raj
2016-02-03 15:23             ` GUEYTAT Julien
2016-02-04  4:37           ` Khem Raj
2016-02-04  9:23             ` GUEYTAT Julien
2016-04-14  7:49               ` GUEYTAT Julien

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.