Hello everyone,
I am experiencing an issue with integrating xtensor into my Yocto build. I used the xtensor repository from GitHub as the source for my recipe. Here is the relevant part of my recipe:
S = "${WORKDIR}/git"
# Ensure that the `xtensor` headers are correctly installed
FILES_${PN} += "${includedir}"
inherit allarch
do_configure() {
# No configuration needed for header-only libraries
:
}
do_compile() {
# No compilation needed for header-only libraries
:
}
do_install() {
# Install headers to the include directory
install -d ${D}${includedir}/xtensor
cp -r ${S}/include/xtensor/* ${D}${includedir}/xtensor/
}
I successfully built the xtensor recipe alone using Bitbake. However, after adding the recipe to .bblayers and attempting to build the entire project with Bitbake, I encounter the following error:
Package xtensor is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or is only available from another source
Steps Taken:
- Built the xtensor recipe individually — successful.
- Added the xtensor recipe to .bblayers .
- Attempted to build the full project — encountered the error above.
Question:
- Is there something missing in my recipe or configuration that could cause this issue?
- How can I ensure that xtensor is correctly included in the full build process?
I would appreciate any insights or suggestions on how to resolve this issue.
Thank you!