[meta-freescale] directFB and QT4 (OpenGL) on iMX6

Milan Malich kulich.bulich at seznam.cz
Sun Nov 24 07:33:38 PST 2013


Hello,
I try to use directFB with QT4 (OpenGL) on Wandaboard (iMX6 DualLite) (Yocto
Dora branch). Is there anyone who use opengl acceleration on framebuffer 
without X11 or Wayland? Some Qt examples was working via QWS plugin but when
I try use OpenGL (for example switch render in app svgviewer to OpenGL) it 
was crash (only I can see is freeze cursor on terminal text). hellogl_es2 
crash on startup (freeze cursor on terminal text). df_dok was running 
correctly. There are some tutorials or documentation how to run directFB and
OpenGL?
Thank you
Milan Malich
HW/SW Developer

The appendix includes configuration files from actual Yocto Dora branch.
qt4-embedded_4.8.5.bbappend (add "-egl")
QT_GLFLAGS_mx6 = "-opengl es2 -egl -openvg"

local.conf
MACHINE ??= 'wandboard-dual'
DISTRO ?= 'poky'
INHERIT += "rm_work"

DISTRO_FEATURES_LIBC = "ipv6 libc-backtrace libc-big-macros libc-bsd libc-
cxx-tests libc-catgets libc-charsets libc-crypt \
               libc-crypt-ufc libc-db-aliases libc-envz libc-fcvt libc-
fmtmsg libc-fstab libc-ftraverse \
               libc-getlogin libc-idn libc-inet libc-inet-anl libc-libm libc
-locales libc-locale-code \
               libc-memusage libc-nis libc-nsswitch libc-rcmd libc-rtld-
debug libc-spawn libc-streams libc-sunrpc \
               libc-utmp libc-utmpx libc-wordexp libc-posix-clang-wchar libc
-posix-regexp libc-posix-regexp-glibc \
               libc-posix-wchar-io"
DISTRO_FEATURES = "alsa argp bluetooth ext2 irda largefile pcmcia usbgadget 
usbhost wifi xattr nfs zeroconf pci 3g opengl directfb ${DISTRO_FEATURES_
LIBC}"

PACKAGE_CLASSES ?= "package_rpm"
EXTRA_IMAGE_FEATURES = "debug-tweaks"
USER_CLASSES ?= "buildstats image-mklibs image-prelink"
PATCHRESOLVE = "noop"
BB_DISKMON_DIRS = "\
    STOPTASKS,${TMPDIR},1G,100K \
    STOPTASKS,${DL_DIR},1G,100K \
    STOPTASKS,${SSTATE_DIR},1G,100K \
    ABORT,${TMPDIR},100M,1K \
    ABORT,${DL_DIR},100M,1K \
    ABORT,${SSTATE_DIR},100M,1K" 
CONF_VERSION = "1"

BB_NUMBER_THREADS = '4'
PARALLEL_MAKE = '-j 3'
ACCEPT_FSL_EULA = "1"

My image configuration:
DESCRIPTION = "Image with Sato, a mobile environment and visual style for \
mobile devices. The image supports X11 with a Sato theme, Pimlico \
applications, and contains terminal, editor, and file manager."

DISTRO_FEATURES += "pulseaudio"
WEB = "web-webkit"
SOC_EXTRA_IMAGE_FEATURES ?= "tools-testapps"

IMAGE_FEATURES += "debug-tweaks splash package-management ssh-server-openssh
hwcodecs"

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

LICENSE = "MIT"

inherit core-image

TOUCH = ' ${@base_contains("MACHINE_FEATURES", "touchscreen", "tslib tslib-
calibrate tslib-tests", "",d)}'

GPU = " \
    gpu-viv-bin-mx6q \
    gpu-viv-g2d \
"

#GSTREAMER = " \
#gst-fsl-plugin \
#gst-meta-base \
#gst-plugin-bluetooth \
#gst-plugins-bad \
#gst-plugins-base \
#gst-plugins-gl \
#gst-plugins-good \
#gstreamer \
#gstreamer1.0 \
#gstreamer1.0-plugins-bad \
#gstreamer1.0-plugins-base \
#gstreamer1.0-plugins-good \
#"


GSTREAMER = " \
gst-fsl-plugin \
gst-meta-base \
gst-plugin-bluetooth \
gst-plugins-bad \
gst-plugins-base \
gst-plugins-good \
gstreamer \
gstreamer1.0 \
gstreamer1.0-plugins-base \
gstreamer1.0-plugins-good \
"

FLS_LIB_MX6Q = " \
libfslcodec \
libfslparser \
imx-lib \
imx-vpu \
libfslvpuwrap \
"

FLS_LIB = " \
libfslcodec \
libfslparser \
imx-lib \
"

QT = " \
        qt4-embedded \
    libqt-embedded3support4 \
    libqt-embeddedclucene4 \
    libqt-embeddedcore4 \
    libqt-embeddeddbus4 \
    libqt-embeddedgui4 \
    libqt-embeddedhelp4 \
    libqt-embeddedmultimedia4 \
    libqt-embeddednetwork4 \
    libqt-embeddedscript4 \
    libqt-embeddedscripttools4 \
    libqt-embeddedsql4 \
    libqt-embeddedsvg4 \
    libqt-embeddedopengl4 \
    libqt-embeddedtest4 \
    libqt-embeddedwebkit4 \
    libqt-embeddedxml4 \
    qt4-embedded-fonts-ttf-dejavu \
    qt4-embedded-fonts-ttf-vera \
    qt4-embedded-plugin-iconengine-svgicon \
    qt4-embedded-plugin-imageformat-gif \
    qt4-embedded-plugin-imageformat-ico \
    qt4-embedded-plugin-imageformat-jpeg \
    qt4-embedded-plugin-imageformat-mng \
    qt4-embedded-plugin-imageformat-svg \
    qt4-embedded-plugin-imageformat-tiff \
    qt4-embedded-plugin-mousedriver-tslib \
    qt4-embedded-plugin-phonon-backend-gstreamer \
    qt4-embedded-plugin-script-dbus \
    qt4-embedded-plugin-sqldriver-sqlite \
    ${TOUCH} \
        qt4-embedded-demos \
        qt4-embedded-examples \
        qt4-embedded-assistant \
"

IMAGE_INSTALL += " \
    packagegroup-core-directfb \
    ${FLS_LIB} \
    ${GPU} \
    ${GSTREAMER} \
    ${QT} \
"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-freescale/attachments/20131124/11be7499/attachment.html>


More information about the meta-freescale mailing list