0
votes

I need to use an external Shared library (Built outside Yocto) in my application built with Yocto.

When I set

RDEPENDS_app = "${RECIPE_SYSROOT}/usr/lib/libFile.so" 

It fail with following error :

NOTE: Runtime target '../tmp/work/aarch64-poky-linux/app/recipe-sysroot/usr/lib/libFile.so' is unbuildable, removing... Missing or unbuildable dependency chain was: ['./tmp/work/aarch64-poky-linux/app/recipe-sysroot/usr/lib/libFile.so']

How can I use a shared library that Yocto doesn't control in a recipe?

Thanks

1
you need to write a recipe that deploys that library, otherwise it cannot be a runtime dependency as it is not going to be part of the image. - Oleksandr Kravchuk
I already create a recipe for it and in do_install () { install -m 0755 ${WORKDIR}/git/libFile.so ${D}/${libdir} } but no luck ! - craken

1 Answers

0
votes

Problem resolved using :

1 - Create a recipe and prepare the lib to be packaged.

2 - Use the recipe name in the RDEPENDS