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 use qt webassembly in qml application?

How to use qt webassembly in qml application?

Scheduled Pinned Locked Moved Unsolved Qt for WebAssembly
qt5.6webassembly
7 Posts 3 Posters 1.0k Views
  • 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.
  • N Offline
    N Offline
    Niushaa
    wrote on 8 Jun 2020, 11:43 last edited by
    #1

    I want to use qt webassembly in qml application. I use emsdk 1.38.30-64bit to compile qml application and it compile successfully but when I use emsdk 1.38.30-64bit with thread flag I could not compile my application. what is my mistake and how should I solve this problem?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SyntaX
      wrote on 10 Jun 2020, 14:51 last edited by
      #2

      What version of Qt are you using, how do you compile your application and what error do you get?

      N 1 Reply Last reply 14 Jun 2020, 05:30
      0
      • L Offline
        L Offline
        lorn.potter
        wrote on 11 Jun 2020, 07:28 last edited by
        #3

        The binary release is built without thread support (as it is still experimental), so if you want Qt WebAssrmbly with thread support, you will have to build it yourself.

        Freelance Software Engineer, Platform Maintainer QtWebAssembly, Maintainer QtSensors
        Author, Hands-On Mobile and Embedded Development with Qt 5 http://bit.ly/HandsOnMobileEmbedded

        1 Reply Last reply
        1
        • S SyntaX
          10 Jun 2020, 14:51

          What version of Qt are you using, how do you compile your application and what error do you get?

          N Offline
          N Offline
          Niushaa
          wrote on 14 Jun 2020, 05:30 last edited by Niushaa
          #4

          @SyntaX I use qt 5.14.2 and I compile it myself. in my browser I get downloading/compiling

          1 Reply Last reply
          0
          • L Offline
            L Offline
            lorn.potter
            wrote on 14 Jun 2020, 05:31 last edited by
            #5

            Could you post any error messages?

            Freelance Software Engineer, Platform Maintainer QtWebAssembly, Maintainer QtSensors
            Author, Hands-On Mobile and Embedded Development with Qt 5 http://bit.ly/HandsOnMobileEmbedded

            N 2 Replies Last reply 14 Jun 2020, 05:53
            0
            • L lorn.potter
              14 Jun 2020, 05:31

              Could you post any error messages?

              N Offline
              N Offline
              Niushaa
              wrote on 14 Jun 2020, 05:53 last edited by Niushaa
              #6

              @lorn-potter ![alt text](image url)2020-06-13.png
              in my qt 5.14.2 (MinGW 7.3.0 32-bit) I get :
              C:\emsdk30\emsdk\emscripten\1.38.30\emrun --browser=firefox test.html
              Executing C:\Program Files\Mozilla Firefox/firefox.exe http://localhost:6931/test.html
              The html page you are running is not emrun-capable. Stdout, stderr and exit(returncode) capture will not work. Recompile the application with the --emrun linker flag to enable this, or pass --no_emrun_detect to emrun to hide this check.
              but when I use widget application it run successfully.

              1 Reply Last reply
              0
              • L lorn.potter
                14 Jun 2020, 05:31

                Could you post any error messages?

                N Offline
                N Offline
                Niushaa
                wrote on 23 Jun 2020, 06:35 last edited by
                #7

                @lorn-potter I have checked it in qt 5.15 with em 1.39.16. but still I have same problem.

                1 Reply Last reply
                0

                • Login

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