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

WebAssembly loader broken when using the CMake RUNTIME_OUTPUT_DIRECTORY property

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 6.5.0 Beta1
    • 6.4.0 Beta3
    • Build System: CMake
    • None
    • WebAssembly
    • 0f80b65a01 (qt/qtbase/dev) 0f80b65a01 (qt/tqtc-qtbase/dev) 06b95cf55e (qt/qtbase/6.4) 06b95cf55e (qt/tqtc-qtbase/6.4)

    Description

      Open the plug & paint example and modify the app/CMakeLists.txt:

      Add the following extra call after qt_add_executable:

      set_target_properties(plugandpaint PROPERTIES RUNTIME_OUTPUT_DIRECTORY ../)
      

      Building the example in QtCreator works fine, but starting it won't work.
      The wasm and js files are now in the top-level build-directory, as they respect the RUNTIME_OUTPUT_DIRECTORY, but plugandpaint.html, qtloader.js and qtloader.svg are still only part of the app sub-directory.

      Attachments

        Issue Links

          Activity

            People

              lpotter Lorn Potter
              gagi Dominik Holland
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: