I am using this recipe, which by default doesn't copy the resulting .a lib (it expects header only usage I think)
I am trying to get the resultant libspdlog.a into my sysroot, but I can't seem to make that happen. I coppied the recipe to my layer (had to anyway because my project refereces an older version of meta-oe)
So far i've tried:
FILES_${PN} += "${libdir}/libspdlog.a"
FILES_${PN}-dev += "${libdir}/libspdlog.a"
FILES_${PN}-staticdev += "${libdir}/libspdlog.a"
and
do_install() {
install -d ${D}${libdir}
install -m 0644 libspdlog.a ${D}${libdir}
}
I'm pretty sure do_install is not getting called. I had to add to my IMAGE_INSTALL spd-dev so maybe this has something to do with it
Thanks
do_installis right and for now just haveFILES_${PN} += "${libdir}/libspdlog.a".If you have kept the same name of the recipe when you copied over you will need to add the following
IMAGE_INSTALL_append = " spdlog"(in eitherlocal.confor an image recipe if you have one) to put into image.To verify
do_installis working ok:tmp/work(if you haven't changed this in yourlocal.conf)<recipe_name>/<recipe_version>(eg.spdlog/1.8.0-r0/)packages-split/spdlogfolderusr/lib/libspdlog.a