<div dir="ltr"><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jun 2, 2014 at 1:58 PM, Alex J Lennon <span dir="ltr"><<a href="mailto:ajlennon@dynamicdevices.co.uk" target="_blank">ajlennon@dynamicdevices.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="">libmmal_vc_client.so makes use of __attribute__(constructor) to ensure that supplier components (e.g. camera) are loaded when the static library is loaded.<br>
</div></blockquote><div><br></div><div>There shouldn't be more than 78 characters per line. I did this change for this patch (the other you already submited). More info:<br></div><div><a href="http://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines">http://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines</a><br>
</div><div>Â </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="">
<br>
raspivid, and possibly other applications, link against libmmal_vc_client.so, causing the ctor to execute, but there is no needed dependency.<br>
<br>
</div>Some build environments (e.g. Yocto/OpenEmbedded) pass the '--no-as-needed' linker flag which removes the dependency on libmmal_vc_client and thus components are not registered.<br>
<div class=""><br>
In this situation raspivid then gives an error of the form<br>
<br>
 root@raspberrypi:~# raspivid -o test<br>
 mmal: mmal_component_create_core: could not find component 'vc.ril.camera'<br>
 mmal: Failed to create camera component<br>
 mmal: main: Failed to create camera component<br>
 mmal: Failed to run camera app. Please check for firmware updates<br>
<br>
For further details see: <a href="https://lists.yoctoproject.org/pipermail/yocto/2014-June/019933.html" target="_blank">https://lists.yoctoproject.org/pipermail/yocto/2014-June/019933.html</a><br>
<br>
</div>Change-Id: I9d787fd83379e8b6428dde3827395c8b96be1f7f<br>
<div class="">Signed-off-by: Alex J Lennon <<a href="mailto:ajlennon@dynamicdevices.co.uk">ajlennon@dynamicdevices.co.uk</a>><br>
---<br>
</div>Â recipes-graphics/userland/<a href="http://userland_git.bb" target="_blank">userland_git.bb</a> | 2 +-<br>
 1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/recipes-graphics/userland/<a href="http://userland_git.bb" target="_blank">userland_git.bb</a> b/recipes-graphics/userland/<a href="http://userland_git.bb" target="_blank">userland_git.bb</a><br>
index a348090..4b405ee 100644<br>
--- a/recipes-graphics/userland/<a href="http://userland_git.bb" target="_blank">userland_git.bb</a><br>
+++ b/recipes-graphics/userland/<a href="http://userland_git.bb" target="_blank">userland_git.bb</a><br>
@@ -18,7 +18,7 @@ S = "${WORKDIR}/git"<br>
<div class=""><div class="h5"><br>
 inherit cmake<br>
<br>
-EXTRA_OECMAKE = "-DCMAKE_BUILD_TYPE=Release"<br>
+EXTRA_OECMAKE = "-DCMAKE_BUILD_TYPE=Release -DCMAKE_EXE_LINKER_FLAGS='-Wl,--no-as-needed'"<br>
<br>
 # The compiled binaries don't provide sonames.<br>
 SOLIBS = "${SOLIBSDEV}"<br>
</div></div><span class=""><font color="#888888">--<br>
2.0.0<br>
<br>
</font></span></blockquote></div><div class="gmail_extra"><br></div>Thanks a lot. Merged.<br clear="all"><div><br></div>-- <br><div dir="ltr"><div style="text-align:center"></div><div style="text-align:center"><div align="left" style="font-family:'Times New Roman';font-size:medium">
<b style="color:rgb(51,51,51);font-family:Arial;font-size:small;text-align:center">Andrei Gherzan</b><font face="Arial" color="#333333" size="-1"><br></font><font face="Arial" color="#333333" size="-1">m: +40.744.478.414 | Â f: +40.31.816.28.12</font><br>
</div></div></div>
</div></div>