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

[WASM] Qt's internal shaders can easily conflict with user shaders

    XMLWordPrintable

Details

    • WebAssembly
    • d217eca2f (dev), 50a591426 (6.6), 9b32c3478 (tqtc/lts-6.5), 89552f6c4 (dev), 92dd43096 (6.6)

    Description

      Steps to reproduce

      1. Load the Shader Effects example (https://doc.qt.io/qt-6/qtquick-shadereffects-example.html )
      2. Edit shadereffects.qml to add one line, "import QtMultimedia"
      3. Re-run CMake
      4. Build the project

       

      Note: After step #2, it is necessary to re-run CMake (or delete the build folder entirely) if the project was previously built. Simply cleaning the project is not enough.

       

      Outcomes
      The build fails with the following error:

      wasm-ld: error: duplicate symbol: qInitResources_shaders()
      >>> defined in CMakeFiles/shadereffectsexample.dir/.rcc/qrc_shaders.cpp.o
      >>> defined in C:/Qt/6.5.3/wasm_multithread/lib/objects-Release/Multimedia_resources_1/.rcc/qrc_shaders.cpp.o
      
      wasm-ld: error: duplicate symbol: qCleanupResources_shaders()
      >>> defined in CMakeFiles/shadereffectsexample.dir/.rcc/qrc_shaders.cpp.o
      >>> defined in C:/Qt/6.5.3/wasm_multithread/lib/objects-Release/Multimedia_resources_1/.rcc/qrc_shaders.cpp.o
      

       

      Workaround/Fix

      Attachments

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

        Activity

          People

            lagocs Laszlo Agocs
            skoh-qt Sze Howe Koh
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews