[meta-freescale] iMX6: How to Include X11 into my image

Tarek El-Sherbiny tarek.elsherbiny at gmail.com
Thu Dec 13 05:57:16 PST 2012


Hi Otavio,

I've created the following adh-image-x11.bb:

----------------------------------------------------------------------
include recipes-graphics/images/core-image-x11.bb

IMAGE_FEATURES += "debug-tweaks"
DISTRO_FEATURES += "pulseaudio"


SOC_EXTRA_IMAGE_FEATURES ?= "tools-testapps"
# mesa-demos is currently broken when building with other GL library
# so we avoid it by now and tools-testapps includes it.
SOC_EXTRA_IMAGE_FEATURES_mx6 = ""


# Add extra image features
EXTRA_IMAGE_FEATURES += " \
    ${SOC_EXTRA_IMAGE_FEATURES} \
    tools-debug \
    tools-profile \
"

SOC_IMAGE_INSTALL = ""

IMAGE_INSTALL += " \
    ${SOC_IMAGE_INSTALL} \
    cpufrequtils \
    packagegroup-fsl-gstreamer \
    packagegroup-fsl-tools-testapps \
    packagegroup-fsl-tools-benchmark \
    qt4-plugin-phonon-backend-gstreamer \
    fsl-gui-extrafiles \
    "


export IMAGE_BASENAME = "adh-image-x11"
------------------------------------------------------------------

But I'm getting the following error:


root=/data/extend_homes/telsherbiny/work/fsl-community-bsp/build/tmp/sysroots/imx6qsabrelite
-std=gnu99 -DHAVE_CONFIG_H -I. -I../include -I../hw/xfree86/os-support
-I../hw/xfree86/os-support/bus -I../hw/xfree86/common -I../hw/xfree86/dri
-I../mi -DHAVE_DIX_CONFIG_H -Wall -Wpointer-arith -Wmissing-declarations
-Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs
-Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement
-Wunused -Wuninitialized -Wshadow -Wcast-qual -Wmissing-noreturn
-Wmissing-format-attribute -Wredundant-decls -Werror=implicit
-Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces
-Werror=sequence-point -Werror=return-type -Werror=trigraphs
-Werror=array-bounds -Werror=write-strings -Werror=address
-Werror=int-to-pointer-cast -Werror=pointer-to-int-cast
-fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT
-I/data/extend_homes/telsherbiny/work/fsl-community-bsp/build/tmp/sysroots/imx6qsabrelite/usr/include/pixman-1
-I/data/extend_homes/telsherbiny/work/fsl-community-bsp/build/tmp/sysroots/imx6qsabrelite/usr/include/freetype2
-I../include -I../include -I../Xext -I../composite -I../damageext
-I../xfixes -I../Xi -I../mi -I../miext/sync -I../miext/shadow
-I../miext/damage -I../render -I../randr -I../fb -fvisibility=hidden
-I/data/extend_homes/telsherbiny/work/fsl-community-bsp/build/tmp/sysroots/imx6qsabrelite/usr/include/libdrm
-I/data/extend_homes/telsherbiny/work/fsl-community-bsp/build/tmp/sysroots/imx6qsabrelite/usr/include/libdrm
-I/data/extend_homes/telsherbiny/work/fsl-community-bsp/build/tmp/sysroots/imx6qsabrelite/usr/include/X11/dri
-DGLX_USE_TLS -DPTHREADS -O2 -pipe -g -feliminate-unused-debug-types -c
indirect_dispatch.c  -fPIC -DPIC -o .libs/indirect_dispatch.o
| In file included from ../include/dixstruct.h:28:0,
|                  from glxserver.h:42,
|                  from indirect_dispatch.c:35:
| ../include/dix.h:532:22: warning: redundant redeclaration of 'ffs'
[-Wredundant-decls]
| In file included from ../include/dixstruct.h:28:0,
|                  from glxserver.h:42,
|                  from indirect_dispatch_swap.c:35:
| ../include/dix.h:532:22: warning: redundant redeclaration of 'ffs'
[-Wredundant-decls]
| In file included from indirect_dispatch.c:40:0:
| glapitable.h:458:92: error: unknown type name 'GLchar'
| glapitable.h:460:90: error: unknown type name 'GLchar'
| In file included from indirect_dispatch_swap.c:40:0:
| glapitable.h:458:92: error: unknown type name 'GLchar'
| glapitable.h:460:90: error: unknown type name 'GLchar'
| glapitable.h:543:52: error: unknown type name 'GLsizeiptrARB'
| glapitable.h:544:55: error: unknown type name
'GLintptrARB'glapitable.h:543:52: error: unknown type name 'GLsizeiptrARB'
| glapitable.h:544:55: error: unknown type name 'GLintptrARB'
| glapitable.h:544:75: error: unknown type name 'GLsizeiptrARB'


What should I do to fix this?

Thanks
Tarek


On Thu, Dec 13, 2012 at 12:59 PM, Otavio Salvador
<otavio at ossystems.com.br>wrote:

> On Thu, Dec 13, 2012 at 10:50 AM, Tarek El-Sherbiny
> <tarek.elsherbiny at gmail.com> wrote:
> > What is the simplest image that contains X to start with?
>
> core-image-x11
>
> --
> Otavio Salvador                             O.S. Systems
> E-mail: otavio at ossystems.com.br  http://www.ossystems.com.br
> Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-freescale/attachments/20121213/05d71d4d/attachment.html>


More information about the meta-freescale mailing list