Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-139976

svgtoqml commandline tool requires window manager

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P1: Critical P1: Critical
    • 6.11
    • 6.11
    • Quick: VectorImage
    • None

      Running svgtoqml commandline tool in a build environment without a window manager causes it to fail:

      agent:2025/09/02 17:37:28 build.go:413: | FAILED: examples/quick/vectorimage/.qt/svgtoqml/Heart.qml /home/qt/work/build/build/tmp/work/core2-32-poky-linux/qtdeclarative-examples/6.11.0/build/examples/quick/vectorimage/.qt/svgtoqml/Heart.qml
      agent:2025/09/02 17:37:28 build.go:413: | cd /home/qt/work/build/build/tmp/work/core2-32-poky-linux/qtdeclarative-examples/6.11.0/build/examples/quick/vectorimage && /home/qt/work/build/build/tmp/work/core2-32-poky-linux/qtdeclarative-examples/6.11.0/recipe-sysroot-native/usr/bin/svgtoqml -c -p --copyright-statement Copyright\ ©\ 2024\ The\ Qt\ Company\ Ltd.\nSPDX-License-Identifier:\ LicenseRef-Qt-Commercial\ OR\ BSD-3-Clause /home/qt/work/build/build/tmp/work/core2-32-poky-linux/qtdeclarative-examples/6.11.0/qtdeclarative-examples-6.11.0/examples/quick/vectorimage/heart.svg /home/qt/work/build/build/tmp/work/core2-32-poky-linux/qtdeclarative-examples/6.11.0/build/examples/quick/vectorimage/.qt/svgtoqml/Heart.qml
      agent:2025/09/02 17:37:28 build.go:413: | qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
      agent:2025/09/02 17:37:28 build.go:413: | This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
      agent:2025/09/02 17:37:28 build.go:413: | 
      agent:2025/09/02 17:37:28 build.go:413: | Available platform plugins are: offscreen, vnc, minimal. 

      Now that it's used in examples (https://codereview.qt-project.org/c/qt/qtdeclarative/+/667536) it blocks submodule updates: https://codereview.qt-project.org/c/yocto/meta-qt6/+/672771/2

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            esabraha Eskil Abrahamsen Blomfeldt
            sapiippo Samuli Piippo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes