Error in xtensor Installation: Package Not Found After Bitbake

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Error in xtensor Installation: Package Not Found After Bitbake

881件の閲覧回数
Kiruthik-15
Contributor I

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:

  1. Built the xtensor recipe individually — successful.
  2. Added the xtensor recipe to .bblayers .
  3. Attempted to build the full project — encountered the error above.

Question:

  1. Is there something missing in my recipe or configuration that could cause this issue?
  2. 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!

ラベル(2)
0 件の賞賛
返信
2 返答(返信)

835件の閲覧回数
Harvey021
NXP TechSupport
NXP TechSupport

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

0 件の賞賛
返信

824件の閲覧回数
Kiruthik-15
Contributor I

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:

  • Package xsimd is not available, but is referred to by another package.
  • Package xtensor is not available, but is referred to by another package.
  • Package xtl is not available, but is referred to by another package.

The error messages also include:

  • E: Package 'xsimd' has no installation candidate
  • E: Package 'xtensor' has no installation candidate
  • E: Package 'xtl' has no installation candidate

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

0 件の賞賛
返信