Problems with Open-Source Downloads read https://www.qt.io/blog/problem-with-open-source-downloads and https://forum.qt.io/post/638946

Problem running configure for wasm on Windows



  • 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 ")



  • What version and path is your MinGW?



  • 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;



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



  • @YongQ wow u r so damn good


Log in to reply