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. WebAssembly for Qt Creator
QtWS25 Last Chance

WebAssembly for Qt Creator

Scheduled Pinned Locked Moved Unsolved Qt for WebAssembly
webassemblyemscriptenqt creatorqt 5.15linux
9 Posts 4 Posters 2.2k 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.
  • T Offline
    T Offline
    tansgumus
    wrote on 2 Jun 2020, 19:59 last edited by tansgumus 6 Aug 2020, 16:08
    #1

    Hi,

    I installed emscripten as mentioned in Qt for Assembly guide for building my Hello World QtQuick app but Qt Creator unable to recognize it (see below)

    alt text

    How can I fix this problem?

    • Linux Mint 19.3 - x64
    • Qt 5.15 (binaries from Qt Installer)
    • Qt Creator 4.12.2
    • Emscripten (terminal output)
    $ em++ --version
    emcc (Emscripten gcc/clang-like replacement) 1.39.8 (commit 6b0d151917fe508007d9d76791369ec94c4eb304)
    Copyright (C) 2014 the Emscripten authors (see AUTHORS.txt)
    This is free and open source software under the MIT license.
    There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    
    $ echo $PATH
    /home/tansu/.emsdk:/home/tansu/.emsdk/fastcomp/emscripten:/home/tansu/.emsdk/node/12.9.1_64bit/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
    
    $ emcc -v
    emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 1.39.8
    clang version 6.0.1 (/b/s/w/ir/cache/git/chromium.googlesource.com-external-github.com-emscripten--core-emscripten--fastcomp--clang 98df4be387dde3e3918fa5bbb5fc43e1a0e1daac) (/b/s/w/ir/cache/git/chromium.googlesource.com-external-github.com-emscripten--core-emscripten--fastcomp b4837f88af2d240abb550c0bbd47f3b8ffe5985a) (emscripten 1.38.31 : 1.38.31)
    Target: x86_64-unknown-linux-gnu
    Thread model: posix
    InstalledDir: /home/tansu/.emsdk/fastcomp/fastcomp/bin
    Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/8
    Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6
    Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6.5.0
    Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/7
    Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/7.5.0
    Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/8
    Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/7.5.0
    Candidate multilib: .;@m64
    Selected multilib: .;@m64
    shared:INFO: (Emscripten: Running sanity checks)
    
    
    
    L 1 Reply Last reply 2 Jun 2020, 23:45
    0
    • T tansgumus
      2 Jun 2020, 19:59

      Hi,

      I installed emscripten as mentioned in Qt for Assembly guide for building my Hello World QtQuick app but Qt Creator unable to recognize it (see below)

      alt text

      How can I fix this problem?

      • Linux Mint 19.3 - x64
      • Qt 5.15 (binaries from Qt Installer)
      • Qt Creator 4.12.2
      • Emscripten (terminal output)
      $ em++ --version
      emcc (Emscripten gcc/clang-like replacement) 1.39.8 (commit 6b0d151917fe508007d9d76791369ec94c4eb304)
      Copyright (C) 2014 the Emscripten authors (see AUTHORS.txt)
      This is free and open source software under the MIT license.
      There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
      
      $ echo $PATH
      /home/tansu/.emsdk:/home/tansu/.emsdk/fastcomp/emscripten:/home/tansu/.emsdk/node/12.9.1_64bit/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
      
      $ emcc -v
      emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 1.39.8
      clang version 6.0.1 (/b/s/w/ir/cache/git/chromium.googlesource.com-external-github.com-emscripten--core-emscripten--fastcomp--clang 98df4be387dde3e3918fa5bbb5fc43e1a0e1daac) (/b/s/w/ir/cache/git/chromium.googlesource.com-external-github.com-emscripten--core-emscripten--fastcomp b4837f88af2d240abb550c0bbd47f3b8ffe5985a) (emscripten 1.38.31 : 1.38.31)
      Target: x86_64-unknown-linux-gnu
      Thread model: posix
      InstalledDir: /home/tansu/.emsdk/fastcomp/fastcomp/bin
      Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/8
      Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6
      Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/6.5.0
      Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/7
      Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/7.5.0
      Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/8
      Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/7.5.0
      Candidate multilib: .;@m64
      Selected multilib: .;@m64
      shared:INFO: (Emscripten: Running sanity checks)
      
      
      
      L Offline
      L Offline
      lorn.potter
      wrote on 2 Jun 2020, 23:45 last edited by
      #2

      @tansgumus For Qt 5.15, you need emscripten 1.39.8, you have 1.38.8

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

      T 1 Reply Last reply 3 Jun 2020, 07:45
      3
      • L lorn.potter
        2 Jun 2020, 23:45

        @tansgumus For Qt 5.15, you need emscripten 1.39.8, you have 1.38.8

        T Offline
        T Offline
        tansgumus
        wrote on 3 Jun 2020, 07:45 last edited by tansgumus 6 Aug 2020, 16:04
        #3

        @lorn-potter said in WebAssembly for Qt Creator:

        @tansgumus For Qt 5.15, you need emscripten 1.39.8, you have 1.38.8

        Sorry I sent the wrong log, the right one updated

        1 Reply Last reply
        0
        • F Offline
          F Offline
          Falko
          wrote on 7 Jun 2020, 21:40 last edited by Falko 6 Jul 2020, 21:46
          #4

          Hi,

          I had the same problem this weekend with Qt 5.15 under Windows 10.

          Try this:

          git clone https://github.com/emscripten-core/emsdk.git --branch 1.39.7 --single-branch
          
          ./emsdk install sdk-1.39.7-64bit
          
          ./emsdk activate sdk-1.39.7-64bit
          

          I started with 1.39.8, but Qt Creator was always complaining that I don't use 1.39.7.

          Additionally since emscripten 1.39.17 the traditional ~/.emscripten config file in the $HOME directory will not be written:

          1.39.17: 06/05/2020
          -------------------
          - On first use, emscripten creates a sample config file.  This config file
            is now created in the emscripten directory by default.  The traditional
            `~/.emscripten` config file in the `$HOME` directory is still supported and
            the sample config will still be written there in the case that the emscripten
            root is read-only.
          

          But as far as I know Qt Creator needs this file.

          Best regards,
          Falko

          T 1 Reply Last reply 8 Jun 2020, 16:08
          0
          • F Falko
            7 Jun 2020, 21:40

            Hi,

            I had the same problem this weekend with Qt 5.15 under Windows 10.

            Try this:

            git clone https://github.com/emscripten-core/emsdk.git --branch 1.39.7 --single-branch
            
            ./emsdk install sdk-1.39.7-64bit
            
            ./emsdk activate sdk-1.39.7-64bit
            

            I started with 1.39.8, but Qt Creator was always complaining that I don't use 1.39.7.

            Additionally since emscripten 1.39.17 the traditional ~/.emscripten config file in the $HOME directory will not be written:

            1.39.17: 06/05/2020
            -------------------
            - On first use, emscripten creates a sample config file.  This config file
              is now created in the emscripten directory by default.  The traditional
              `~/.emscripten` config file in the `$HOME` directory is still supported and
              the sample config will still be written there in the case that the emscripten
              root is read-only.
            

            But as far as I know Qt Creator needs this file.

            Best regards,
            Falko

            T Offline
            T Offline
            tansgumus
            wrote on 8 Jun 2020, 16:08 last edited by
            #5

            @Falko said in WebAssembly for Qt Creator:

            I started with 1.39.8, but Qt Creator was always complaining that I don't use 1.39.7.

            I updated Qt Creator to the recent version (Qt Creator 4.12.2) but still complains even when I tried to use Emscripten1.39.7!!!

            T 1 Reply Last reply 8 Mar 2021, 22:33
            0
            • T tansgumus
              8 Jun 2020, 16:08

              @Falko said in WebAssembly for Qt Creator:

              I started with 1.39.8, but Qt Creator was always complaining that I don't use 1.39.7.

              I updated Qt Creator to the recent version (Qt Creator 4.12.2) but still complains even when I tried to use Emscripten1.39.7!!!

              T Offline
              T Offline
              TMJJ001
              wrote on 8 Mar 2021, 22:33 last edited by
              #6

              @tansgumus I'm having the same issue.
              Where you able to solve it?

              Thanks

              T 1 Reply Last reply 9 Mar 2021, 03:34
              0
              • T TMJJ001
                8 Mar 2021, 22:33

                @tansgumus I'm having the same issue.
                Where you able to solve it?

                Thanks

                T Offline
                T Offline
                tansgumus
                wrote on 9 Mar 2021, 03:34 last edited by
                #7

                @TMJJ001 said in WebAssembly for Qt Creator:

                Where you able to solve it?

                I couldn't fix this issue, so I ended up by leaving Qt (the maintainers only care about commercial Qt which is Qt for embedded system).
                I'm using Flutter, and I'm happy with it (done a bunch of iOS, Android & Web apps)

                1 Reply Last reply
                0
                • L Offline
                  L Offline
                  lorn.potter
                  wrote on 9 Mar 2021, 03:52 last edited by
                  #8

                  You can always build Qt WebAssembly apps from the commandline, and still use Qt Creator to edit.

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

                  T 1 Reply Last reply 9 Mar 2021, 06:48
                  0
                  • L lorn.potter
                    9 Mar 2021, 03:52

                    You can always build Qt WebAssembly apps from the commandline, and still use Qt Creator to edit.

                    T Offline
                    T Offline
                    TMJJ001
                    wrote on 9 Mar 2021, 06:48 last edited by
                    #9

                    @lorn-potter thanks for your command.
                    I love working with QT. If WASM would be working, a complete new world would open for us. The main thing what annoys me is that I can not find a good manual/guide to get wasm running on linux. I hope somebody can point me in the good direction. I'm probably just missing the needed information/knowledge, but I really want to learn!

                    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