Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. qmake problem with webassembly on windows
Forum Updated to NodeBB v4.3 + New Features

qmake problem with webassembly on windows

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
8 Posts 2 Posters 1.5k 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
    Trigve
    wrote on last edited by
    #1

    Hi,
    I'm trying to compile my sample project on windows as webassembly.

    I have generated the .pro file from the VS tool (VS 2017). Then I'm opening the .pro file in the Qt Creator and running qmake inside (I've already set the wasm buildset, compilers, ...).

    When I run the qmake I get this:

    09:54:43: Running steps for project clientQt...
    09:54:44: Starting: "D:\xxx\Qt\5.15.2\wasm_32\bin\qmake.exe" D:\yyy\clientQt\clientQt.pro -spec wasm-emscripten "CONFIG+=debug" "CONFIG-=qml_debug" "CONFIG-=qtquickcompiler"
    Project MESSAGE: You are running qmake on a generated .pro file. This may not work!
    WARNING: Unable to generate output for: D:/yyy/clientQt/qt_build/Makefile [TEMPLATE Winifo2]
    QIODevice::write: device not open
    09:54:44: The process "D:\xxx\Qt\5.15.2\wasm_32\bin\qmake.exe" exited normally.
    09:54:44: Starting: "D:\xxx\Qt\Tools\mingw810_32\bin\mingw32-make.exe" -f D:/yyy/clientQt/qt_build/Makefile qmake_all
    mingw32-make: D:/yyy/clientQt/qt_build/Makefile: No such file or directory
    mingw32-make: *** No rule to make target 'D:/yyy/clientQt/qt_build/Makefile'.  Stop.
    09:54:44: The process "D:\xxx\Qt\Tools\mingw810_32\bin\mingw32-make.exe" exited with code 2.
    Error while building/deploying project clientQt (kit: Qt 5.15.2 Wasm)
    The kit Qt 5.15.2 Wasm has configuration issues which might be the root cause for this problem.
    When executing step "qmake"
    09:54:44: Elapsed time: 00:01.
    

    I've searched for the answer but without success.

    Anyone knows where could be the problem?

    Thank you

    jsulmJ 1 Reply Last reply
    0
    • T Offline
      T Offline
      Trigve
      wrote on last edited by
      #8

      Ahhh crap! The "template" in the .pro had a typo (had "apps" need to be "app").

      1 Reply Last reply
      1
      • T Trigve

        Hi,
        I'm trying to compile my sample project on windows as webassembly.

        I have generated the .pro file from the VS tool (VS 2017). Then I'm opening the .pro file in the Qt Creator and running qmake inside (I've already set the wasm buildset, compilers, ...).

        When I run the qmake I get this:

        09:54:43: Running steps for project clientQt...
        09:54:44: Starting: "D:\xxx\Qt\5.15.2\wasm_32\bin\qmake.exe" D:\yyy\clientQt\clientQt.pro -spec wasm-emscripten "CONFIG+=debug" "CONFIG-=qml_debug" "CONFIG-=qtquickcompiler"
        Project MESSAGE: You are running qmake on a generated .pro file. This may not work!
        WARNING: Unable to generate output for: D:/yyy/clientQt/qt_build/Makefile [TEMPLATE Winifo2]
        QIODevice::write: device not open
        09:54:44: The process "D:\xxx\Qt\5.15.2\wasm_32\bin\qmake.exe" exited normally.
        09:54:44: Starting: "D:\xxx\Qt\Tools\mingw810_32\bin\mingw32-make.exe" -f D:/yyy/clientQt/qt_build/Makefile qmake_all
        mingw32-make: D:/yyy/clientQt/qt_build/Makefile: No such file or directory
        mingw32-make: *** No rule to make target 'D:/yyy/clientQt/qt_build/Makefile'.  Stop.
        09:54:44: The process "D:\xxx\Qt\Tools\mingw810_32\bin\mingw32-make.exe" exited with code 2.
        Error while building/deploying project clientQt (kit: Qt 5.15.2 Wasm)
        The kit Qt 5.15.2 Wasm has configuration issues which might be the root cause for this problem.
        When executing step "qmake"
        09:54:44: Elapsed time: 00:01.
        

        I've searched for the answer but without success.

        Anyone knows where could be the problem?

        Thank you

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

        @Trigve said in qmake problem with webassembly on windows:

        WARNING: Unable to generate output for: D:/yyy/clientQt/qt_build/Makefile [TEMPLATE Winifo2]
        QIODevice::write: device not open

        Is the D drive connected? qmake can't write there for some reason.

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

        T 1 Reply Last reply
        0
        • jsulmJ jsulm

          @Trigve said in qmake problem with webassembly on windows:

          WARNING: Unable to generate output for: D:/yyy/clientQt/qt_build/Makefile [TEMPLATE Winifo2]
          QIODevice::write: device not open

          Is the D drive connected? qmake can't write there for some reason.

          T Offline
          T Offline
          Trigve
          wrote on last edited by Trigve
          #3

          @jsulm Thank you for the reply, yes the D: is connected, it's my second disk. I was thinking of forward slashes, as it may be potentially the problem but the path is generated by qmake presumably.

          jsulmJ 1 Reply Last reply
          0
          • T Trigve

            @jsulm Thank you for the reply, yes the D: is connected, it's my second disk. I was thinking of forward slashes, as it may be potentially the problem but the path is generated by qmake presumably.

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

            @Trigve Try with a build directory on C: to see whether it makes a difference

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

            T 1 Reply Last reply
            0
            • jsulmJ jsulm

              @Trigve Try with a build directory on C: to see whether it makes a difference

              T Offline
              T Offline
              Trigve
              wrote on last edited by
              #5

              @jsulm I've tried on C:\ and the error is same.

              Sorry for late reply, but I could post no more than 1 message in 10 minutes.

              jsulmJ 1 Reply Last reply
              1
              • T Trigve

                @jsulm I've tried on C:\ and the error is same.

                Sorry for late reply, but I could post no more than 1 message in 10 minutes.

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

                @Trigve I upvoted you, now there should not be 10min limit.
                Try to disable the antivirus-software.

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

                T 1 Reply Last reply
                0
                • jsulmJ jsulm

                  @Trigve I upvoted you, now there should not be 10min limit.
                  Try to disable the antivirus-software.

                  T Offline
                  T Offline
                  Trigve
                  wrote on last edited by
                  #7

                  @jsulm Thank you for the upvote ;)

                  Tried disabling the AV, but no luck.

                  1 Reply Last reply
                  0
                  • T Offline
                    T Offline
                    Trigve
                    wrote on last edited by
                    #8

                    Ahhh crap! The "template" in the .pro had a typo (had "apps" need to be "app").

                    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