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
Forum Updated to NodeBB v4.3 + New Features

How to compile qt program to WebAssembly with cmake

Scheduled Pinned Locked Moved Solved Qt for WebAssembly
3 Posts 2 Posters 485 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 5 Feb 2024, 06:05 last edited by
    #1

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

    J 1 Reply Last reply 5 Feb 2024, 06:13
    0
    • J jsulm
      5 Feb 2024, 06:13

      @_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 20 Feb 2024, 06:53 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_
        5 Feb 2024, 06:05

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

        J Offline
        J Offline
        jsulm
        Lifetime Qt Champion
        wrote on 5 Feb 2024, 06:13 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 20 Feb 2024, 06:53
        1
        • J jsulm
          5 Feb 2024, 06:13

          @_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 20 Feb 2024, 06:53 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 20 Feb 2024, 06:55

          • Login

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