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. Problem running configure for wasm on Windows
Forum Update on Monday, May 27th 2025

Problem running configure for wasm on Windows

Scheduled Pinned Locked Moved Unsolved Qt for WebAssembly
5 Posts 4 Posters 796 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.
  • G Offline
    G Offline
    GaryT
    wrote on 16 Nov 2019, 01:27 last edited by
    #1

    Hi all,
    I am trying to configure QT 5.13.2 for wasm on windows. I added SED and MinGW to the path statement. Here is the command I used to configure:

    configure -no-warnings-are-errors -xplatform wasm-emscripten -platform win32-g++ -nomake examples -prefix %CD%\qtbase.

    The configure ran for a while and the stopped with errors. Here are a few of the error lines. Any help would be much appreciated.

    Thanks
    Gary

    -DQT_VERSION_STR="5.13.2" -DQT_VERSION_MAJOR=5 -DQT_VERSION_MINOR=13 -DQT_VERSION_PATCH=2 -DQT_BUILD_QMAKE -DQT_BOOTSTRAPPED -DPROEVALUATOR_FULL -DQT_NO_FOREACH C:/Qt/5.13.2/Src/qtbase/qmake/library/qmakebuiltins.cpp
    C:/Qt/5.13.2/Src/qtbase/qmake/library/qmakebuiltins.cpp: In member function 'QByteArray QMakeEvaluator::getCommandOutput(const QString&, int*) const':
    C:/Qt/5.13.2/Src/qtbase/qmake/library/qmakebuiltins.cpp:76:18: error: '_popen' was not declared in this scope
    #define QT_POPEN _popen
    ^~~~~~
    C:/Qt/5.13.2/Src/qtbase/qmake/library/qmakebuiltins.cpp:540:22: note: in expansion of macro 'QT_POPEN'
    if (FILE *proc = QT_POPEN(QString(QLatin1String("cd ")
    ^~~~~~~~
    C:/Qt/5.13.2/Src/qtbase/qmake/library/qmakebuiltins.cpp:76:18: note: suggested alternative: '_lopen'
    #define QT_POPEN _popen
    ^~~~~~
    C:/Qt/5.13.2/Src/qtbase/qmake/library/qmakebuiltins.cpp:540:22: note: in expansion of macro 'QT_POPEN'
    if (FILE *proc = QT_POPEN(QString(QLatin1String("cd ")

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lorn.potter
      wrote on 18 Nov 2019, 19:42 last edited by
      #2

      What version and path is your MinGW?

      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
      • G Offline
        G Offline
        GaryT
        wrote on 19 Nov 2019, 18:17 last edited by
        #3

        Here is my path statement. There is a lot you probably don't care about but I included it all. I downloaded and installed the latest including the MSYS utilities. Sorry, I am not familiar with the MinGW toolset. It's a little unclear to me what version the Mingw is as different parts seem to have separate versions.

        Thanks for your help.
        Gary

        C:\emsdk;C:\emsdk\fastcomp\emscripten;
        C:\emsdk\python\2.7.13.1_64bit\python-2.7.13.amd64;
        C:\emsdk\java\8.152_64bit\bin;
        C:\emsdk\node\8.9.1_64bit\bin;
        C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\iCLS;
        C:\Program Files\Intel\Intel(R) Management Engine Components\iCLS;
        C:\Program Files (x86)\Windows Resource Kits\Tools;
        C:\Perl64\site\bin;C:\Perl64\bin;
        %SystemRoot%\system32;
        %SystemRoot%;
        %SystemRoot%\System32\Wbem;
        %SYSTEMROOT%\System32\WindowsPowerShell\v1.0;
        C:\Program Files\Microsoft SQL Server\120\Tools\Binn;
        C:\Program Files\Microsoft\Web Platform Installer;
        C:\Program Files\Microsoft SQL Server\130\Tools\Binn;
        C:\Program Files (x86)\Calibre2;C:\Program Files\PuTTY;
        C:\Program Files (x86)\WiX Toolset v3.11;
        C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;
        C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;
        C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;
        C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;
        %SYSTEMROOT%\System32\OpenSSH;
        C:\Program Files (x86)\IncrediBuild;
        C:\Program Files\Git\cmd;
        C:\Program Files\Intel\WiFi\bin;
        C:\Program Files\Common Files\Intel\WirelessCommon;
        C:\MinGW\bin;
        C:\Program Files (x86)\GnuWin32\bin;

        1 Reply Last reply
        0
        • Y Offline
          Y Offline
          YongQ
          wrote on 1 Jan 2021, 10:29 last edited by
          #4

          Just use the Qt default mingw build tool,everything will works。
          3cb94756-8114-47a4-bceb-d8db35f88c8e-image.png

          G 1 Reply Last reply 1 Jan 2021, 10:37
          0
          • Y YongQ
            1 Jan 2021, 10:29

            Just use the Qt default mingw build tool,everything will works。
            3cb94756-8114-47a4-bceb-d8db35f88c8e-image.png

            G Offline
            G Offline
            Ghost0830
            wrote on 1 Jan 2021, 10:37 last edited by
            #5

            @YongQ wow u r so damn good

            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