AnsweredAssumed Answered

Qt camera example not working on i.MX6Q

Question asked by Marco Raiteri on Mar 5, 2015
Latest reply on Aug 7, 2016 by Haggay Tavyumi

Hello,

I have a problem running the Qt camera example on the Freescale MCIMX6Q-SDP evaluation board.

I am using imx-3.10.53-1.1.0_ga from git://git.freescale.com/imx/fsl-arm-yocto-bsp.git

 

I built the image with yocto:

bitbake fsl-image-qt5

 

This is my local.conf:

-----------------------------------------------------------------------------------

BB_NUMBER_THREADS ?= "${@oe.utils.cpu_count()}"

PARALLEL_MAKE ?= "-j ${@oe.utils.cpu_count()}"

MACHINE ??= 'imx6qsabresd'

DISTRO ?= 'poky'

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"

PACKAGECONFIG_pn-qemu-native = "sdl"

PACKAGECONFIG_pn-nativesdk-qemu = "sdl"

ASSUME_PROVIDED += "libsdl-native"

CONF_VERSION = "1"

 

BB_NUMBER_THREADS = '4'

PARALLEL_MAKE = '-j 4'

 

DL_DIR ?= "${BSPDIR}/downloads/"

ACCEPT_FSL_EULA = ""

 

LICENSE_FLAGS_WHITELIST = "commercial"

 

IMAGE_INSTALL_append = " \

    openssh-sftp-server \

    cpufrequtils \

    nano \

    gstreamer \

    gst-meta-video \

    gst-fsl-plugin \

    gst-plugins-base-app \

    gst-plugins-base \

    gst-plugins-base-meta \

    gst-plugins-good \

    gst-plugins-good-rtsp \

    gst-plugins-good-udp \

    gst-plugins-good-rtpmanager \

    gst-plugins-good-rtp \

    gst-plugins-good-video4linux2 \

    gst-plugins-good-meta \

    gst-plugins-bad \

    gst-plugins-bad-camerabin2 \

    gst-plugins-bad-meta \

    gst-plugins-ugly \

    gst-plugins-ugly-meta \

    gst-plugins-gl \

    gst-plugins-gl-meta \

    gst-plugins-gl-opengl \

    packagegroup-fsl-gstreamer \

    packagegroup-fsl-tools-testapps \

    packagegroup-fsl-tools-benchmark \

    imx-vpu \

    imx-test \

    qtbase-fonts \

    qtbase-plugins \

    qtbase-tools \

    qtbase-examples \

    qtmultimedia \

    qtmultimedia-plugins \

    qtmultimedia-examples \

    qtmultimedia-qmlplugins \

    qtsvg \

    qtsvg-plugins \

    qtsensors \

    qtimageformats-plugins \

    qtsystems \

    qtsystems-tools \

    qtsystems-examples \

    qtsystems-qmlplugins \

    qtscript \

    qt3d \

    qt3d-examples \

    qt3d-qmlplugins \

    qt3d-tools \

    \

    qtdeclarative \

    qtdeclarative-plugins \

    qtdeclarative-tools \

    qtdeclarative-examples \

    qtdeclarative-qmlplugins \

    \

    qtgraphicaleffects-qmlplugins \

    qtconnectivity-qmlplugins \

    qtlocation-plugins \

    qtlocation-qmlplugins \

    cairo pango fontconfig freetype pulseaudio dbus \

    alsa-lib alsa-tools alsa-state alsa-utils-alsaconf fsl-alsa-plugins \

    i2c-tools \

    "

 

PACKAGECONFIG_append_pn-qtmultimedia = " gstreamer010"

-----------------------------------------------------------------------------------

 

This is my bblayers.conf:

-----------------------------------------------------------------------------------

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-fsl-arm \

  ${BSPDIR}/sources/meta-fsl-arm-extra \

  ${BSPDIR}/sources/meta-fsl-demos \

"

##Freescale Yocto Release layer

BBLAYERS += " ${BSPDIR}/sources/meta-fsl-bsp-release/imx/meta-fsl-arm "

