<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style>
<!--
@font-face
{font-family:Helvetica}
@font-face
{font-family:Helvetica}
@font-face
{font-family:Calibri}
@font-face
{font-family:Tahoma}
@font-face
{font-family:inherit}
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
color:black}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline}
p
{margin-right:0cm;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman","serif";
color:black}
p.jive-comment-meta, li.jive-comment-meta, div.jive-comment-meta
{margin-right:0cm;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman","serif";
color:black}
p.msochpdefault, li.msochpdefault, div.msochpdefault
{margin-right:0cm;
margin-left:0cm;
font-size:12.0pt;
font-family:"Calibri","sans-serif";
color:black}
span.e-mailformatvorlage17
{font-family:"Calibri","sans-serif";
color:windowtext}
span.apple-converted-space
{}
span.E-MailFormatvorlage23
{font-family:"Calibri","sans-serif";
color:#1F497D}
.MsoChpDefault
{font-size:10.0pt}
@page WordSection1
{margin:70.85pt 70.85pt 2.0cm 70.85pt}
div.WordSection1
{}
-->
</style>
</head>
<body bgcolor="white" lang="DE" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Thanks for the answer Carlos.</span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">At the end what I did was to remove the
</span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">PACKAGECONFIG_append_pn-qtmultimedia = " gstreamer010 "</span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">On my local.conf file.</span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Qtmultimedia now compiled without problems. (I still have to see if it works)</span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">I think the problem on the original qtmultimedia.inc dizzy recipe is that if I configure to use gstreamer 0.1 then the recipe still patches qtmultimedia with a 1.0 gstreamer patch.</span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">SRC_URI += "\</span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"> <a href="file:///\\0001-Initial-porting-effort-to-GStreamer-1.0.patch">
file://0001-Initial-porting-effort-to-GStreamer-1.0.patch</a> \</span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"> <a href="file:///\\0002-qtmultimedia.pro-Respect-OE_GSTREAMER_ENABLED-OE_GST.patch">
file://0002-qtmultimedia.pro-Respect-OE_GSTREAMER_ENABLED-OE_GST.patch</a> \</span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">"</span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Regards,</span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Mario</span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span></p>
<div>
<div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:10.0pt; font-family:"Tahoma","sans-serif"; color:windowtext">Von:</span></b><span style="font-size:10.0pt; font-family:"Tahoma","sans-serif"; color:windowtext"> meta-freescale-bounces@yoctoproject.org [mailto:meta-freescale-bounces@yoctoproject.org]
<b>Im Auftrag von </b>Carlos Rafael Giani<br>
<b>Gesendet:</b> Freitag, 30. Januar 2015 12:21<br>
<b>An:</b> meta-freescale@yoctoproject.org<br>
<b>Betreff:</b> Re: [meta-freescale] qt5 qtmultimedia gstreamer1.0 on i.mx6 with Dizzy branch</span></p>
</div>
</div>
<p class="MsoNormal"> </p>
<div>
<p class="MsoNormal">On 01/30/2015 12:06 PM, Mario Rodriguez wrote:</p>
</div>
<blockquote style="margin-top:5.0pt; margin-bottom:5.0pt">
<div>
<p class="MsoNormal">Hello everyone,</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><span lang="EN-US">I recently got the dizzy branch and tried to do an image (fs-image-multimedia-full). I added the qt5-meta layer. What I saw was the following error while compiling qtmultimedia:</span></p>
<p class="MsoNormal"><span lang="EN-US">| /opt/yocto-freescale/mx6sabrelite/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/qtmultimedia/5.3.2-r0/qtmultimedia-opensource-src-5.3.2/src/gsttools/gstvideoconnector.c:467:32: error: 'GST_PAD_PROBE_DROP' undeclared
(first use in this function)</span></p>
<p class="MsoNormal"><span lang="EN-US">| return element->relinked ? GST_PAD_PROBE_DROP : GST_PAD_PROBE_OK;</span></p>
<p class="MsoNormal"><span lang="EN-US">| ^</span></p>
<p class="MsoNormal"><span lang="EN-US">| /opt/yocto-freescale/mx6sabrelite/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/qtmultimedia/5.3.2-r0/qtmultimedia-opensource-src-5.3.2/src/gsttools/gstvideoconnector.c:467:32: note: each undeclared identifier is
reported only once for each function it appears in</span></p>
<p class="MsoNormal"><span lang="EN-US">| /opt/yocto-freescale/mx6sabrelite/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/qtmultimedia/5.3.2-r0/qtmultimedia-opensource-src-5.3.2/src/gsttools/gstvideoconnector.c:467:53: error: 'GST_PAD_PROBE_OK' undeclared
(first use in this function)</span></p>
<p class="MsoNormal"><span lang="EN-US">| return element->relinked ? GST_PAD_PROBE_DROP : GST_PAD_PROBE_OK;</span></p>
<p class="MsoNormal"><span lang="EN-US">| ^</span></p>
<p class="MsoNormal"><span lang="EN-US">| /opt/yocto-freescale/mx6sabrelite/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/qtmultimedia/5.3.2-r0/qtmultimedia-opensource-src-5.3.2/src/gsttools/gstvideoconnector.c: In function 'gst_video_connector_handle_sink_event':</span></p>
<p class="MsoNormal"><span lang="EN-US">| /opt/yocto-freescale/mx6sabrelite/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/qtmultimedia/5.3.2-r0/qtmultimedia-opensource-src-5.3.2/src/gsttools/gstvideoconnector.c:623:11: error: 'parent' undeclared (first use
in this function)</span></p>
<p class="MsoNormal"><span lang="EN-US">| (void)parent;</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">I looks like the qtmultimedia tries to use gstreamer1.0 but it shouldn’t</span></p>
<p class="MsoNormal"><span lang="EN-US">I have on my local.conf file</span></p>
<p class="MsoNormal"><span lang="EN-US">PACKAGECONFIG_append_pn-qtmultimedia = " gstreamer010 "</span></p>
<p class="MsoNormal"><span lang="EN-US">What I did in the end was following the instructions on this page:</span></p>
<p class="MsoNormal"><span lang="EN-US"><a href="https://community.freescale.com/docs/DOC-101118">https://community.freescale.com/docs/DOC-101118</a></span></p>
<p class="MsoNormal"><span lang="EN-US">-----------------------------------------------------QUOTE--------------------------------------------------------------------</span></p>
<p class="jive-comment-meta" style="margin:0cm; margin-bottom:.0001pt; vertical-align:baseline">
<strong><i><span lang="EN-US" style="font-size:9.0pt; font-family:"inherit","serif"; color:darkgray; border:none windowtext 1.0pt; padding:0cm">Alma</span></i></strong><span class="apple-converted-space"><span lang="EN-US" style="font-family:"Helvetica","sans-serif"; color:darkgray"> </span></span><span style="font-size:11.0pt; font-family:"Helvetica","sans-serif"; color:darkgray"><a href="https://community.freescale.com/docs/DOC-101118#comment-14041" id="comment-modDate-14041"><span lang="EN-US" style="font-size:9.0pt; font-family:"inherit","serif"; color:darkgray; border:none windowtext 1.0pt; padding:0cm">Oct
1, 2014 1:34 PM</span></a></span><span class="apple-converted-space"><span lang="EN-US" style="font-family:"Helvetica","sans-serif"; color:darkgray"> </span></span><span lang="EN-US" style="font-size:11.0pt; font-family:"Helvetica","sans-serif"; color:darkgray">(</span><span style="font-size:11.0pt; font-family:"Helvetica","sans-serif"; color:darkgray"><a href="https://community.freescale.com/docs/DOC-101118#comment-13965" title="Go to message"><span lang="EN-US" style="font-size:9.0pt; font-family:"inherit","serif"; color:darkgray; border:none windowtext 1.0pt; padding:0cm">in
response to Ramakanth</span></a></span><span lang="EN-US" style="font-size:11.0pt; font-family:"Helvetica","sans-serif"; color:darkgray">)</span></p>
<p style="margin:0cm; margin-bottom:.0001pt; vertical-align:baseline; font-weight:inherit; font-style:inherit">
<span lang="EN-US" style="font-size:10.0pt; font-family:"inherit","serif"; color:#3D3D3D">Adding<span class="apple-converted-space"> </span><strong><span style="font-family:"inherit","serif"; border:none windowtext 1.0pt; padding:0cm">gstreamer1.0</span></strong><span class="apple-converted-space"> </span>support
break qtmultimedia recipe. If you don't use<span class="apple-converted-space"> </span><strong><span style="font-family:"inherit","serif"; border:none windowtext 1.0pt; padding:0cm">gstreamer1.0</span></strong><span class="apple-converted-space"> </span>you
must replace your<span class="apple-converted-space"> </span><strong><span style="font-family:"inherit","serif"; border:none windowtext 1.0pt; padding:0cm">meta-qt5/recipes-qt/qt5/qtmultimedia.inc</span></strong><span class="apple-converted-space"> </span>by
this code (and rebuild)</span></p>
<p style="margin:0cm; margin-bottom:.0001pt; vertical-align:baseline; font-weight:inherit; font-style:inherit; min-height:8pt">
<span lang="EN-US" style="font-size:10.0pt; font-family:"inherit","serif"; color:#3D3D3D"> </span></p>
<p style="margin:0cm; margin-bottom:.0001pt; vertical-align:baseline; font-weight:inherit; font-style:inherit">
<span lang="EN-US" style="font-size:10.0pt; font-family:"inherit","serif"; color:#3D3D3D">require qt5.inc</span></p>
<p style="margin:0cm; margin-bottom:.0001pt; vertical-align:baseline; font-weight:inherit; font-style:inherit; min-height:8pt">
<span lang="EN-US" style="font-size:10.0pt; font-family:"inherit","serif"; color:#3D3D3D"> </span></p>
<p style="margin:0cm; margin-bottom:.0001pt; vertical-align:baseline; font-weight:inherit; font-style:inherit">
<span lang="EN-US" style="font-size:10.0pt; font-family:"inherit","serif"; color:#3D3D3D">DEPENDS += "qtdeclarative alsa-lib"</span></p>
<p style="margin:0cm; margin-bottom:.0001pt; vertical-align:baseline; font-weight:inherit; font-style:inherit; min-height:8pt">
<span lang="EN-US" style="font-size:10.0pt; font-family:"inherit","serif"; color:#3D3D3D"> </span></p>
<p style="margin:0cm; margin-bottom:.0001pt; vertical-align:baseline; font-weight:inherit; font-style:inherit">
<span lang="EN-US" style="font-size:10.0pt; font-family:"inherit","serif"; color:#3D3D3D">PACKAGECONFIG ??= ""</span></p>
<p style="margin:0cm; margin-bottom:.0001pt; vertical-align:baseline; font-weight:inherit; font-style:inherit">
<span lang="EN-US" style="font-size:10.0pt; font-family:"inherit","serif"; color:#3D3D3D">PACKAGECONFIG[openal] = ",,openal-soft"</span></p>
<p style="margin:0cm; margin-bottom:.0001pt; vertical-align:baseline; font-weight:inherit; font-style:inherit">
<span lang="EN-US" style="font-size:10.0pt; font-family:"inherit","serif"; color:#3D3D3D">PACKAGECONFIG[gstreamer010] = ",,gstreamer gst-plugins-base"</span></p>
<p style="margin:0cm; margin-bottom:.0001pt; vertical-align:baseline; font-weight:inherit; font-style:inherit; min-height:8pt">
<span lang="EN-US" style="font-size:10.0pt; font-family:"inherit","serif"; color:#3D3D3D"> </span></p>
<p style="margin:0cm; margin-bottom:.0001pt; vertical-align:baseline; font-weight:inherit; font-style:inherit">
<span lang="EN-US" style="font-size:10.0pt; font-family:"inherit","serif"; color:#3D3D3D">do_configure_prepend() { </span></p>
<p style="margin:0cm; margin-bottom:.0001pt; vertical-align:baseline; font-weight:inherit; font-style:inherit">
<span lang="EN-US" style="font-size:10.0pt; font-family:"inherit","serif"; color:#3D3D3D"># disable openal test if it isn't enabled by PACKAGECONFIG </span></p>
<p style="margin:0cm; margin-bottom:.0001pt; vertical-align:baseline; font-weight:inherit; font-style:inherit">
<span lang="EN-US" style="font-size:10.0pt; font-family:"inherit","serif"; color:#3D3D3D">sed -i 's/^qtCompileTest(openal)/OE_OPENAL_ENABLED:qtCompileTest(openal)/g' ${S}/qtmultimedia.pro </span></p>
<p style="margin:0cm; margin-bottom:.0001pt; vertical-align:baseline; font-weight:inherit; font-style:inherit">
<span lang="EN-US" style="font-size:10.0pt; font-family:"inherit","serif"; color:#3D3D3D"># disable gstreamer-0.10 test if it isn't enabled by PACKAGECONFIG </span></p>
<p style="margin:0cm; margin-bottom:.0001pt; vertical-align:baseline; font-weight:inherit; font-style:inherit">
<span lang="EN-US" style="font-size:10.0pt; font-family:"inherit","serif"; color:#3D3D3D">sed -i 's/^\( *\)qtCompileTest(gstreamer) {/\1OE_GSTREAMER010_ENABLED:qtCompileTest(gstreamer) {/g' ${S}/qtmultimedia.pro </span></p>
<p style="margin:0cm; margin-bottom:.0001pt; vertical-align:baseline; font-weight:inherit; font-style:inherit">
<span lang="EN-US" style="font-size:10.0pt; font-family:"inherit","serif"; color:#3D3D3D">}</span></p>
<p style="margin:0cm; margin-bottom:.0001pt; vertical-align:baseline; font-weight:inherit; font-style:inherit; min-height:8pt">
<span lang="EN-US" style="font-size:10.0pt; font-family:"inherit","serif"; color:#3D3D3D"> </span></p>
<p style="margin:0cm; margin-bottom:.0001pt; vertical-align:baseline; font-weight:inherit; font-style:inherit">
<span lang="EN-US" style="font-size:10.0pt; font-family:"inherit","serif"; color:#3D3D3D">EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'openal', 'CONFIG+=OE_OPENAL_ENABLED', '', d)}"</span></p>
<p style="margin:0cm; margin-bottom:.0001pt; vertical-align:baseline; font-weight:inherit; font-style:inherit">
<span lang="EN-US" style="font-size:10.0pt; font-family:"inherit","serif"; color:#3D3D3D">EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'gstreamer010', 'CONFIG+=OE_GSTREAMER010_ENABLED', '', d)}"</span></p>
<p style="margin:0cm; margin-bottom:.0001pt; vertical-align:baseline; font-weight:inherit; font-style:inherit; min-height:8pt">
<span lang="EN-US" style="font-size:10.0pt; font-family:"inherit","serif"; color:#3D3D3D"> </span></p>
<p style="margin:0cm; margin-bottom:.0001pt; vertical-align:baseline; font-weight:inherit; font-style:inherit">
<span lang="EN-US" style="font-size:10.0pt; font-family:"inherit","serif"; color:#3D3D3D"># older copyright year than what e.g. qtbase is using now</span></p>
<p style="margin:0cm; margin-bottom:.0001pt; vertical-align:baseline; font-weight:inherit; font-style:inherit">
<span lang="EN-US" style="font-size:10.0pt; font-family:"inherit","serif"; color:#3D3D3D">LIC_FILES_CHKSUM = "<a href="file:///\\LICENSE.LGPL;md5=4193e7f1d47a858f6b7c0f1ee66161de">file://LICENSE.LGPL;md5=4193e7f1d47a858f6b7c0f1ee66161de</a> \</span></p>
<p style="margin:0cm; margin-bottom:.0001pt; vertical-align:baseline; font-weight:inherit; font-style:inherit">
<span lang="EN-US" style="font-size:10.0pt; font-family:"inherit","serif"; color:#3D3D3D">
<a href="file:///\\LICENSE.GPL;md5=d32239bcb673463ab874e80d47fae504">file://LICENSE.GPL;md5=d32239bcb673463ab874e80d47fae504</a> \</span></p>
<p style="margin:0cm; margin-bottom:.0001pt; vertical-align:baseline; font-weight:inherit; font-style:inherit">
<span lang="EN-US" style="font-size:10.0pt; font-family:"inherit","serif"; color:#3D3D3D">
<a href="file:///\\LGPL_EXCEPTION.txt;md5=0145c4d1b6f96a661c2c139dfb268fb6">file://LGPL_EXCEPTION.txt;md5=0145c4d1b6f96a661c2c139dfb268fb6</a> \</span></p>
<p style="margin:0cm; margin-bottom:.0001pt; vertical-align:baseline; font-weight:inherit; font-style:inherit">
<span lang="EN-US" style="font-size:10.0pt; font-family:"inherit","serif"; color:#3D3D3D">
<a href="file:///\\LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e">file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e</a>"</span></p>
<p class="MsoNormal"><span lang="EN-US">--------------------------------------------------------END QUOTE------------------------------------------------------------</span></p>
<p class="MsoNormal"><span lang="EN-US">Is that “the right” thing to do? Or this will cause me some problems later?</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">Regards,</span></p>
<p class="MsoNormal"><span lang="EN-US">Mario</span></p>
</div>
</blockquote>
<p class="MsoNormal"><span style="font-size:12.0pt; font-family:"Times New Roman","serif""><br>
Better don't. The current .inc file looks quite different. You might inadvertently replace new code with old one if you do this.<br>
<br>
I'd rather try to copy & paste the do_configure_prepend() block into the existing qtmultimedia.inc (unless that block makes no sense anymore). Also, "gstreamer1.0" should be added to the DEPENDS list unless GStreamer 0.10 is built. So, perhaps the gstreamer010
packageconfig line line should be replaced by this:<br>
<br>
DEPENDS += "${@bb.utils.contains('PACKAGECONFIG', 'gstreamer010', 'gstreamer gst-plugins-base', 'gstreamer1.0 gstreamer1.0-plugins-base', d)}<br>
<br>
Also, note that I use bb.utils.contains instead of base_contains. The latter is preferred, and keeps Otavio happy ;)</span></p>
</div>
<hr>
<font face="calibri" color="Gray" size="2"><br>
Mario Rodriguez M.Sc., Software Architect<br>
Phone: +49 89 45 23 47 - 297<br>
<br>
<br>
jambit GmbH<br>
Erika-Mann-Str. 63, 80636 München<br>
Phone: +49 89 45 23 47 - 0, Fax: +49 89 45 23 47 - 70<br>
<br>
http://www.jambit.com where innovation works<br>
<br>
Geschäftsführer: Peter F. Fellinger, Markus Hartinger<br>
Sitz: München; Registergericht: München, HRB 129139<br>
</font>
</body>
</html>