[yocto] native tool is not installed before it is used

Burton, Ross ross.burton at intel.com
Fri Feb 12 02:35:10 PST 2016


On 12 February 2016 at 06:10, Sridhar Pitchai <sridhar.pitchai at outlook.com>
wrote:

> I have a recipe, where It need protobuf-c-compiler (natvily) to auto
> generate files before it can be compiled. i have added protobuf-c-native in
> the DEPENDS list. but the compilation is failling at do_autogen, compiling
> the proto-c is not installed in staging_bindir_native.
> But if  bitbake protobuf-c-native manually and then bitbake the recipe it
> is working fine.
>

That's because DEPENDS = "foo" actually means do_configure[depends] =
"foo".  This is so that packages can fetch/unpack/patch whilst their build
dependencies are being built.

Instead of adding a new task to run autogen which will run *before*
configure and therefore before your dependencies have been build, simply
do_configure_prepend() if the operations need to happen before cmake runs.

Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20160212/c045a695/attachment.html>


More information about the yocto mailing list