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. Building Qt (source) for Webassembly fail
Forum Updated to NodeBB v4.3 + New Features

Building Qt (source) for Webassembly fail

Scheduled Pinned Locked Moved Solved Qt for WebAssembly
8 Posts 3 Posters 1.0k Views 2 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.
  • AlsaniePssA Offline
    AlsaniePssA Offline
    AlsaniePss
    wrote on last edited by
    #1

    I am trying to build Qt from source for Web assembly. This is what i did so far:

    $ /opt/Qt/5.14.1/Src/configure -xplatform wasm-emscripten -nomake examples
    

    Completed successfully.

    $ gmake
    

    Got the following erros:

    /opt/Qt/5.14.1/Src/qtbase/src/plugins/platforms/wasm/qwasmeventtranslator.cpp:549:34: error: no member named 'timestamp' in 'EmscriptenMouseEvent'
        auto timestamp = mouseEvent->timestamp;
                         ~~~~~~~~~~  ^
    /opt/Qt/5.14.1/Src/qtbase/src/plugins/platforms/wasm/qwasmeventtranslator.cpp:675:33: error: no member named 'timestamp' in 'EmscriptenMouseEvent'
        auto timestamp = mouseEvent.timestamp;
    

    Thoughts? thanks in advance.

    1 Reply Last reply
    0
    • AlsaniePssA Offline
      AlsaniePssA Offline
      AlsaniePss
      wrote on last edited by
      #2

      Following up on my issue above. I see this issue when building one module:

      $ make module-qtbase
      

      Some more context of the enviroment:
      em++ version = 1.39.11
      g++ version = 9.2.1

      1 Reply Last reply
      0
      • lorn.potterL Offline
        lorn.potterL Offline
        lorn.potter
        wrote on last edited by
        #3

        To build Qt 5.14, you need emscripten 1.38.27 or 1.38.30

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

        AlsaniePssA 1 Reply Last reply
        2
        • lorn.potterL lorn.potter

          To build Qt 5.14, you need emscripten 1.38.27 or 1.38.30

          AlsaniePssA Offline
          AlsaniePssA Offline
          AlsaniePss
          wrote on last edited by
          #4

          @lorn-potter Thanks. that is what I am trying to do at the moment. I hope it go well :)

          1 Reply Last reply
          0
          • AlsaniePssA Offline
            AlsaniePssA Offline
            AlsaniePss
            wrote on last edited by
            #5

            It seems to build successfully now... thank you!

            Pablo J. RoginaP 1 Reply Last reply
            0
            • AlsaniePssA AlsaniePss

              It seems to build successfully now... thank you!

              Pablo J. RoginaP Offline
              Pablo J. RoginaP Offline
              Pablo J. Rogina
              wrote on last edited by
              #6

              @AlsaniePss said in Building Qt (source) for Webassembly fail:

              build successfully now

              Is your issue solved? Please don't forget to mark your post as such!

              Upvote the answer(s) that helped you solve the issue
              Use "Topic Tools" button to mark your post as Solved
              Add screenshots via postimage.org
              Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

              AlsaniePssA 1 Reply Last reply
              0
              • Pablo J. RoginaP Pablo J. Rogina

                @AlsaniePss said in Building Qt (source) for Webassembly fail:

                build successfully now

                Is your issue solved? Please don't forget to mark your post as such!

                AlsaniePssA Offline
                AlsaniePssA Offline
                AlsaniePss
                wrote on last edited by
                #7

                @Pablo-J-Rogina I am not sure how to mark it as resolved :( and yes, its resolved on my end.

                Pablo J. RoginaP 1 Reply Last reply
                0
                • AlsaniePssA AlsaniePss

                  @Pablo-J-Rogina I am not sure how to mark it as resolved :( and yes, its resolved on my end.

                  Pablo J. RoginaP Offline
                  Pablo J. RoginaP Offline
                  Pablo J. Rogina
                  wrote on last edited by
                  #8

                  @AlsaniePss please try right clicking the 3 vertical dots at the right of the post...

                  Upvote the answer(s) that helped you solve the issue
                  Use "Topic Tools" button to mark your post as Solved
                  Add screenshots via postimage.org
                  Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

                  1 Reply Last reply
                  1

                  • Login

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