<div dir="ltr">Hello,<div><br></div><div>I'm attempting to create a recipe for the <a href="https://lists.yoctoproject.org/pipermail/yocto/" target="_blank">Cap'n Proto serialization protocol</a>, but am still a beginner at Yocto.</div><div>The only link I have found regarding the subject (so far) is this <a href="https://groups.google.com/forum/#!msg/capnproto/ZfHEXEVb7KM/hyOOlAKQAF0J" target="_blank">google group</a>.</div><div><br></div><div>I created a standard recipe, linked to the source <a href="https://capnproto.org/capnproto-c++-$%7BPV%7D.tar.gz" target="_blank">https://capnproto.org/capnproto-c++-${PV}.tar.gz</a></div><div><br></div><div>Based on the information from the google group link above, I changed the do_configure:</div><div><br></div><div><div>do_configure() {</div><div>  Â  export CAPNP=/usr/local/bin/capnp</div><div>  Â  ${S}/configure --with-external-capnp -build=x86_64-linux --host=arm-poky-linux-gnueabi --target=arm-poky-linux-gnueabi</div><div>}</div></div><div><br></div><div>From what I understand, the reason is that I need an installed version of Cap'n Proto on my Linux host in order to cross compile for ARM</div><div><br></div><div>Because external library files are used, I also added the lines:</div><div><br></div><div><div>INSANE_SKIP_${PN} += "install-host-path"</div><div>INSANE_SKIP_${PN} += "installed-vs-shipped"</div></div><div><br></div><div>Running <i>bitbake capnproto</i> works, but when I add the line:</div><div><br></div><div>IMAGE_INSTALL_append = " capnproto"<br></div><div><br></div><div>and try to run<i> bitbake core-image-base </i>I get the following error from the do_rootfs log:</div><div><br></div><div><div><div>DEBUG: Executing python function rootfs_process_ignore</div><div>DEBUG: Python function rootfs_process_ignore finished</div><div>DEBUG: Executing python function rootfs_runtime_mapping</div><div>DEBUG: Python function rootfs_runtime_mapping finished</div><div>DEBUG: Executing python function do_rootfs</div><div>NOTE: configuring RPM platform settings</div><div>NOTE: configuring RPM system provides</div><div>NOTE: configuring RPM DB settings</div><div>NOTE: configuring Smart settings</div><div>NOTE: Note: adding Smart channel nitrogen6sx (105)</div><div>NOTE: Note: adding Smart channel cortexa9hf_vfp_neon_mx6sx (100)</div><div>NOTE: Note: adding Smart channel cortexa9hf_vfp_neon (95)</div><div>NOTE: Note: adding Smart channel all (90)</div><div>NOTE: adding Smart RPM DB channel</div><div>NOTE: Note: configuring RPM cross-install scriptlet_wrapper</div><div>NOTE: ###### Generate rootfs #######</div><div>NOTE: Executing '/home/finn/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/bin/createrepo --dbpath /home/finn/yocto/poky/build/tmp/work/nitrogen6sx-poky-linux-gnueabi/core-image-base/1.0-r0/rpmdb/cortexa9hf_vfp_neon_mx6sx --update -q /home/finn/yocto/poky/build/tmp/deploy/rpm/cortexa9hf_vfp_neon_mx6sx' ...</div><div>NOTE: Executing '/home/finn/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/bin/createrepo --dbpath /home/finn/yocto/poky/build/tmp/work/nitrogen6sx-poky-linux-gnueabi/core-image-base/1.0-r0/rpmdb/cortexa9hf_vfp_neon --update -q /home/finn/yocto/poky/build/tmp/deploy/rpm/cortexa9hf_vfp_neon' ...</div><div>NOTE: Executing '/home/finn/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/bin/createrepo --dbpath /home/finn/yocto/poky/build/tmp/work/nitrogen6sx-poky-linux-gnueabi/core-image-base/1.0-r0/rpmdb/nitrogen6sx --update -q /home/finn/yocto/poky/build/tmp/deploy/rpm/nitrogen6sx' ...</div><div>NOTE: Installing the following packages: capnproto psplash packagegroup-base-extended run-postinsts packagegroup-core-boot locale-base-en-us locale-base-en-gb</div></div><div>alsa-conf-1.0.28-r0@cortexa9hf_vfp_neon_mx6sx alsa-conf-base-1.0.28-r0@cortexa9hf_vfp_neon_mx6sx alsa-lib-1.0.28-r0@cortexa9h .........</div><div>DEBUG: Python function do_rootfs finished</div><div>ERROR: Function failed: do_rootfs</div></div><div><br></div><div>I noticed that I have the cross compiled version of capnproto (capnp) in the images folder in my work directory, but the packages-split/capnproto directory is empy.</div><div><br></div><div>Thanks for any help, as soon as get it working I'd like to make it available to others.</div><div><br></div><div>/ Finn</div></div>