Please find attached a proper git patch file, it was made against the latest meta-fsl-arm daisy branch.
Regards, Simon Egli Embedded Software Ingenieur Direkt: +41 44 315 63 66 -- MAKING VISIONS WORK. bbv Software Services AG | Binzmühlestrasse 56 | CH-8050 Zürich www.bbv.ch | [email protected] ________________________________________ Von: Otavio Salvador <[email protected]> Gesendet: Donnerstag, 8. Oktober 2015 15:15 An: Simon Egli Cc: [email protected] Betreff: Re: [meta-freescale] [PATCH][QT][Gstreamer][sabrelite] QCamera not working in meta-freescale due to wrong gstreamer command Hello Simon, On Thu, Oct 8, 2015 at 8:29 AM, Simon Egli <[email protected]> wrote: > I have a project using the nitrogen6x-sabrelite board using Qt. > > The QCamera did not work and I found that the culprit was that QCamera > expects > > v4l2src, but we only have mfw_v4lsrc on the sabrelite. > > > Using attached patch I got QCamera working. Would you mind preparing a patch for the layer? -- Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
From 59ae90918479bac737407a5729f0816ca9bc480c Mon Sep 17 00:00:00 2001 From: Simon Egli <[email protected]> Date: Thu, 8 Oct 2015 16:22:52 +0200 Subject: [PATCH] using mfw_v4lsrc instead of v4l2src on freescale on freescale we have the mfw_v4lsrc gstreamer module, no v4l2src module seems to be present. QCamera did not work for me, so I patched the files so Qt will use mfw_v4lsrc. Signed-off-by: Simon Egli <[email protected]> --- .../qt5/qtmultimedia/patch_mfw_v4lsrc.patch | 26 ++++++++++++++++++++++ qt5-layer/recipes-qt/qt5/qtmultimedia_%.bbappend | 3 ++- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 qt5-layer/recipes-qt/qt5/qtmultimedia/patch_mfw_v4lsrc.patch diff --git a/qt5-layer/recipes-qt/qt5/qtmultimedia/patch_mfw_v4lsrc.patch b/qt5-layer/recipes-qt/qt5/qtmultimedia/patch_mfw_v4lsrc.patch new file mode 100644 index 0000000..cb89e33 --- /dev/null +++ b/qt5-layer/recipes-qt/qt5/qtmultimedia/patch_mfw_v4lsrc.patch @@ -0,0 +1,26 @@ +diff --git a/src/plugins/gstreamer/camerabin/camerabinsession.cpp b/src/plugins/gstreamer/camerabin/camerabinsession.cpp +index ed7e7d4..61041ef 100644 +--- a/src/plugins/gstreamer/camerabin/camerabinsession.cpp ++++ b/src/plugins/gstreamer/camerabin/camerabinsession.cpp +@@ -514,7 +514,7 @@ GstElement *CameraBinSession::buildCameraSource() + } + + if (!m_videoSrc) +- m_videoSrc = gst_element_factory_make("v4l2src", "camera_source"); ++ m_videoSrc = gst_element_factory_make("mfw_v4lsrc", "camera_source"); + + g_object_set(G_OBJECT(m_cameraSrc), "video-source", m_videoSrc, NULL); + } +diff --git a/src/plugins/gstreamer/mediacapture/qgstreamerv4l2input.cpp b/src/plugins/gstreamer/mediacapture/qgstreamerv4l2input.cpp +index 600a492..46ca6d8 100644 +--- a/src/plugins/gstreamer/mediacapture/qgstreamerv4l2input.cpp ++++ b/src/plugins/gstreamer/mediacapture/qgstreamerv4l2input.cpp +@@ -59,7 +59,7 @@ QGstreamerV4L2Input::~QGstreamerV4L2Input() + + GstElement *QGstreamerV4L2Input::buildElement() + { +- GstElement *camera = gst_element_factory_make("v4l2src", "camera_source"); ++ GstElement *camera = gst_element_factory_make("mfw_v4lsrc", "camera_source"); + if (camera && !m_device.isEmpty() ) + g_object_set(G_OBJECT(camera), "device", m_device.constData(), NULL); + diff --git a/qt5-layer/recipes-qt/qt5/qtmultimedia_%.bbappend b/qt5-layer/recipes-qt/qt5/qtmultimedia_%.bbappend index 873862b..192402b 100644 --- a/qt5-layer/recipes-qt/qt5/qtmultimedia_%.bbappend +++ b/qt5-layer/recipes-qt/qt5/qtmultimedia_%.bbappend @@ -1,5 +1,6 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" -SRC_URI_append_mx6 += " file://add-imx6-support.patch" +SRC_URI_append_mx6 += " file://add-imx6-support.patch \ + file://patch_mfw_v4lsrc.patch" PACKAGE_ARCH_mx6 = "${MACHINE_SOCARCH}" -- 1.9.1
-- _______________________________________________ meta-freescale mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-freescale
