Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Problem with configuring Qt 5.12.4 for Qt for Webassembly
Forum Updated to NodeBB v4.3 + New Features

Problem with configuring Qt 5.12.4 for Qt for Webassembly

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
13 Posts 4 Posters 2.4k 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.
  • K kuersat

    i need to compile qt for cross platform compiling so i dont think that the prebuilt version is already configured for it.
    I also think that my problem is just in the hierarchy of the folders in nautilus . Just confused.
    Reinstalled it many times and actually one thing catches my eye. Every tut is for qt 5.12.0 but i always use other versions like 5.12.4 or 3 or even 5.13.
    Thinking about going through all of the emscripten stuff again and just try it out again.
    @sierdzio Do u have any idea where the searching is taking place when i try to run configure in Qt/5.12.3/Src and my emsdk folder lays in the same dir like the Qt folder?

    sierdzioS Offline
    sierdzioS Offline
    sierdzio
    Moderators
    wrote on last edited by
    #4

    @kuersat said in Problem with configuring Qt 5.12.4 for Qt for Webassembly:

    i need to compile qt for cross platform compiling so i dont think that the prebuilt version is already configured for it.

    The prebuilt Qt for WebAssembly is already cross-compiled. There is really no need to do it manually...

    @sierdzio Do u have any idea where the searching is taking place when i try to run configure in Qt/5.12.3/Src and my emsdk folder lays in the same dir like the Qt folder?

    What searching? It uses $PATH in normal builds, plus toolchain, sysroot when you specify the flags for cross-compilation. You can run configure with verbose flags to see more output, it might help.

    (Z(:^

    1 Reply Last reply
    0
    • K Offline
      K Offline
      kuersat
      wrote on last edited by
      #5

      ok i am trying to install 5.13 with the checkbox Webassembly additionally checked.
      So then my Qt is ready to cross compile for wasm -emscripten right?
      I could just set my kit up and start is that right?

      sierdzioS 1 Reply Last reply
      0
      • K kuersat

        ok i am trying to install 5.13 with the checkbox Webassembly additionally checked.
        So then my Qt is ready to cross compile for wasm -emscripten right?
        I could just set my kit up and start is that right?

        sierdzioS Offline
        sierdzioS Offline
        sierdzio
        Moderators
        wrote on last edited by
        #6

        @kuersat said in Problem with configuring Qt 5.12.4 for Qt for Webassembly:

        ok i am trying to install 5.13 with the checkbox Webassembly additionally checked.
        So then my Qt is ready to cross compile for wasm -emscripten right?
        I could just set my kit up and start is that right?

        For me the kit does not work in Qt Creator. But I can manually build by setting emscripted SDK in $PATH and then running qmake from Qt WASM installation, then make. Then I copy & paste the output files to a web server and it works. It's all described in the documentation pretty well.

        (Z(:^

        lorn.potterL 1 Reply Last reply
        0
        • sierdzioS sierdzio

          @kuersat said in Problem with configuring Qt 5.12.4 for Qt for Webassembly:

          ok i am trying to install 5.13 with the checkbox Webassembly additionally checked.
          So then my Qt is ready to cross compile for wasm -emscripten right?
          I could just set my kit up and start is that right?

          For me the kit does not work in Qt Creator. But I can manually build by setting emscripted SDK in $PATH and then running qmake from Qt WASM installation, then make. Then I copy & paste the output files to a web server and it works. It's all described in the documentation pretty well.

          lorn.potterL Offline
          lorn.potterL Offline
          lorn.potter
          wrote on last edited by
          #7

          @sierdzio said in Problem with configuring Qt 5.12.4 for Qt for Webassembly:

          @kuersat said in Problem with configuring Qt 5.12.4 for Qt for Webassembly:

          ok i am trying to install 5.13 with the checkbox Webassembly additionally checked.
          So then my Qt is ready to cross compile for wasm -emscripten right?
          I could just set my kit up and start is that right?

          For me the kit does not work in Qt Creator. But I can manually build by setting emscripted SDK in $PATH and then running qmake from Qt WASM installation, then make. Then I copy & paste the output files to a web server and it works. It's all described in the documentation pretty well.

          Support for building with QtCreator is not yet been released, but will be soonish.

          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
          0
          • K Offline
            K Offline
            kuersat
            wrote on last edited by
            #8

            @lorn-potter thanks for information.

            @all is anybody familiar with that error?

            ERROR root: http://localhost:8000/: No such file or directory ("http://localhost:8000/" was expected to be an input file, based on the commandline arguments provided)
            Makefile:73: recipe for target 'untitled.js' failed
            make: *** [untitled.js] Error 1
            14:53:36: Der Prozess "/usr/bin/make" wurde mit dem Rückgabewert 2 beendet.

            trying to do qmake in Qt which results in everything fine, after that trying to run the makefile with make and i get that problem. Idk why localhost should be an inputfile ? Cause i want to run a webserver on localhost and then with runtime support of .js file run my program in the browser.
            Thanks in advance

            jsulmJ 1 Reply Last reply
            0
            • K kuersat

              @lorn-potter thanks for information.

              @all is anybody familiar with that error?

              ERROR root: http://localhost:8000/: No such file or directory ("http://localhost:8000/" was expected to be an input file, based on the commandline arguments provided)
              Makefile:73: recipe for target 'untitled.js' failed
              make: *** [untitled.js] Error 1
              14:53:36: Der Prozess "/usr/bin/make" wurde mit dem Rückgabewert 2 beendet.

              trying to do qmake in Qt which results in everything fine, after that trying to run the makefile with make and i get that problem. Idk why localhost should be an inputfile ? Cause i want to run a webserver on localhost and then with runtime support of .js file run my program in the browser.
              Thanks in advance

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #9

              @kuersat said in Problem with configuring Qt 5.12.4 for Qt for Webassembly:

              is anybody familiar with that error?

              You should provide more context, at least the last command called before that error occurred.

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • K Offline
                K Offline
                kuersat
                wrote on last edited by
                #10

                the last command was make. As I mentioned I ran the Makefile. Before that i ran qmake right in Qt Creator.

                jsulmJ 1 Reply Last reply
                0
                • K kuersat

                  the last command was make. As I mentioned I ran the Makefile. Before that i ran qmake right in Qt Creator.

                  jsulmJ Offline
                  jsulmJ Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on last edited by
                  #11

                  @kuersat said in Problem with configuring Qt 5.12.4 for Qt for Webassembly:

                  the last command was make

                  No, make calls other commands like compiler, linker and what else needs to be called to build the application.
                  Can you post what is before that line

                  ERROR root: http://localhost:8000/: No such file or directory ("http://localhost:8000/" was expected to be an input file, based on the commandline arguments provided)
                  

                  ?

                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0
                  • K Offline
                    K Offline
                    kuersat
                    wrote on last edited by
                    #12

                    there is nothing.
                    Look, I am in Qt Creator I just "click" on "qmake". After that qmake generated a makefile which is 800 lines long so.
                    In the folder I have now my .qml .pro .cpp .h and the Makefile.
                    So then I switch to Terminal and just run the makefile to get the necessary file. e.g .js .wasm to run in the browser.
                    But all I get is the .js the .wasm doesnt appear.
                    So thats the issue.
                    Of coruse i need to set the environment in the terminal active before I do this stuff. That's all I got. There is nothing special before that command. Maybe I dont get what you want

                    1 Reply Last reply
                    0
                    • K Offline
                      K Offline
                      kuersat
                      wrote on last edited by
                      #13

                      hey guys this problem has been solved by installing qt 5.13 with Installer.
                      Additionally just clone emsdk from git and follow instructions in qt documentation.
                      Now I can compile and run in Browser.
                      But still its a bit problematic with qt cause you just cant run from qt. Hope that the release comes soon to build directly from Qt

                      I wanted to ask you guys a question in relation to qt configuring kits. The webassembly kit it could not find any ABI and that qml scene is not installed. Its a warning but I can still do qmake and make and run the project in the browser.

                      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