[Yocto] How to properly bulid Qt5 for iMX6ULL?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

[Yocto] How to properly bulid Qt5 for iMX6ULL?

2,944 Views
j_turek
Contributor I

Hello

I am trying to bulid  Qt5 for custom iMX6ULL board with Yocto.

I'm using following layers[all warrior branch]:

BBLAYERS ?= " \
  ${YOCTOROOT}/poky/meta \
  ${YOCTOROOT}/poky/meta-poky \
  ${YOCTOROOT}/poky/meta-openembedded/meta-oe \
  ${YOCTOROOT}/poky/meta-openembedded/meta-networking \
  ${YOCTOROOT}/poky/meta-openembedded/meta-python \
  ${YOCTOROOT}/poky/meta-freescale \
  ${YOCTOROOT}/poky/meta-my-custom-bsp \
  ${YOCTOROOT}/poky/meta-qt5 \

"

I don't need any windowing system so in my distro.conf includes

DISTRO_FEATURES_remove = "x11 wayland directfb vulkan "


It is possible to bulid and run Qt5 apps with this settings for qtbase_git.bbappend in my layer:

PACKAGECONFIG_append = " no-opengl linuxfb accessibility fontconfig libinput xkbcommon" 
PACKAGECONFIG_remove = " examples tests gbm eglfs gl gles2 kms"

but I am not sure if it's the best option because in /meta-freescale/blob/warrior/dynamic-layers/qt5-layer/recipes-qt/qt5/qtbase_%.bbappend 

There is a line for iMX processors with PXP engine(IMX6ULL has no GPU):

PACKAGECONFIG_GL_imxpxp = "gles2"

So I assume that imx6ull should use gles2 backend.

Now when my qtbase_git.bbappend looks like:

PACKAGECONFIG_append = " linuxfb accessibility fontconfig libinput tslib xkbcommon"
PACKAGECONFIG_remove = " examples tests eglfs"

I've got following errors:

ERROR: Nothing PROVIDES 'virtual/egl' (but /yocto/poky/meta-qt5/recipes-qt/qt5/qtbase_git.bb DEPENDS on or otherwise requires it)

ERROR: Nothing PROVIDES 'virtual/libgles2' (but /yocto/poky/meta-qt5/recipes-qt/qt5/qtbase_git.bb DEPENDS on or otherwise requires it)

How to setup qtbase and DISTRO FEATURES/PREFFERED_PROVIDERS  properly?

Labels (3)
0 Kudos
2 Replies

2,279 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

Which version BSP are you using? The i.MX6ULL do not have GPU. Builds an opensource Qt 5 image. These images are only supported for i.MX SoC with hardware graphics. They are not supported on the i.MX 6UltraLite, i.MX 6UltraLiteLite and i.MX 7Dual. So if you want to use the qt5 in i.MX6ULL only can realize in the software. Hope this thread can do help for you.https://community.nxp.com/docs/DOC-333580 

0 Kudos

2,279 Views
j_turek
Contributor I

Thank you for quick answer.

I am using these boards:

VisionSOM-6ULL (SLS16Yx) - SoMLabs 

The manufacturer provides yocto-bsp

meta-somlabs/qtbase_git.bbappend at warrior · SoMLabs/meta-somlabs · GitHub 

I had problems to compile qt5 image using their  "warrior" branch.

But with distro config fsl-framebuffer.conf from meta-freescale-distro

GitHub - Freescale/meta-freescale-distro: OpenEmbedded/Yocto BSP layer for Freescale's ARM based pla... 

it bulids now without removing "gles2" backend

0 Kudos