All of lore.kernel.org
 help / color / mirror / Atom feed
* Circular dependency issues when building Qt with Yocto Scarthgap
@ 2025-08-25 11:17 Yannaboina, Shivaji
  2025-08-26  5:43 ` [yocto] " Yannaboina, Shivaji
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Yannaboina, Shivaji @ 2025-08-25 11:17 UTC (permalink / raw)
  To: yocto@lists.yoctoproject.org; +Cc: Himakuntala, Srinivas


[-- Attachment #1.1: Type: text/plain, Size: 1555 bytes --]

Hello Yocto/meta-qt maintainers,
I am working with Yocto Scarthgap (5.0) on a Raspberry Pi CM5 target and trying to build an image with Qt support. My current setup uses:

  *   Yocto release: Scarthgap (5.0)
  *   Machine: raspberrypi-cm5-thermo
  *   Qt layer: meta-qt5 / meta-qt6 (Qt 5.12, Qt 5.15, Qt 6.11) - I supposed to use them for different products.
  *   Bitbake version: 2.8.0
  *   Toolchain: gcc 13.3

When running bitbake <my-image>, the build fails with many of unbuildable tasks caused by circular dependency loops between qtbase, qttools, qtdeclarative, and related recipes, attached the error log for reference, for the all the qt versions I am getting circular dependency issues

       I have following queries:

  1.  Is Qt 5.12 (via meta-qt5-5.12) still expected to work on Scarthgap (5.0)?
  2.  Is this circular dependency issue due to Qt/Yocto version incompatibility, or is there a patch/workaround?
  3.  Is Qt 5.12 still expected to work on Scarthgap, or is it unsupported now?
  4.  Is there a known way to use Qt 5.15 on Scarthgap, or does it require upgrading to a newer Yocto release?
  5.  For Qt 6.11, since meta-qt6 only documents support up to 6.10 on Scarthgap, is there any recommended patch/backport path, or is migration to Whinlatter/Walnascar the only option?
  6.  Has anyone successfully built these combinations (Scarthgap + Qt 5.15 or Scarthgap + Qt 6.11), and if so, what layer revisions/patches were required?


please let me if anything required from my side,

Thanks
Shivaji Y


[-- Attachment #1.2: Type: text/html, Size: 8932 bytes --]

[-- Attachment #2: error.doc --]
[-- Type: application/msword, Size: 59794 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [yocto] Circular dependency issues when building Qt with Yocto Scarthgap
  2025-08-25 11:17 Circular dependency issues when building Qt with Yocto Scarthgap Yannaboina, Shivaji
@ 2025-08-26  5:43 ` Yannaboina, Shivaji
  2025-08-26  6:17   ` Gyorgy Sarvari
  2025-08-27  6:26 ` Marco Cavallini
  2025-08-28 14:47 ` Lisandro Pérez Meyer
  2 siblings, 1 reply; 9+ messages in thread
From: Yannaboina, Shivaji @ 2025-08-26  5:43 UTC (permalink / raw)
  To: Yannaboina, Shivaji, yocto

[-- Attachment #1: Type: text/plain, Size: 369 bytes --]

1. I am able to build the image using bit bake successfully without adding QT packages.
2. The moment when add QT packages like this in .bb file in receipes-core like below

IMAGE_INSTALL += "qtbase qtdeclarative qtquickcontrols2 qtgraphicaleffects qttools" - the circular dependency issue is coming all the 3 scenario's
with meta-qt5.12, meta-qt5.15, meta-qt6.11

[-- Attachment #2: Type: text/html, Size: 663 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [yocto] Circular dependency issues when building Qt with Yocto Scarthgap
  2025-08-26  5:43 ` [yocto] " Yannaboina, Shivaji
@ 2025-08-26  6:17   ` Gyorgy Sarvari
  2025-08-26  6:36     ` Yannaboina, Shivaji
  0 siblings, 1 reply; 9+ messages in thread
From: Gyorgy Sarvari @ 2025-08-26  6:17 UTC (permalink / raw)
  To: yocto, shivaji.yannaboina

