Re: Can't add shared libraries into final image

Nicolas Dechesne <nicolas.dechesne@...>

On Tue, Jul 1, 2014 at 5:24 PM, Pierre Yves MORDRET
<pierre-yves.mordret@...> wrote:
I'm in front of an issue that I really don't understand. I wrote a quite simple recipe to integrate an RPM package.
At the end of compilation/install/packaging/rootfs, I saw my shared libraries were not part of the final image.
I understood quickly after checking FILES_${PN}-dev. Since my shared libraries are .so (and not .so.X) , all of them fall into -dev package.

Thus I naively add FILES_${PN} + =" ${libdir}/lib*.so " into my recipe ... I was sure this would solve my issue, but don't .
Instead my shared libraries still remain in -dev package.

Does anyone can't tell me why ? or point me out my mistake ?
The -dev package is processed first during the packaging, so even
though you try to add the .so in the main package, the files will be
packaged in -dev first. you need to make sure that the .so are not
pulled into the -dev package:

FILES_${PN} += "${libdir}/*.so"

Join { to automatically receive all group messages.