Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for WebAssembly
  4. How to compile qt program to WebAssembly with cmake
Qt 6.11 is out! See what's new in the release blog

How to compile qt program to WebAssembly with cmake

Scheduled Pinned Locked Moved Solved Qt for WebAssembly
3 Posts 2 Posters 1.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • _ Offline
    _ Offline
    _leo_
    wrote on last edited by
    #1

    I want to compile qt program to WebAssembly with cmake,can anyone provide a sample?

    jsulmJ 1 Reply Last reply
    0
    • jsulmJ jsulm

      @_leo_ Install Qt for WebAssembly and build your app with it.
      See https://doc.qt.io/qt-6/wasm.html

      _ Offline
      _ Offline
      _leo_
      wrote on last edited by
      #3

      @jsulm Thank you, I solved it .

      CMakeLists needs to contain :
      qt_standard_project_setup();
      qt_add_executable

      1 Reply Last reply
      0
      • _ _leo_

        I want to compile qt program to WebAssembly with cmake,can anyone provide a sample?

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #2

        @_leo_ Install Qt for WebAssembly and build your app with it.
        See https://doc.qt.io/qt-6/wasm.html

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        _ 1 Reply Last reply
        1
        • jsulmJ jsulm

          @_leo_ Install Qt for WebAssembly and build your app with it.
          See https://doc.qt.io/qt-6/wasm.html

          _ Offline
          _ Offline
          _leo_
          wrote on last edited by
          #3

          @jsulm Thank you, I solved it .

          CMakeLists needs to contain :
          qt_standard_project_setup();
          qt_add_executable

          1 Reply Last reply
          0
          • _ _leo_ has marked this topic as solved on

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved