[yocto] executable depends on the library that is built in the same recipe

Jeremy A. Puhlman jpuhlman at mvista.com
Mon Dec 11 11:54:17 PST 2017


Given it is looking for libMyTool.so and not a versioned library, my 
guess is that the shared
library is not setting a proper soname when being built. All libraries 
should be built with a soname,
and if done correctly should be versioned.  The .so file generally 
shouldn't be the runtime library
but a link back to the versioned library, so you get something that 
looks like:

/usr/lib/libz.so -> libz.zo.1.2.11
/usr/lib/libz.so.1.2.11
/usr/lib/libz.so.1 -> libz.so.1


On 12/11/2017 11:45 AM, Rail Shafigulin wrote:
> I have a recipe that builds a library and an executable. Executable
> depends on the library which built int he same recipe. When I run
> bitbake I get the following error:
>
> WARNING: mytool-1.0+gitAUTOINC+3e2b76e330-r0 do_package_qa: QA Issue:
> /bin/mytool contained in package mytool requires libMyTool.so, but no
> providers found in RDEPENDS_mytool? [file-rdeps]
>
> I tried the suggestion given by the bitbake putting mytool in
> REDEPNDS_${PN}, but that didn't work. I also tried looking online for
> the solution but didn't find one.
>
> Can someone help out?
>
>

-- 
Jeremy A. Puhlman
jpuhlman at mvista.com




More information about the yocto mailing list