<div dir="ltr">On 4 June 2015 at 05:14, Yogesh Tyagi <span dir="ltr"><<a href="mailto:yogesh.bit2006@gmail.com" target="_blank">yogesh.bit2006@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><span style="font-size:12.8000001907349px">I am using yocto 1.6 and I have written a component and written bitbake recipe file for this component. When rootfs is created my library is found in "/lib" directory but I want it to be installed to "/lib/gstreamer-0.10" directory (which is already created by open source gstreamer packages).</span><br></div><div><span class=""><div style="font-size:12.8000001907349px"><br></div></span></div></div></blockquote><div><br></div><div>The path created by the GStreamer packages is /usr/lib/gstreamer-0.10, unless you've been changing $prefix.</div><div><br></div><div>Your Makefile.am should have something like this:</div><div><br></div><div># Plugins go in a subdirectory of libdir</div><div>plugindir=$(libdir)/gstreamer-0.10</div><div>plugin_LTLIBRARIES=<a href="http://libsomething.la">libsomething.la</a></div><div>libsomething_la_SOURCES = something.c</div><div># This is a module not a library, and don't version it</div><div>libsomething_la_LDFLAGS = -module -avoid-version</div><div><br></div><div>$(libdir) is turned into a real path by configure, and the autotools class will pass the correct path to use. Your recipe should then:</div><div><br></div><div>inherit autotools</div><div>FILES_${PN} = ${libdir}/gstreamer-0.10/*.so</div><div><br></div><div>At no point do you need to set libdir yourself, as the autotools class will pass the right value from your distro configuration to the configure script, which sets the right value in the Makefile.</div><div><br></div><div>Ross</div></div></div></div>