: QMAKE_LIBS_EGL not properly set
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 : [email protected]<mailto:[email protected]> www : www.studiel.fr<http://www.studiel.fr/>
P Pensez Environnement, imprimez seulement si nécessaire
PATCH v3 1/2 qt5: fixed raspberrypi support
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
--- qt5-layer/recipes-qt/qt5/qtbase_%.bbappend | 33 ++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 qt5-layer/recipes-qt/qt5/qtbase_%.bbappend
qt5-layer/recipes-qt/qt5/qtbase_%.bbappend new file +33 -0
@@ -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 +}
Signature · 1 line
1.9.1
PATCH v3 2/2 layer.conf: avoid to force users to add the qt5 layer because of qtbase bbappend
--- conf/layer.conf | 4 ++++ 1 file changed, 4 insertions(+)
conf/layer.conf +4 -0
@@ -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())}"
Signature · 1 line
1.9.1
Quoted 13 lines · GUEYTAT Julien
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 theQMAKE_LIBS_EGLset 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*_EGLvariables 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.
Quoted 21 lines
Thanks in advance,
Julien GUEYTAT
Ingénieur Informatique
<image001.png>
1027, avenue du Docteur Julien Lefebre BP27
06271 Villeneuve-Loubet CedexFixe : +33 (0) 492 024 545 Mob : +33(0) 617 980 383 Fax : +33(0) 492 024 546 Email : [email protected] <mailto:[email protected]> www : www.studiel.fr <http://www.studiel.fr/>P Pensez Environnement, imprimez seulement si nécessaire
--
_______________________________________________
yocto mailing list
[email protected] <mailto:[email protected]>
https://lists.yoctoproject.org/listinfo/yocto <https://lists.yoctoproject.org/listinfo/yocto>
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
Quoted 56 lines · Khem Raj
On Feb 2, 2016, at 8:50 AM, GUEYTAT Julien <[email protected]> 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 theQMAKE_LIBS_EGLset 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*_EGLvariables 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_FEATURESmay 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* : [email protected]
*www* : www.studiel.fr
*P* *Pensez Environnement, imprimez seulement si nécessaire*--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto
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:[email protected]]
Envoyé : mercredi 3 février 2016 08:41
À : Khem Raj
Cc : GUEYTAT Julien; [email protected]
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 <[email protected]<mailto:[email protected]>> wrote:
On Feb 2, 2016, at 8:50 AM, GUEYTAT Julien <[email protected]<mailto:[email protected]>> 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 : [email protected]<mailto:[email protected]> www : www.studiel.fr<http://www.studiel.fr/>
P Pensez Environnement, imprimez seulement si nécessaire
--
_______________________________________________
yocto mailing list [email protected]<mailto:[email protected]>
https://lists.yoctoproject.org/listinfo/yocto
--
_______________________________________________
yocto mailing list [email protected]<mailto:[email protected]>
https://lists.yoctoproject.org/listinfo/yocto
Quoted 11 lines · GUEYTAT Julien
Hi everyone,
I understand that you are all rewriting the qtbase rule to include at least the modification to the
QMAKE_LIBS_EGLvariable.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.
Quoted 118 lines
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:[email protected]] Envoyé : mercredi 3 février 2016 08:41
À : Khem Raj
Cc : GUEYTAT Julien; [email protected]
Objet : Re: [yocto] [meta-qt5][meta-raspberrypi]:QMAKE_LIBS_EGLnot properly setHave 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 <[email protected]> wrote:
On Feb 2, 2016, at 8:50 AM, GUEYTAT Julien <[email protected]> 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_EGLset 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
*_EGLvariables 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_FEATURESmay be you are missing some important knobs for EGLlike 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 : [email protected]www : www.studiel.fr
P Pensez Environnement, imprimez seulement si nécessaire
--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/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:[email protected]]
Envoyé : mercredi 3 février 2016 15:45
À : GUEYTAT Julien
Cc : Yannick Kiekens; [email protected]
Objet : Re: [yocto] [meta-qt5][meta-raspberrypi]: QMAKE_LIBS_EGL not properly set
Quoted 11 lines · GUEYTAT Julien
Hi everyone,
I understand that you are all rewriting the qtbase rule to include at least the modification to the
QMAKE_LIBS_EGLvariable.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.
Quoted 118 lines
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:[email protected]] Envoyé :
mercredi 3 février 2016 08:41 À : Khem Raj Cc : GUEYTAT Julien; [email protected] Objet : Re: [yocto] [meta-qt5][meta-raspberrypi]:QMAKE_LIBS_EGLnot properly setHave a look at this git repo:
https://github.com/YannickKiekens/meta-qt5-piI 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 <[email protected]> wrote:
On Feb 2, 2016, at 8:50 AM, GUEYTAT Julien
<[email protected]>
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_EGLset 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
*_EGLvariables 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_FEATURESmay be you are missing some important knobs for EGLlike 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 : [email protected]www : www.studiel.fr
P Pensez Environnement, imprimez seulement si nécessaire
--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto
Quoted 8 lines · GUEYTAT Julien
Setting properly the variable
PACKAGECONFIG_GLto gles2 does NOT update properly the variableQMAKE_LIBS_EGL. By defaultQMAKE_LIBS_EGL= -lEGL
And depending on hardware... it might be something likeQMAKE_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 setQMAKE_LIBS_EGLproperly.=> 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 likeQMAKE_LIBS_EGL = -lEGL -lGLESv2
using EXTRA_QMAKEVARS_PRE variable.
Quoted 143 lines
I hope it's clear now. Tell me if I missed something.
-----Message d'origine-----
De : Khem Raj [mailto:[email protected]]
Envoyé : mercredi 3 février 2016 15:45
À : GUEYTAT Julien
Cc : Yannick Kiekens; [email protected]
Objet : Re: [yocto] [meta-qt5][meta-raspberrypi]:QMAKE_LIBS_EGLnot properly setQuoted 11 lines · GUEYTAT Julien
Hi everyone,
I understand that you are all rewriting the qtbase rule to include at least the modification to the
QMAKE_LIBS_EGLvariable.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.
Quoted 118 lines
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:[email protected]] Envoyé :
mercredi 3 février 2016 08:41 À : Khem Raj Cc : GUEYTAT Julien; [email protected] Objet : Re: [yocto] [meta-qt5][meta-raspberrypi]:QMAKE_LIBS_EGLnot properly setHave a look at this git repo:
https://github.com/YannickKiekens/meta-qt5-piI 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 <[email protected]> wrote:
On Feb 2, 2016, at 8:50 AM, GUEYTAT Julien
<[email protected]>
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_EGLset 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
*_EGLvariables 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_FEATURESmay be you are missing some important knobs for EGLlike 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 : [email protected]www : www.studiel.fr
P Pensez Environnement, imprimez seulement si nécessaire
--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/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:[email protected]]
Envoyé : mercredi 3 février 2016 16:02
À : GUEYTAT Julien
Cc : Yannick Kiekens; [email protected]
Objet : Re: [yocto] [meta-qt5][meta-raspberrypi]: QMAKE_LIBS_EGL not properly set
Quoted 8 lines · GUEYTAT Julien
Setting properly the variable
PACKAGECONFIG_GLto gles2 does NOT update properly the variableQMAKE_LIBS_EGL. By defaultQMAKE_LIBS_EGL= -lEGL
And depending on hardware... it might be something likeQMAKE_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 setQMAKE_LIBS_EGLproperly.=> 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.
Quoted 142 lines
I hope it's clear now. Tell me if I missed something.
-----Message d'origine-----
De : Khem Raj [mailto:[email protected]] Envoyé : mercredi 3 février 2016 15:45 À : GUEYTAT Julien Cc : Yannick Kiekens; [email protected] Objet : Re: [yocto] [meta-qt5][meta-raspberrypi]:QMAKE_LIBS_EGLnot properly setQuoted 11 lines · GUEYTAT Julien
Hi everyone,
I understand that you are all rewriting the qtbase rule to include at least the modification to the
QMAKE_LIBS_EGLvariable.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.
Quoted 118 lines
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:[email protected]] Envoyé :
mercredi 3 février 2016 08:41 À : Khem Raj Cc : GUEYTAT Julien; [email protected] Objet : Re: [yocto] [meta-qt5][meta-raspberrypi]:QMAKE_LIBS_EGLnot properly setHave a look at this git repo:
https://github.com/YannickKiekens/meta-qt5-piI 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 <[email protected]> wrote:
On Feb 2, 2016, at 8:50 AM, GUEYTAT Julien
<[email protected]>
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_EGLset 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
*_EGLvariables 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_FEATURESmay be you are missing some important knobs for EGLlike 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 : [email protected]www : www.studiel.fr
P Pensez Environnement, imprimez seulement si nécessaire
--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto
Quoted 9 lines · GUEYTAT Julien
Setting properly the variable
PACKAGECONFIG_GLto gles2 does NOT update properly the variableQMAKE_LIBS_EGL. By defaultQMAKE_LIBS_EGL= -lEGL
And depending on hardware... it might be something likeQMAKE_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 setQMAKE_LIBS_EGLproperly.=> 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)
Quoted 142 lines
-----Message d'origine-----
De : Khem Raj [mailto:[email protected]]
Envoyé : mercredi 3 février 2016 15:45
À : GUEYTAT Julien
Cc : Yannick Kiekens; [email protected]
Objet : Re: [yocto] [meta-qt5][meta-raspberrypi]:QMAKE_LIBS_EGLnot properly setQuoted 11 lines · GUEYTAT Julien
Hi everyone,
I understand that you are all rewriting the qtbase rule to include at least the modification to the
QMAKE_LIBS_EGLvariable.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.
Quoted 118 lines
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:[email protected]] Envoyé :
mercredi 3 février 2016 08:41 À : Khem Raj Cc : GUEYTAT Julien; [email protected] Objet : Re: [yocto] [meta-qt5][meta-raspberrypi]:QMAKE_LIBS_EGLnot properly setHave a look at this git repo:
https://github.com/YannickKiekens/meta-qt5-piI 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 <[email protected]> wrote:
On Feb 2, 2016, at 8:50 AM, GUEYTAT Julien
<[email protected]>
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_EGLset 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
*_EGLvariables 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_FEATURESmay be you are missing some important knobs for EGLlike 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 : [email protected]www : www.studiel.fr
P Pensez Environnement, imprimez seulement si nécessaire
--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/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:[email protected]]
Envoyé : jeudi 4 février 2016 05:38
À : GUEYTAT Julien
Cc : Yannick Kiekens; [email protected]
Objet : Re: [yocto] [meta-qt5][meta-raspberrypi]: QMAKE_LIBS_EGL not properly set
Quoted 9 lines · GUEYTAT Julien
Setting properly the variable
PACKAGECONFIG_GLto gles2 does NOT update properly the variableQMAKE_LIBS_EGL. By defaultQMAKE_LIBS_EGL= -lEGL
And depending on hardware... it might be something likeQMAKE_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 setQMAKE_LIBS_EGLproperly.=> 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)
Quoted 141 lines
-----Message d'origine-----
De : Khem Raj [mailto:[email protected]] Envoyé : mercredi 3 février 2016 15:45 À : GUEYTAT Julien Cc : Yannick Kiekens; [email protected] Objet : Re: [yocto] [meta-qt5][meta-raspberrypi]:QMAKE_LIBS_EGLnot properly setQuoted 11 lines · GUEYTAT Julien
Hi everyone,
I understand that you are all rewriting the qtbase rule to include at least the modification to the
QMAKE_LIBS_EGLvariable.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.
Quoted 118 lines
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:[email protected]] Envoyé :
mercredi 3 février 2016 08:41 À : Khem Raj Cc : GUEYTAT Julien; [email protected] Objet : Re: [yocto] [meta-qt5][meta-raspberrypi]:QMAKE_LIBS_EGLnot properly setHave a look at this git repo:
https://github.com/YannickKiekens/meta-qt5-piI 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 <[email protected]> wrote:
On Feb 2, 2016, at 8:50 AM, GUEYTAT Julien
<[email protected]>
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_EGLset 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
*_EGLvariables 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_FEATURESmay be you are missing some important knobs for EGLlike 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 : [email protected]www : www.studiel.fr
P Pensez Environnement, imprimez seulement si nécessaire
--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/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 : [email protected] [mailto:[email protected]] De la part de GUEYTAT Julien Envoyé : jeudi 4 février 2016 10:24
À : 'Khem Raj'
Cc : [email protected]
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:[email protected]] Envoyé : jeudi 4 février 2016 05:38 À : GUEYTAT Julien Cc : Yannick Kiekens; [email protected] Objet : Re: [yocto] [meta-qt5][meta-raspberrypi]: QMAKE_LIBS_EGL not properly set
Quoted 9 lines · GUEYTAT Julien
Setting properly the variable
PACKAGECONFIG_GLto gles2 does NOT update properly the variableQMAKE_LIBS_EGL. By defaultQMAKE_LIBS_EGL= -lEGL
And depending on hardware... it might be something likeQMAKE_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 setQMAKE_LIBS_EGLproperly.=> 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)
Quoted 15 lines
-----Message d'origine-----
De : Khem Raj [mailto:[email protected]] Envoyé : mercredi 3 février 2016 15:45 À : GUEYTAT Julien Cc : Yannick Kiekens; [email protected] Objet : Re: [yocto] [meta-qt5][meta-raspberrypi]:QMAKE_LIBS_EGLnot properly setQuoted 7 lines · GUEYTAT Julien
Hi everyone,
I understand that you are all rewriting the qtbase rule to include at least the modification to the
QMAKE_LIBS_EGLvariable.
Quoted 126 lines
Quoted 4 lines
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.
Quoted 118 lines
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:[email protected]] Envoyé :
mercredi 3 février 2016 08:41 À : Khem Raj Cc : GUEYTAT Julien; [email protected] Objet : Re: [yocto] [meta-qt5][meta-raspberrypi]:QMAKE_LIBS_EGLnot properly setHave a look at this git repo:
https://github.com/YannickKiekens/meta-qt5-piI 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 <[email protected]> wrote:
On Feb 2, 2016, at 8:50 AM, GUEYTAT Julien
<[email protected]>
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_EGLset 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
*_EGLvariables 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_FEATURESmay be you are missing some important knobs for EGLlike 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 : [email protected]www : www.studiel.fr
P Pensez Environnement, imprimez seulement si nécessaire
--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto
--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto