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

WASM: How to enable threading?

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.15.0 Beta3
    • Core: Threads
    • None
    • WebAssembly

    Description

      I'm struggling to enable threading for my QMake projects when targeting WASM. I've already tried adding CONFIG += thread in the pro file, but it doesn't seem to trigger enabling of USE_PTHREADS=1 as defined in https://github.com/qt/qtbase/blob/5.15/mkspecs/features/wasm/wasm.prf
       

      ANSWER:

      The Qt SDK needs to be built with threading support enabled in order to use threading in Qt-based projects. This can be achieved by adding the -feature-thread argument to configure when building Qt.

      Attachments

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

        Activity

          People

            lpotter Lorn Potter
            forderud Fredrik Orderud
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes