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

wasm: build wasm app using cmake for Qt 6

XMLWordPrintable

      Emscripten comes with Emscripten toolchain cmake file.

      -DCMAKE_TOOLCHAIN_FILE=$HOME/emsdk/emscripten/1.38.27/cmake/Modules/Platform/Emscripten.cmake -DCMAKE_BUILD_TYPE=Debug -G "Unix Makefiles"

      but upon testing, other things also need to be set:

      • compiler arguments (--bind)
      •  linker arguments (-L plugins/platforms/ -l qwasm, -s USE_WEBGL2=1 )
      • dbug arguments (-s ASSERTIONS=2)
      • WASM_OBJECT_FILES
      • copy qtloader.js files
      • sed wasm_shell.html
      • setting Qt5_DIR type of paths
      • ? something else

       

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

            lpotter Lorn Potter
            lpotter Lorn Potter
            Tino Pyssysalo Tino Pyssysalo
            Kai Köhne Kai Köhne
            Votes:
            13 Vote for this issue
            Watchers:
            20 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes