title: "Could not open egl display. Aborted" using fsl-community-bsp+ meta-qt5
body: <p><strong>Hardware</strong>: Riotboard, imx6solo;</p>
  
  <p><strong>BSP</strong>: fsl-community-bsp, jethro branch;</p>
  
  <p><strong>Meta-Qt5 layer</strong>: jethro branch;</p>
  
  <p>image generated by "<strong>bitbake fsl-image-multimedia-full</strong>";</p>
  
  <p>toolchain generated by "<strong>bitbake meta-toolchain-qt5</strong>";</p>
  
  <p>referred to the guide "Building Qt5 using yocto on Wandboard - Wandboard Wiki";</p>
  
  <p><code>qtbase-plugs</code> packages is present, libqeglfs.so is present also;</p>
  
  <p><code>Qtcreator</code> is setup: device, kit, compiler, debugger, rootfs, ssh connection;</p>
  
  <p><strong>NB: I only changed the rootfs on the board, the kernel, uboot, dtb files still use the embest ones. The kernel is 3.10.17_1.0.0; Will this affect the problem?</strong></p>
  
  <p>Now only one problem: when I run "./helloworld -platform eglfs", there is the error <strong>"Could not open egl display. Aborted".</strong> I have tried to export FB_MULTI_BUFFER=2, export DISPLAY=:0.0, export QT_EGLFS_IMX6_NO_FB_MULTI_BUFFER=1, the error remains. I also tried the fbset, to modify the depth to 32bit, cannot solve the problem.</p>
  
  <p>My another post link :<a href="https://stackoverflow.com/questions/36760009/how-to-enable-eglfs-plugin-in-yocto-setup-using-yoctometa-qt5-for-riotboard">How to enable eglfs plugin in Yocto setup? using yocto+meta-qt5 for Riotboard</a></p>
  
  <p>My final target is to develop <code>Qt5</code> applications for a customized board (similar to Riotboard), besides there will be other <code>C</code> applications which also run on the board. For the real time function, I will also include <code>Xenomai</code>, so this project will include many stuff.</p>
  
  <p><strong>bblayers.conf:</strong></p>
  
  <pre><code>LCONF_VERSION = "6"
  
  BBPATH = "${TOPDIR}"
  BSPDIR := "${@os.path.abspath(os.path.dirname(d.getVar('FILE', True)) + '/../..')}"
  
  BBFILES ?= ""
  BBLAYERS = " \
    ${BSPDIR}/sources/poky/meta \
    ${BSPDIR}/sources/poky/meta-yocto \
    ${BSPDIR}/sources/meta-openembedded/meta-oe \
    ${BSPDIR}/sources/meta-openembedded/meta-multimedia \
    ${BSPDIR}/sources/meta-fsl-arm \
    ${BSPDIR}/sources/meta-fsl-arm-extra \
    ${BSPDIR}/sources/meta-fsl-demos \
    ${BSPDIR}/sources/meta-qt5 \
    ${BSPDIR}/sources/meta-openembedded/meta-ruby \
  "
  </code></pre>
  
  <p><strong>local.conf:</strong></p>
  
  <pre><code>MACHINE ??= 'imx6solosabreauto'
  DISTRO ?= 'poky'
  PACKAGE_CLASSES ?= "package_rpm"
  EXTRA_IMAGE_FEATURES = "debug-tweaks ssh-server-openssh "
  
  USER_CLASSES ?= "buildstats image-mklibs"
  PATCHRESOLVE = "noop"
  BB_DISKMON_DIRS = "\
      STOPTASKS,${TMPDIR},1G,100K \
      STOPTASKS,${DL_DIR},1G,100K \
      STOPTASKS,${SSTATE_DIR},1G,100K \
      STOPTASKS,/tmp,100M,100K \
      ABORT,${TMPDIR},100M,1K \
      ABORT,${DL_DIR},100M,1K \
      ABORT,${SSTATE_DIR},100M,1K \
      ABORT,/tmp,10M,1K"
  
  PACKAGECONFIG_append_pn-qemu-native = " sdl"
  
  PACKAGECONFIG_append_pn-nativesdk-qemu = " sdl"
  
  PACKAGECONFIG_DISTRO_pn-qtbase = "accessibility"
  
  CONF_VERSION = "1"
  BB_NUMBER_THREADS = '8'
  PARALLEL_MAKE = '-j 8'
  
  DL_DIR ?= "${BSPDIR}/downloads/"
  ACCEPT_FSL_EULA = "1"
  DISTRO_FEATURES_remove="x11 wayland "
  
  IMAGE_INSTALL_append = " gcc g++ binutils libgcc libgcc-dev \
  libstdc++ libstdc++-dev libstdc++-staticdev \
  autoconf automake ccache chkconfig glib-networking glibmm \
  packagegroup-core-buildessential pkgconfig  \
  boost cmake zlib glib-2.0 \
      ruby \
      cpufrequtils \
      nano \
      gdb \
      gstreamer1.0 \
      gst-meta-video \
      gst1.0-fsl-plugin \
      gst-plugins-base-app \
      gst-plugins-base \
      gst-plugins-good \
      gst-plugins-good-rtsp \
      gst-plugins-good-udp \
      gst-plugins-good-rtpmanager \
      gst-plugins-good-rtp \
      gst-plugins-good-video4linux2 \
      openssh-sftp-server \
      packagegroup-fsl-gstreamer1.0 \
      packagegroup-fsl-tools-testapps \
      packagegroup-fsl-tools-benchmark \
      packagegroup-fsl-gstreamer1.0-full \
      packagegroup-fsl-tools-gpu \
      imx-vpu \
      imx-test \      
      qtbase-fonts \
      qtbase-plugins \
      qtbase-tools \
      qtdeclarative \
      qtdeclarative-plugins \
      qtdeclarative-tools \
      qtdeclarative-qmlplugins \
      qtmultimedia \
      qtmultimedia-plugins \
      qtmultimedia-qmlplugins \
      qtsvg \
      qtsvg-plugins \
      qtsensors \
      qtimageformats-plugins \
      qtsystems \
      qtsystems-tools \
      qtsystems-qmlplugins \
      qtscript \
      qt3d \
      qt3d-qmlplugins \
      qtwebkit \
      qtwebkit-examples-examples \
      qtwebkit-qmlplugins \
      qtgraphicaleffects-qmlplugins \
      qtconnectivity-qmlplugins \
      qtlocation-plugins \
      qtlocation-qmlplugins \
      cinematicexperience \
      cairo pango fontconfig freetype pulseaudio dbus \
      alsa-lib alsa-tools alsa-state fsl-alsa-plugins \
      i2c-tools \ 
      "
  </code></pre>
  
  <p>Thanks.</p>