AnsweredAssumed Answered

Qt5.7.1 causing surface error on i.MX6DL

Question asked by Michael Worster on Jun 22, 2017
Latest reply on Jun 27, 2017 by Bio_TICFSL

I'm trying to get some guidance on an issue I'm seeing. I have a board which is using an i.MX6DL processor and I'd like to get Qt5.7.1 configured and working correctly on the framebufer. I configured and compiled the meta-qt5 layer under Morty (2.2.1) with a 4.1.15 Linux kernel. The code and examples built, but when I run them on my board I'm geting "surface error 0x3003":


root@imx6dlic:/usr/share/qt5everywheredemo-1.0# ./QtDemo
QEglFSVivIntegration will set environment variable FB_MULTI_BUFFER=2 to enable double buffering and vsync.
If this is not desired, you can override this via: export QT_EGLFS_IMX6_NO_FB_MULTI_BUFFER=1
Unable to query physical screen size, defaulting to 100 dpi.
QFontDatabase: Cannot find font directory /usr/lib/fonts.
Note that Qt no longer ships fonts. Deploy some (from for example) or switch to fontconfig.
EGL Error : Could not create the egl surface: error = 0x3003



I haven't found the cause of the surface error yet, and I'm wondering if that's just because something isn't configured correctly for this product. Does anyone have input on what can cause this issue and how to go about debugging this on the i.MX6?


Here's my current configuration:

configure -opensource -confirm-license -sysroot <my sys root> -no-gcc-sysroot -prefix /usr -bindir /usr/bin/qt5 -libdir /usr/lib -datadir /usr/share/qt5 -sysconfdir /etc/qt5 -docdir /usr/share/doc/qt5 -headerdir /usr/include/qt5 -archdatadir /usr/lib/qt5 -libexecdir /usr/lib/qt5/libexec -plugindir /usr/lib/qt5/plugins -importdir /usr/lib/qt5/imports -qmldir /usr/lib/qt5/qml -translationdir /usr/share/qt5/translations -testsdir /usr/share/qt5/tests -examplesdir /usr/share/qt5/examples -hostbindir /usr/bin/qt5 -external-hostbindir <my host bindir> -hostdatadir <my host datadir> -platform /<my path>/build_qt5/tmp/sysroots/x86_64-linux/usr/lib/qt5/mkspecs/linux-oe-g++ -xplatform linux-oe-g++ -shared -silent -no-pch -no-rpath -pkg-config -no-accessibility -no-alsa -no-cups -dbus -no-directfb -no-eglfs -evdev -nomake examples -no-fontconfig -freetype -opengl es2 -no-glib -no-gtk -no-harfbuzz -no-iconv -no-icu -no-journald -system-libjpeg -no-kms -no-libinput -system-libpng -no-libproxy -make libs -no-linuxfb -no-mitshm -no-mtdev -openssl -no-openvg -qt-pcre -pulseaudio -release -no-sm -no-sql-db2 -no-sql-ibase -no-sql-mysql -no-sql-oci -no-sql-odbc -no-sql-psql -no-sql-sqlite -no-sql-sqlite2 -no-sql-tds -nomake tests -make tools -no-tslib -libudev -widgets -no-xcb -no-xcursor -no-xfixes -no-xinput2 -no-xkb -no-xkbcommon -no-xkbcommon-evdev -no-xrandr -no-xrender -no-xshape -no-xsync -system-zlib -eglfs