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

qt_add_shaders fails to create DEPFILE

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • 6.8
    • Qt Shader Tools
    • None
    • Linux/Wayland, Linux/X11
    • c25c3c736 (dev), f6a3dbf81 (6.8)

    Description

      Trying to build any shader with qsb through CMake fails when building Qt from dev (started happening a couple of days ago):

      qt6_add_shaders(myapp "shaders"
          BATCHABLE
          PRECOMPILE
          OPTIMIZED
          FILES
              shaders/logo.frag
          OUTPUTS
              logo_frag.qsb
      )
      

      results in a build failure

      [ 95%] Generating .qsb/logo_frag.qsb
      Unable to create DEPFILE: '.../build/build-myapp-Desktop_6_8_0_kdesrc_build-Debug/src/app/.qsb/logo_frag.qsb.d'
      

      Also reproducible with a more complex project like KDE’s Kirigami framework.

      Seems to be caused by 559fbc4f8166cf1e1a1a953fb2f40c1194c76538 “Add depfile support to qsb”

      Attachments

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

        Activity

          People

            lagocs Laszlo Agocs
            broulik Kai Uwe Broulik
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes