Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-32288

Make it clear that building Qt Quick Designer Components may need spirv-opt

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • Qt Creator 15.0.0
    • None

    Description

      https://doc.qt.io/qtcreator/quick-converting-ui-projects.html#adding-qt-quick-designer-components-to-qt-installations
      If user just builds QDS components like this, they will get errors like

      [211/691] Generating .qsb/shaders/dropShadow.frag.qsb
      spirv-opt -O C:\Users\luchen\AppData\Local\Temp\qsb-cdiRqg\qsb_spv_temp -o C:\Users\luchen\AppData\Local\Temp\qsb-cdiRqg\qsb_spv_temp_out
      Failed to run spirv-opt -O C:\Users\luchen\AppData\Local\Temp\qsb-cdiRqg\qsb_spv_temp -o C:\Users\luchen\AppData\Local\Temp\qsb-cdiRqg\qsb_spv_temp_out: Process failed to start: The system cannot find the file specified.
      fxc /nologo /E main /T ps_5_0 /Fo C:\Users\luchen\AppData\Local\Temp\qsb-zbVnLu\qsb_hlsl_temp_out C:\Users\luchen\AppData\Local\Temp\qsb-zbVnLu\qsb_hlsl_temp
      [213/691] Generating .qsb/shaders/dropShadowClip.frag.qsb
      spirv-opt -O C:\Users\luchen\AppData\Local\Temp\qsb-SgtQXT\qsb_spv_temp -o C:\Users\luchen\AppData\Local\Temp\qsb-SgtQXT\qsb_spv_temp_out
      Failed to run spirv-opt -O C:\Users\luchen\AppData\Local\Temp\qsb-SgtQXT\qsb_spv_temp -o C:\Users\luchen\AppData\Local\Temp\qsb-SgtQXT\qsb_spv_temp_out: Process failed to start: The system cannot find the file specified.
      fxc /nologo /E main /T ps_5_0 /Fo C:\Users\luchen\AppData\Local\Temp\qsb-Jrwuch\qsb_hlsl_temp_out C:\Users\luchen\AppData\Local\Temp\qsb-Jrwuch\qsb_hlsl_temp
      [214/691] Generating .qsb/shaders/gaussianBlur.frag.qsb
      spirv-opt -O C:\Users\luchen\AppData\Local\Temp\qsb-larSTo\qsb_spv_temp -o C:\Users\luchen\AppData\Local\Temp\qsb-larSTo\qsb_spv_temp_out
      Failed to run spirv-opt -O C:\Users\luchen\AppData\Local\Temp\qsb-larSTo\qsb_spv_temp -o C:\Users\luchen\AppData\Local\Temp\qsb-larSTo\qsb_spv_temp_out: Process failed to start: The system cannot find the file specified.
      fxc /nologo /E main /T ps_5_0 /Fo C:\Users\luchen\AppData\Local\Temp\qsb-JokkBX\qsb_hlsl_temp_out C:\Users\luchen\AppData\Local\Temp\qsb-JokkBX\qsb_hlsl_temp
      [216/691] Generating .qsb/shaders/innerShadow.frag.qsb
      spirv-opt -O C:\Users\luchen\AppData\Local\Temp\qsb-BDFVBp\qsb_spv_temp -o C:\Users\luchen\AppData\Local\Temp\qsb-BDFVBp\qsb_spv_temp_out
      Failed to run spirv-opt -O C:\Users\luchen\AppData\Local\Temp\qsb-BDFVBp\qsb_spv_temp -o C:\Users\luchen\AppData\Local\Temp\qsb-BDFVBp\qsb_spv_temp_out: Process failed to start: The system cannot find the file specified.
      fxc /nologo /E main /T ps_5_0 /Fo C:\Users\luchen\AppData\Local\Temp\qsb-hCpwBi\qsb_hlsl_temp_out C:\Users\luchen\AppData\Local\Temp\qsb-hCpwBi\qsb_hlsl_temp
      [217/691] Generating .qsb/shaders/innerShadowClip.frag.qsb
      spirv-opt -O C:\Users\luchen\AppData\Local\Temp\qsb-VQmsUX\qsb_spv_temp -o C:\Users\luchen\AppData\Local\Temp\qsb-VQmsUX\qsb_spv_temp_out
      Failed to run spirv-opt -O C:\Users\luchen\AppData\Local\Temp\qsb-VQmsUX\qsb_spv_temp -o C:\Users\luchen\AppData\Local\Temp\qsb-VQmsUX\qsb_spv_temp_out: Process failed to start: The system cannot find the file specified.
      fxc /nologo /E main /T ps_5_0 /Fo C:\Users\luchen\AppData\Local\Temp\qsb-MbJmiF\qsb_hlsl_temp_out C:\Users\luchen\AppData\Local\Temp\qsb-MbJmiF\qsb_hlsl_temp
      [220/691] Generating .qsb/shaders/opacityMask.frag.qsb
      spirv-opt -O C:\Users\luchen\AppData\Local\Temp\qsb-EGeLPa\qsb_spv_temp -o C:\Users\luchen\AppData\Local\Temp\qsb-EGeLPa\qsb_spv_temp_out
      Failed to run spirv-opt -O C:\Users\luchen\AppData\Local\Temp\qsb-EGeLPa\qsb_spv_temp -o C:\Users\luchen\AppData\Local\Temp\qsb-EGeLPa\qsb_spv_temp_out: Process failed to start: The system cannot find the file specified.
      fxc /nologo /E main /T ps_5_0 /Fo C:\Users\luchen\AppData\Local\Temp\qsb-nEMiVj\qsb_hlsl_temp_out C:\Users\luchen\AppData\Local\Temp\qsb-nEMiVj\qsb_hlsl_temp
      

      The problem is that spirv-opt does not exist. User needs to get it, e.g. from VulkanSDK, themselves. Although the error does not cause any build failure, it can be misleading and annoying.

      Attachments

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

        Activity

          People

            leenam Leena Miettinen
            luqiaochen Luqiao Chen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes