[oe] [meta-qt5][PATCH] qt5: use extra .pri file from linux-oe-g++ mkspec

Andre McCurdy armccurdy at gmail.com
Fri Oct 16 02:52:09 UTC 2015


On Thu, Oct 15, 2015 at 6:38 AM, Otavio Salvador
<otavio.salvador at ossystems.com.br> wrote:
> On Thu, Oct 15, 2015 at 8:47 AM, Martin Jansa <martin.jansa at gmail.com> wrote:
>> On Thu, Oct 15, 2015 at 01:00:31PM +0300, Samuli Piippo wrote:
>>> Load additional oe-device-extra.pri in the default linux-oe-g++ mkspec to
>>> allow simple changing of target dependent values. This is useful for any
>>> target that needs to specify e.g., QMAKE_LIBS_EGL or other additional configs.
>>
>> Looks good, but people using this need to be aware that it will cause
>> qtbase and everything depending on it MACHINE_ARCH which is very
>> unfortunate considering the time needed to build things like
>> qtwebengine/qtwebkit.
>
> However I don't see how any BSP needing to pass extra libraries or
> flags would not be machine specific.

Multiple machines based on the same SoC (or SoC family) can often
share the same graphics libraries.

> One way to avoid this would be to split out the QPA backend for those
> to another recipe and this to become machine specific and include the
> .pri file.

Alternatively create "egl.pc" and "glesv2.pc" pkg-config files for the
graphics libs. The qtbase build can then set QMAKE_LIBS_EGL etc
automatically without needing changes to the default linux-oe-g++
mkspec.

e.g. something like:

  https://github.com/heiher/raspberrypi-firmware-pkgconfig/tree/master/pkgconfig

> --
> Otavio Salvador                             O.S. Systems
> http://www.ossystems.com.br        http://code.ossystems.com.br
> Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel



More information about the Openembedded-devel mailing list