On 8/26/25 07:43, Yannaboina, Shivaji via lists.yoctoproject.org wrote:
> 1. I am able to build the image using bit bake successfully without
> adding QT packages.
> 2. The moment when add QT packages like this in .bb file in
> receipes-core like below
>
> IMAGE_INSTALL += "qtbase qtdeclarative qtquickcontrols2
> qtgraphicaleffects qttools" - the circular dependency issue is coming
> all the 3 scenario's
>    with meta-qt5.12, meta-qt5.15, meta-qt6.11
>

Usually these packages are not added directly to IMAGE_INSTALL, rather
the required parts are installed automatically as a dependency of your
application. Does your Qt application not work with your current recipe?
Got any error messages?



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [yocto] Circular dependency issues when building Qt with Yocto Scarthgap
  2025-08-26  6:17   ` Gyorgy Sarvari
@ 2025-08-26  6:36     ` Yannaboina, Shivaji
  2025-08-26  6:46       ` Gyorgy Sarvari
  0 siblings, 1 reply; 9+ messages in thread
From: Yannaboina, Shivaji @ 2025-08-26  6:36 UTC (permalink / raw)
  To: Gyorgy Sarvari, yocto

[-- Attachment #1: Type: text/plain, Size: 488 bytes --]

Thanks for response,

I didn't add any Application still.
I was supposed to add meta-qt* layers to my existing yocto project structure and build them successfully, so during this,
1. Performed Yocto build without QT layers and succeeded, and image didn't have the  QT related details when i verified in the manifest file
2.Added QT layers- build-getting errors as mentioned earlier-idea is if build successful- hope these packages will reflect in final image Ex: in manifest file,

[-- Attachment #2: Type: text/html, Size: 542 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [yocto] Circular dependency issues when building Qt with Yocto Scarthgap
  2025-08-26  6:36     ` Yannaboina, Shivaji
@ 2025-08-26  6:46       ` Gyorgy Sarvari
  2025-08-26  7:11         ` Yannaboina, Shivaji
  0 siblings, 1 reply; 9+ messages in thread
From: Gyorgy Sarvari @ 2025-08-26  6:46 UTC (permalink / raw)
  To: shivaji.yannaboina, yocto

On 8/26/25 08:36, Yannaboina, Shivaji via Lists.Yoctoproject.Org wrote:
> Thanks for response,
>
> I didn't add any Application still.
> I was supposed to add meta-qt* layers to my existing yocto project
> structure and build them successfully, so during this,
> 1. Performed Yocto build without QT layers and succeeded, and image
> didn't have the  QT related details when i verified in the manifest file
> 2.Added QT layers- build-getting errors as mentioned earlier-idea is
> if build successful- hope these packages will reflect in final image
> Ex: in manifest file,
>
>

To do a sanity check on your config, try to build an actual application.
meta-qt5 has some examples in recipes-qt/examples folder, and/or for
meta-qt6 just grab an example from qtcreator, or use a graphical "hello
world".

If you add such an application to IMAGE_INSTALL on its own, and it works
in the final image (without explicitly adding Qt dependencies to
IMAGE_INSTALL), then you can verify that it works - Qt apps can be
compiled and executed in the final image. If you build an image with
having the meta-qt layer present, Qt parts will be only included in the
image if there is something to require them.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [yocto] Circular dependency issues when building Qt with Yocto Scarthgap
  2025-08-26  6:46       ` Gyorgy Sarvari
@ 2025-08-26  7:11         ` Yannaboina, Shivaji
  2025-08-26  9:09           ` Yannaboina, Shivaji
  0 siblings, 1 reply; 9+ messages in thread
From: Yannaboina, Shivaji @ 2025-08-26  7:11 UTC (permalink / raw)
  To: Gyorgy Sarvari, yocto

[-- Attachment #1: Type: text/plain, Size: 41 bytes --]

Thanks,
I will try what you suggested.

[-- Attachment #2: Type: text/html, Size: 56 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [yocto] Circular dependency issues when building Qt with Yocto Scarthgap
  2025-08-26  7:11         ` Yannaboina, Shivaji
