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:
Question:
I would appreciate any insights or suggestions on how to resolve this issue.
Thank you!
Hi,
The way to build recipe - xtensor - is not recommended. and here is the reference to the layer (OpenEmbedded Layer Index - meta-ros2-iron) and recipes xtensor_0.24.7.bb
Regards
Harvey
Hi Harvey,
Thank you for your feedback and for pointing me to the reference layer and recipes.
After reviewing the links and following the guidelines provided, I have encountered additional issues related to dependencies. Specifically, when attempting to build the entire project, I’m encountering the following errors:
The error messages also include:
It appears that while the xtensor recipe builds successfully when done individually, integrating it into the larger project results in these issues.
I have ensured that all the necessary layers are included like xtensor , xtl and xsimd from recipies-support , and I have verified that the dependencies should be correctly referenced. However, these errors persist during the full project build.
Could you provide any insights or suggestions on how to resolve these issues? Any additional steps or troubleshooting tips would be greatly appreciated.
Thank you for your assistance!
Best regards,
Kiruthikram