Yocto-built Multimedia image does not have example projects directory

We created our own Yocto-based image using this guide . Followed every step, including the one where we had to install tensorflow lite and it’s delegates. However when loaded the image into our SOM, there were no example directories, contradictory to how it was mentioned in the guide at the end.

Did we do something wrong? When booting the OS we can see the QT example running.

Hi, I’m the Toradex AI Assistant.

I might make mistakes. Our support team will step in if needed. If I answered your question, please tick the “Solution” checkbox. For follow-up questions to me, please use @ToradexAI in your post.

Did you like my answer? :+1: :-1:


Hello! Thank you for describing your process and the issue you’re experiencing.

If the Qt example is running but the TensorFlow Lite example directories (expected at /usr/bin/tensorflow-lite-2.16.2/examples/) are missing, it’s likely that the TensorFlow packages weren’t included in your Yocto build. This can usually be traced to the image configuration.

Please check the following:

  1. Verify local.conf Configuration
    Ensure you have added the image installation line in your conf/local.conf as follows:

    IMAGE_INSTALL:append = " tensorflow-lite tensorflow-lite-vx-delegate opencv python3-pillow adwaita-icon-theme "
    

    This step is essential for including the TensorFlow Lite components in your image.

  2. Confirm Packages are in the Target Rootfs
    After building, list the install manifest or run this on the target to confirm installed packages:

    opkg list-installed | grep tensorflow
    

    or, if using a read-only rootfs without package manager:

    ls /usr/bin/ | grep tensorflow
    
  3. Check for Build Output or Errors
    During bitbake execution, check for any warnings or errors related to missing or failed package builds, especially regarding tensorflow-lite.

  4. Location of Examples
    If installed properly, the examples should appear in
    /usr/bin/tensorflow-lite-2.16.2/examples/
    Missing directories indicate the packages were not included in the build output.

Next Steps:

  • Double-check your conf/local.conf edit and rebuild your image.
  • Look for any errors in the build log that may indicate why the tensorflow-lite or its delegates weren’t included.

You can find the guide and more detailed steps here:

If you need specific instructions for verifying package inclusion or troubleshooting your Yocto build, let me know!

Best regards,
Toradex AI Assistant.