@ 2025-08-26  9:09           ` Yannaboina, Shivaji
  0 siblings, 0 replies; 9+ messages in thread
From: Yannaboina, Shivaji @ 2025-08-26  9:09 UTC (permalink / raw)
  To: Yannaboina, Shivaji, yocto

[-- Attachment #1: Type: text/plain, Size: 435 bytes --]

Can you please respond on below queries,

* Is *Qt 5.12* still expected to work on Scarthgap, or is it unsupported now? or with workaround is it possible?
* Is *Qt 5.15* still expected to work on Scarthgap, or is it unsupported now? or with workaround is it possible?
* I supposed build meta-qt6.11? as per compatible layers it will support Scarth gap, but as per below snip it will not, can you suggest how i build these layers?

[-- Attachment #2: Type: text/html, Size: 61020 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [yocto] Circular dependency issues when building Qt with Yocto Scarthgap
  2025-08-25 11:17 Circular dependency issues when building Qt with Yocto Scarthgap Yannaboina, Shivaji
  2025-08-26  5:43 ` [yocto] " Yannaboina, Shivaji
@ 2025-08-27  6:26 ` Marco Cavallini
  2025-08-28 14:47 ` Lisandro Pérez Meyer
  2 siblings, 0 replies; 9+ messages in thread
From: Marco Cavallini @ 2025-08-27  6:26 UTC (permalink / raw)
  To: Yannaboina, Shivaji, yocto

[-- Attachment #1: Type: text/plain, Size: 277 bytes --]

Hello,
FYI I am able to build a system using Yocto 'scarthgap' and Qt5 actually using the standard 'meta-qt5' layer.
I wonder where your 'meta-qt5-5-12' comes from.

Just my two cents.
--
Marco Cavallini
KOAN - Abinsula Group
Bergamo, Italia
https://KoanSoftware.com

[-- Attachment #2: Type: text/html, Size: 372 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [yocto] Circular dependency issues when building Qt with Yocto Scarthgap
  2025-08-25 11:17 Circular dependency issues when building Qt with Yocto Scarthgap Yannaboina, Shivaji
  2025-08-26  5:43 ` [yocto] " Yannaboina, Shivaji
  2025-08-27  6:26 ` Marco Cavallini
@ 2025-08-28 14:47 ` Lisandro Pérez Meyer
  2 siblings, 0 replies; 9+ messages in thread
From: Lisandro Pérez Meyer @ 2025-08-28 14:47 UTC (permalink / raw)
  To: yocto, shivaji.yannaboina; +Cc: Himakuntala, Srinivas

[-- Attachment #1: Type: text/plain, Size: 941 bytes --]

Hi,

On Mon, Aug 25, 2025 at 8:19 AM Yannaboina, Shivaji via
lists.yoctoproject.org <shivaji.yannaboina=
thermofisher.com@lists.yoctoproject.org> wrote:

> Hello Yocto/meta-qt maintainers,
>
> I am working with *Yocto Scarthgap (5.0)* on a *Raspberry Pi CM5 target*
> and trying to build an image with *Qt support*. My current setup uses:
>
>    - *Yocto release:* Scarthgap (5.0)
>    - *Machine:* raspberrypi-cm5-thermo
>    - *Qt layer:* meta-qt5 / meta-qt6 (Qt 5.12, Qt 5.15, Qt 6.11) – I
>    supposed to use them for different products.
>
>

Are you trying to build both Qt 5 and 6 on the same image? That is not
possible by default, although I understand there is some switch available
in meta-qt6 that might allow that... but even if it is there I don't know
how tested that would be. If you are in this scenario either use the same
Qt version for everything or build different images in different setups.

[-- Attachment #2: Type: text/html, Size: 2241 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-08-28 14:47 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-25 11:17 Circular dependency issues when building Qt with Yocto Scarthgap Yannaboina, Shivaji
2025-08-26  5:43 ` [yocto] " Yannaboina, Shivaji
2025-08-26  6:17   ` Gyorgy Sarvari
2025-08-26  6:36     ` Yannaboina, Shivaji
2025-08-26  6:46       ` Gyorgy Sarvari
2025-08-26  7:11         ` Yannaboina, Shivaji
2025-08-26  9:09           ` Yannaboina, Shivaji
2025-08-27  6:26 ` Marco Cavallini
2025-08-28 14:47 ` Lisandro Pérez Meyer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.