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

Sridhar Pitchai sridhar.pitchai at outlook.com
Thu Feb 11 22:10:56 PST 2016


Hi,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. 
how to enforce protobuf-c-native is installed in the this recipe ? 
SECTION = "SWOS"PRIORITY = "optional"LICENSE = "CLOSED"
PROVIDES = "swos-app"
PR = "r0"DEPENDS = " protobuf-c-native libev protobuf-c protobuf zeromq "
FILESEXTRAPATHS_prepend = "${THISDIR}:"SRC_URI = "file://${PV}/swos.tar.gz"
inherit cmake pkgconfigS = "${WORKDIR}/swos"
FILES_${PN} = "${libdir}/*.so"FILES_${PN} += "${bindir}/*"
do_autogen () {    ${STAGING_BINDIR_NATIVE}/protoc-c --proto_path=${S}/common/pbuf --c_out=${S}/common/pbuf/autogen-c ${S}/common/pbuf/*.proto}
addtask do_autogen after do_configure before do_compile

thanks,Sridhar Pitchai 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20160211/5192bb19/attachment.html>


More information about the yocto mailing list