BBLAYERS += " ${BSPDIR}/sources/meta-fsl-bsp-release/imx/meta-fsl-demos "

BBLAYERS += " ${BSPDIR}/sources/meta-browser "

BBLAYERS += " ${BSPDIR}/sources/meta-openembedded/meta-gnome "

BBLAYERS += " ${BSPDIR}/sources/meta-openembedded/meta-networking "

BBLAYERS += " ${BSPDIR}/sources/meta-openembedded/meta-ruby "

BBLAYERS += " ${BSPDIR}/sources/meta-openembedded/meta-multimedia "

BBLAYERS += " ${BSPDIR}/sources/meta-qt5 "

BBLAYERS += " ${BSPDIR}/sources/meta-fsl-bsp-release/imx/meta-fsl-qt5 "

BBLAYERS += " ${BSPDIR}/sources/meta-fsl-bsp-release/imx/meta-fsl-bluez "

 

-----------------------------------------------------------------------------------

 

When I run the Qt camera example (/usr/share/qt5/examples/multimediawidgets/camera/camera) I get the following warnings and errors:

 

Qt Warning: Could not find a location of the system's Compose files. Consider setting the QTCOMPOSE environment variable.

Qt Warning: Could not find a location of the system's Compose files. Consider setting the QTCOMPOSE environment variable.

 

** (camera:1054): CRITICAL **: gst_photography_set_focus_mode: assertion 'photo != NULL' failed

Warning: EGL suggested using X Visual ID 33 (RGB565) for EGL config 1 (RGB444), but this is incompatable

Unable to find an X11 visual which matches EGL config 1

Warning: EGL suggested using X Visual ID 33 (RGB565) for EGL config 1 (RGB444), but this is incompatable

Unable to find an X11 visual which matches EGL config 1

Warning: EGL suggested using X Visual ID 33 (RGB565) for EGL config 1 (RGB444), but this is incompatable

Unable to find an X11 visual which matches EGL config 1

Warning: EGL suggested using X Visual ID 33 (RGB565) for EGL config 1 (RGB444), but this is incompatable

Unable to find an X11 visual which matches EGL config 1

Warning: EGL suggested using X Visual ID 33 (RGB565) for EGL config 1 (RGB444), but this is incompatable

Unable to find an X11 visual which matches EGL config 1

Warning: EGL suggested using X Visual ID 33 (RGB565) for EGL config 1 (RGB444), but this is incompatable

Unable to find an X11 visual which matches EGL config 1

Warning: EGL suggested using X Visual ID 33 (RGB565) for EGL config 1 (RGB444), but this is incompatable

Unable to find an X11 visual which matches EGL config 1

Warning: EGL suggested using X Visual ID 33 (RGB565) for EGL config 1 (RGB444), but this is incompatable

Unable to find an X11 visual which matches EGL config 1

Warning: EGL suggested using X Visual ID 33 (RGB565) for EGL config 1 (RGB444), but this is incompatable

Unable to find an X11 visual which matches EGL config 1

Warning: EGL suggested using X Visual ID 33 (RGB565) for EGL config 1 (RGB444), but this is incompatable

Unable to find an X11 visual which matches EGL config 1

Warning: EGL suggested using X Visual ID 33 (RGB565) for EGL config 1 (RGB444), but this is incompatable

Unable to find an X11 visual which matches EGL config 1

Warning: EGL suggested using X Visual ID 33 (RGB565) for EGL config 1 (RGB444), but this is incompatable

Unable to find an X11 visual which matches EGL config 1

 

** (camera:1054): CRITICAL **: gst_missing_encoder_message_new: assertion '!gst_caps_is_any (encode_caps)' failed

 

(camera:1054): GStreamer-CRITICAL **: gst_element_post_message: assertion 'message != NULL' failed

CameraBin error: "Your GStreamer installation is missing a plug-in."

 

I have tried to put in the image all the gstreamer plugins (base, good, bad, ugly).

I don't understand which plugin is missing.

Any help would be very appreciated.

 

Thank you very much

Outcomes