Failed to run Qt CinematicExperience sample on Colibri T20 -- EGL error

Hi all,

I finally succeeded to install Qt5 on, my Colibri-T20 using Yocto.
As recommended in this website, I paid attention to use the jethro branch of meta-qt5.

During the build of qtbase, I took a look to the log.do_configure log file to ensure that OpenGL configuration was ok. I get:

OpenGL / OpenVG:
        EGL .................. yes
        OpenGL ............... desktop
        OpenVG ............... no
 XCB .................. yes (system library)
      EGL on X ........... yes
      GLX ................ yes
      MIT-SHM ............ no
      Xcb-Xlib ........... yes
      Xcursor ............ yes
      Xfixes ............. yes
      Xi ................. no
      Xi2 ................ yes

I deployed my image to my Colibri-T20 and tried to run the CinematicExperience program…but it leads to this error:

Cannot find EGLConfig, returning null config
Unable to find an X11 visual which matches EGL config 0
Could not initialize OpenGL

Well…I know some have already experienced. But I’ve taken care of the Qt version, that the Qt configuration was ok for EGL…

So I wonder how to find out what’s happening as the error message is unclear.

Cheers,

Karim

How about just using our angstrom-qt5-x11-image bitbake recipe which will take care of all the nitty gritty details?

@marcel.tx

I would surely make a test using the angstrom-qt5-x11-image recipe.
But I aim to customize my own image with only the necessary packages.
But I agree that it could use one time this recipe.

But I would like to understand what’s missing in my image recipe for further needs.
Except the gstreamer stuff, they are similar.

SUMMARY = "A core-image based image with X11 support and gtk3 to compile V50 on KTS 3/4"

LICENSE = "MIT"

inherit core-image distro_features_check

IMAGE_FEATURES_append = " splash package-management ssh-server-dropbear x11-base"

REQUIRED_DISTRO_FEATURES = " x11 opengl"

IMAGE_INSTALL_append = " glibc-staticdev libstdc++ gtk+3  xinput-calibrator nvsamples "
IMAGE_INSTALL_append = " v50 libgx2-tests easytouch"


IMAGE_INSTALL_append = " qtbase \
 qtdeclarative \
 qtmultimedia \
 qtsvg \
 qtsensors \
 qtimageformats \
 qtsystems \
 qtscript \
 qt3d \
 qtconnectivity \
 qtlocation \
 cinematicexperience \
 qtgraphicaleffects \
 qtquick1 \
 qtwebkit \
"

Cheers,

Karim

In engineering there is really always the proven way of going step by step. If you rather prefer to do it your own way and skip some steps in-between of course that is fine too but I am afraid I won’t be able to help you out much then, sorry.

You’re right.
I’ll start using the angstrom image asap and see where’s the trick in my recipe.
Thanks for your feedback and support.

@marcel.tx

I followed your recommendation, and tried to build the angstrom-qt5-x11-image.
Firstly, I’vbe checked out the necessary layers deps as described in the README of meta-toradex-demos.
But I’ve still some errors and I don’t know whic layer I should add in the deps:

Parsing recipes: 100% |##################################################################################################################################################################################| Time: 00:00:32
Parsing of 2251 .bb files complete (0 cached, 2251 parsed). 2819 targets, 178 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
ERROR: Nothing PROVIDES 'gst-plugins-ugly' (but /home/kai/yocto/poky-toradex/meta-toradex-demos/recipes-images/images/angstrom-qt5-x11-image.bb DEPENDS on or otherwise requires it)
ERROR: gst-plugins-ugly was skipped: because it has a restricted license not whitelisted in LICENSE_FLAGS_WHITELIST
ERROR: Nothing RPROVIDES 'gst-plugins-ugly-asf' (but /home/kai/yocto/poky-toradex/meta-toradex-demos/recipes-images/images/angstrom-qt5-x11-image.bb RDEPENDS on or otherwise requires it)
NOTE: Runtime target 'gst-plugins-ugly-asf' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['gst-plugins-ugly-asf']
ERROR: Nothing RPROVIDES 'angstrom-qt5-x11-image'
ERROR: No eligible RPROVIDERs exist for 'angstrom-qt5-x11-image'
NOTE: Runtime target 'angstrom-qt5-x11-image' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['angstrom-qt5-x11-image']
NOTE: multiple providers are available for jpeg (jpeg, libjpeg-turbo)
NOTE: consider defining a PREFERRED_PROVIDER entry to match jpeg
ERROR: Nothing PROVIDES 'imlib2' (but /home/kai/yocto/poky-toradex/meta-toradex-demos/recipes-graphics/scrot/scrot_0.8.bb DEPENDS on or otherwise requires it). Close matches:
  imx-lib
