<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 01/30/2015 12:06 PM, Mario Rodriguez
wrote:<br>
</div>
<blockquote
cite="mid:43DB9D148EABB04CA5AA2ECC7E5E71E794BEF985@exc1.jambit.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<style>
<!--
@font-face
{font-family:Helvetica}
@font-face
{font-family:Helvetica}
@font-face
{font-family:Calibri}
@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"}
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"}
span.E-MailFormatvorlage17
{font-family:"Calibri","sans-serif";
color:windowtext}
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"}
span.apple-converted-space
{}
.MsoChpDefault
{font-family:"Calibri","sans-serif"}
@page WordSection1
{margin:70.85pt 70.85pt 2.0cm 70.85pt}
div.WordSection1
{}
-->
</style>
<div class="WordSection1">
<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
moz-do-not-send="true"
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 style="font-size:9.0pt;
font-family:"inherit","serif";
color:darkgray; border:none windowtext 1.0pt;
padding:0cm" lang="EN-US">Alma</span></i></strong><span
class="apple-converted-space"><span
style="font-family:"Helvetica","sans-serif";
color:darkgray" lang="EN-US"> </span></span><span
style="font-size:11.0pt;
font-family:"Helvetica","sans-serif";
color:darkgray"><a moz-do-not-send="true"
href="https://community.freescale.com/docs/DOC-101118#comment-14041"
id="comment-modDate-14041"><span style="font-size:9.0pt;
font-family:"inherit","serif";
color:darkgray; border:none windowtext 1.0pt;
padding:0cm" lang="EN-US">Oct 1, 2014 1:34 PM</span></a></span><span
class="apple-converted-space"><span
style="font-family:"Helvetica","sans-serif";
color:darkgray" lang="EN-US"> </span></span><span
style="font-size:11.0pt;
font-family:"Helvetica","sans-serif";
color:darkgray" lang="EN-US">(</span><span
style="font-size:11.0pt;
font-family:"Helvetica","sans-serif";
color:darkgray"><a moz-do-not-send="true"
href="https://community.freescale.com/docs/DOC-101118#comment-13965"
title="Go to message"><span style="font-size:9.0pt;
font-family:"inherit","serif";
color:darkgray; border:none windowtext 1.0pt;
padding:0cm" lang="EN-US">in response to Ramakanth</span></a></span><span
style="font-size:11.0pt;
font-family:"Helvetica","sans-serif";
color:darkgray" lang="EN-US">)</span></p>
<p style="margin:0cm; margin-bottom:.0001pt;
vertical-align:baseline; font-weight:inherit;
font-style:inherit">
<span style="font-size:10.0pt;
font-family:"inherit","serif";
color:#3D3D3D" lang="EN-US">Adding</span><span
class="apple-converted-space"><span style="font-size:10.0pt;
font-family:"inherit","serif";
color:#3D3D3D" lang="EN-US"> </span></span><strong><span
style="font-size:10.0pt;
font-family:"inherit","serif";
color:#3D3D3D; border:none windowtext 1.0pt; padding:0cm"
lang="EN-US">gstreamer1.0</span></strong><span
class="apple-converted-space"><span style="font-size:10.0pt;
font-family:"inherit","serif";
color:#3D3D3D" lang="EN-US"> </span></span><span
style="font-size:10.0pt;
font-family:"inherit","serif";
color:#3D3D3D" lang="EN-US">support break qtmultimedia
recipe. If you don't use</span><span
class="apple-converted-space"><span style="font-size:10.0pt;
font-family:"inherit","serif";
color:#3D3D3D" lang="EN-US"> </span></span><strong><span
style="font-size:10.0pt;
font-family:"inherit","serif";
color:#3D3D3D; border:none windowtext 1.0pt; padding:0cm"
lang="EN-US">gstreamer1.0</span></strong><span
class="apple-converted-space"><span style="font-size:10.0pt;
font-family:"inherit","serif";
color:#3D3D3D" lang="EN-US"> </span></span><span
style="font-size:10.0pt;
font-family:"inherit","serif";
color:#3D3D3D" lang="EN-US">you must replace your</span><span
class="apple-converted-space"><span style="font-size:10.0pt;
font-family:"inherit","serif";
color:#3D3D3D" lang="EN-US"> </span></span><strong><span
style="font-size:10.0pt;
font-family:"inherit","serif";
color:#3D3D3D; border:none windowtext 1.0pt; padding:0cm"
lang="EN-US">meta-qt5/recipes-qt/qt5/qtmultimedia.inc</span></strong><span
class="apple-converted-space"><span style="font-size:10.0pt;
font-family:"inherit","serif";
color:#3D3D3D" lang="EN-US"> </span></span><span
style="font-size:10.0pt;
font-family:"inherit","serif";
color:#3D3D3D" lang="EN-US">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 style="font-size:10.0pt;
font-family:"inherit","serif";
color:#3D3D3D" lang="EN-US"> </span></p>
<p style="margin:0cm; margin-bottom:.0001pt;
vertical-align:baseline; font-weight:inherit;
font-style:inherit">
<span style="font-size:10.0pt;
font-family:"inherit","serif";
color:#3D3D3D" lang="EN-US">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 style="font-size:10.0pt;
font-family:"inherit","serif";
color:#3D3D3D" lang="EN-US"> </span></p>
<p style="margin:0cm; margin-bottom:.0001pt;
vertical-align:baseline; font-weight:inherit;
font-style:inherit">
<span style="font-size:10.0pt;
font-family:"inherit","serif";
color:#3D3D3D" lang="EN-US">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 style="font-size:10.0pt;
font-family:"inherit","serif";
color:#3D3D3D" lang="EN-US"> </span></p>
<p style="margin:0cm; margin-bottom:.0001pt;
vertical-align:baseline; font-weight:inherit;
font-style:inherit">
<span style="font-size:10.0pt;
font-family:"inherit","serif";
color:#3D3D3D" lang="EN-US">PACKAGECONFIG ??= ""</span></p>
<p style="margin:0cm; margin-bottom:.0001pt;
vertical-align:baseline; font-weight:inherit;
font-style:inherit">
<span style="font-size:10.0pt;
font-family:"inherit","serif";
color:#3D3D3D" lang="EN-US">PACKAGECONFIG[openal] =
",,openal-soft"</span></p>
<p style="margin:0cm; margin-bottom:.0001pt;
vertical-align:baseline; font-weight:inherit;
font-style:inherit">
<span style="font-size:10.0pt;
font-family:"inherit","serif";
color:#3D3D3D" lang="EN-US">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 style="font-size:10.0pt;
font-family:"inherit","serif";
color:#3D3D3D" lang="EN-US"> </span></p>
<p style="margin:0cm; margin-bottom:.0001pt;
vertical-align:baseline; font-weight:inherit;
font-style:inherit">
<span style="font-size:10.0pt;
font-family:"inherit","serif";
color:#3D3D3D" lang="EN-US">do_configure_prepend() { </span></p>
<p style="margin:0cm; margin-bottom:.0001pt;
vertical-align:baseline; font-weight:inherit;
font-style:inherit">
<span style="font-size:10.0pt;
font-family:"inherit","serif";
color:#3D3D3D" lang="EN-US"># 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 style="font-size:10.0pt;
font-family:"inherit","serif";
color:#3D3D3D" lang="EN-US">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 style="font-size:10.0pt;
font-family:"inherit","serif";
color:#3D3D3D" lang="EN-US"># 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 style="font-size:10.0pt;
font-family:"inherit","serif";
color:#3D3D3D" lang="EN-US">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 style="font-size:10.0pt;
font-family:"inherit","serif";
color:#3D3D3D" lang="EN-US">}</span></p>
<p style="margin:0cm; margin-bottom:.0001pt;
vertical-align:baseline; font-weight:inherit;
font-style:inherit; min-height:8pt">
<span style="font-size:10.0pt;
font-family:"inherit","serif";
color:#3D3D3D" lang="EN-US"> </span></p>
<p style="margin:0cm; margin-bottom:.0001pt;
vertical-align:baseline; font-weight:inherit;
font-style:inherit">
<span style="font-size:10.0pt;
font-family:"inherit","serif";
color:#3D3D3D" lang="EN-US">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 style="font-size:10.0pt;
font-family:"inherit","serif";
color:#3D3D3D" lang="EN-US">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 style="font-size:10.0pt;
font-family:"inherit","serif";
color:#3D3D3D" lang="EN-US"> </span></p>
<p style="margin:0cm; margin-bottom:.0001pt;
vertical-align:baseline; font-weight:inherit;
font-style:inherit">
<span style="font-size:10.0pt;
font-family:"inherit","serif";
color:#3D3D3D" lang="EN-US"># 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 style="font-size:10.0pt;
font-family:"inherit","serif";
color:#3D3D3D" lang="EN-US">LIC_FILES_CHKSUM =
"<a class="moz-txt-link-freetext" 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 style="font-size:10.0pt;
font-family:"inherit","serif";
color:#3D3D3D" lang="EN-US">
<a class="moz-txt-link-freetext" 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 style="font-size:10.0pt;
font-family:"inherit","serif";
color:#3D3D3D" lang="EN-US">
<a class="moz-txt-link-freetext" 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 style="font-size:10.0pt;
font-family:"inherit","serif";
color:#3D3D3D" lang="EN-US">
<a class="moz-txt-link-freetext" 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><br>
</p>
</div>
</blockquote>
<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 ;)<br>
</body>
</html>