[meta-freescale] libepoxy build error for i.MX6-based boards

Prabhu S prabhusundar at gmail.com
Tue May 19 08:46:58 PDT 2015


libepoxy.bb recipe is incomplete.
http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes-graphics/libepoxy/libepoxy_1.2.bb
libepoxy will also supports OpenGL, if can be configured in the OECONF,
since all platforms does not support OpenGL. there should be way for
configuring this.

pkgconfig wil provide -DLINUX flags and currently it is being provided by
egl.pc. but the libepoxy is using opengl causing this problem.

for i.MX6, recommended to enable EGL rather than OpenGL/GLX.

So the proper fix is adding configure options in libepoxy.bb to
disable/enable GLX. And another fix is to add -DLINUX in the OpenGL
pkgconfig

libepoxy_%.bbappend is a workaround for now.

On Tue, May 19, 2015 at 10:25 AM, Nikolay Dimitrov <picmaster at mail.bg>
wrote:

> Hi Neena,
>
>
> On 05/19/2015 06:15 PM, Neena Busireddy wrote:
>
>> Hi Otavio,
>>
>> Hello,
>>
>> O.S. Systems autobuilder has found the following error:
>>
>> x11 fsl-image-machine-test at imx6qsabresd (4/7) |
>> .../build-x11/tmp/sysroots/imx6qsabresd/usr/include/EGL/eglvivante.h:266:2:
>> error: #error "Platform not recognized"
>>
>> x11 fsl-image-machine-test at imx6qsabresd (4/7) |  #error "Platform not
>> recognized"
>>
>> x11 fsl-image-machine-test at imx6qsabresd (4/7) |   ^
>>
>> x11 fsl-image-machine-test at imx6qsabresd (4/7) | cc1: warning:
>> unrecognized command line option "-Wno-int-conversion"
>>
>> x11 fsl-image-machine-test at imx6qsabresd (4/7) | make[3]: ***
>> [glx_generated_dispatch.lo] Error 1
>>
>> x11 fsl-image-machine-test at imx6qsabresd (4/7) | cc1: warning:
>> unrecognized command line option "-Wno-int-conversion"
>>
>> x11 fsl-image-machine-test at imx6qsabresd (4/7) | make[3]: ***
>> [gl_generated_dispatch.lo] Error 1
>>
>> x11 fsl-image-machine-test at imx6qsabresd (4/7) | make[3]: Leaving
>> directory
>> `.../build-x11/tmp/work/cortexa9hf-vfp-neon-mx6qdl-poky-linux-gnueabi/libepoxy/1.2-r0/build/src'
>>
>> x11 fsl-image-machine-test at imx6qsabresd (4/7) | make[2]: *** [all] Error
>> 2
>>
>> x11 fsl-image-machine-test at imx6qsabresd (4/7) | make[2]: Leaving
>> directory
>> `.../build-x11/tmp/work/cortexa9hf-vfp-neon-mx6qdl-poky-linux-gnueabi/libepoxy/1.2-r0/build/src'
>>
>> x11 fsl-image-machine-test at imx6qsabresd (4/7) | make[1]: ***
>> [all-recursive] Error 1
>>
>> x11 fsl-image-machine-test at imx6qsabresd (4/7) | make[1]: Leaving
>> directory
>> `.../build-x11/tmp/work/cortexa9hf-vfp-neon-mx6qdl-poky-linux-gnueabi/libepoxy/1.2-r0/build'
>>
>> x11 fsl-image-machine-test at imx6qsabresd (4/7) | make: *** [all] Error 2
>>
>> x11 fsl-image-machine-test at imx6qsabresd (4/7) | ERROR: oe_runmake failed
>>
>> If someone can take a look, please do.
>>
>> This regression is caused by the commit
>> 05ea29b4406613ea45bb0cb7aec57c22e55b9969 (xserver-xorg: add
>> PACKAGECONFIG for wayland and add xserver-xorg-xwayland) pushed in poky.
>>
>> We are seeing this error as we don’t have x11 and wayland functional
>> together.
>>
>
> Well, they don't have to be functional at the same time.
>
> This fixes the issue, as pointed out by Lauren:
>
>
> meta-fsl-arm/recipes-graphics/libepoxy/libepoxy_%.bbappend:
> -----------------------------------------------------------
> CFLAGS_append_mx6 = " -DLINUX"
>
>
> (Actually, Lauren pointed to a more complete fix than this work-around,
> but this is what fixed the master build for me, and I'm happy enough to
> not care about Wayland for the moment)
>
> Regards,
> Nikolay
>
> --
> _______________________________________________
> meta-freescale mailing list
> meta-freescale at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-freescale
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-freescale/attachments/20150519/6c0c8f3c/attachment.html>


More information about the meta-freescale mailing list