NOTE: Runtime target 'scrot' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['scrot', 'imlib2']
ERROR: Nothing RPROVIDES 'imlib2' (but /home/kai/yocto/poky-toradex/meta-toradex-demos/recipes-graphics/scrot/scrot_0.8.bb, /home/kai/yocto/poky-toradex/meta-toradex-demos/recipes-graphics/scrot/giblib_1.2.4.bb RDEPENDS on or otherwise requires it)
NOTE: Runtime target 'imlib2' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['imlib2']
ERROR: Nothing RPROVIDES 'giblib' (but /home/kai/yocto/poky-toradex/meta-toradex-demos/recipes-graphics/scrot/scrot_0.8.bb, /home/kai/yocto/poky-toradex/meta-toradex-demos/recipes-graphics/scrot/giblib_1.2.4.bb RDEPENDS on or otherwise requires it)
ERROR: No eligible RPROVIDERs exist for 'giblib'
NOTE: Runtime target 'giblib' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['giblib']
ERROR: Nothing RPROVIDES 'imlib2-loaders' (but /home/kai/yocto/poky-toradex/meta-toradex-demos/recipes-graphics/scrot/scrot_0.8.bb RDEPENDS on or otherwise requires it)
NOTE: Runtime target 'imlib2-loaders' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['imlib2-loaders']
ERROR: Nothing RPROVIDES 'scrot-dev' (but /home/kai/yocto/poky-toradex/meta-toradex-demos/recipes-graphics/scrot/scrot_0.8.bb RDEPENDS on or otherwise requires it)
ERROR: No eligible RPROVIDERs exist for 'scrot-dev'
NOTE: Runtime target 'scrot-dev' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['scrot-dev']
ERROR: Nothing RPROVIDES 'giblib-dev' (but /home/kai/yocto/poky-toradex/meta-toradex-demos/recipes-graphics/scrot/giblib_1.2.4.bb RDEPENDS on or otherwise requires it)
ERROR: No eligible RPROVIDERs exist for 'giblib-dev'
NOTE: Runtime target 'giblib-dev' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['giblib-dev']
NOTE: multiple providers are available for jpeg-native (jpeg-native, libjpeg-turbo-native)
NOTE: consider defining a PREFERRED_PROVIDER entry to match jpeg-native

Build Configuration:
BB_VERSION        = "1.28.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Debian-8.6"
TARGET_SYS        = "arm-poky-linux-gnueabi"
MACHINE           = "colibri-t20"
DISTRO            = "poky"
DISTRO_VERSION    = "2.0.2"
TUNE_FEATURES     = "arm armv7a vfp thumb callconvention-hard"
TARGET_FPU        = "vfp"
meta
meta-yocto
meta-yocto-bsp    = "jethro:2804850ea7b030be9b36ea1af03cd80d90466707"
meta-toradex-bsp-common = "jethro-next:7411132f47b3a3dc4eedb42be177afe3fb8c9b6a"
meta-toradex-demos = "jethro-next:f2de1e7916b05bb78dabbf50a8ba76173eef95b0"
meta-toradex-tegra = "jethro-next:1bc3e5c2b567570d33b4b94eae36d41e99a1bee5"
meta-jetson-tk1   = "jethro:0569d7a930506c185734097a58e1de219dc66c80"
meta-pga          = "jethro:2804850ea7b030be9b36ea1af03cd80d90466707"
meta-oe
meta-ruby
meta-multimedia
meta-networking
meta-gnome
meta-python
meta-systemd      = "jethro-next:2ea8d7f54a061e902657c4f8ea1f7f7c25c6c4e1"
meta-angstrom     = "angstrom-v2015.12-yocto2.0:7f2eec75fd20b672221ff071d121fa9ea2e1e6ea"
meta-browser      = "jethro:e114d625d4bd23a52cc1108a45d96ffd8dc0ab7f"
meta-fsl-arm      = "jethro:417f669e4dede244a81e11aa6d8b60c4e333e589"
meta-fsl-demos    = "jethro:8bffde8d803dd2362fbded79781ce084d723b048"
meta-lxde         = "jethro:d097882e3859220e9ce0c99250e22f5833233c6e"
meta-qt5          = "jethro-next:a8d4dafdfde812e403315d53b2a981d12bd49f04"

If you know them, it would be helpful.

Cheers.

Karim