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

WebAssembly loader broken when using the CMake RUNTIME_OUTPUT_DIRECTORY property

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important 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)

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes