Important: Please read the Qt Code of Conduct -

Trying to Configure Qt for Windows Desktop after Building for Wasm

  • I want to configure a build for Windows Desktop after building it for Wasm. I downloaded the source from by the way, and I configured for Wasm with

    configure -no-warnings-are-errors -xplatform wasm-emscripten -platform win32-g++ -nomake examples -prefix C:/qt5/qtbase/wasm32 -feature-thread -device-option WASM_OBJECt_FILES=1

    from within a directory I created within the root directory called "build". When I built it, I had Error 2s generated for some of the stuff. It already went too high up in the Command Prompt so I can't see it anymore. I had a similar error when installing, though, and that I do have:

    mingw32-make[5]: Entering directory 'C:/qt5/qtquick3d/src/plugins/assetimporters/assimp'
    mingw32-make[5]: *** No rule to make target 'C:/qt5/qtquick3d/src/3rdparty/assimp/src/code/Assimp.cpp', needed by '.obj\Assimp.obj'.  Stop.
    mingw32-make[5]: Leaving directory 'C:/qt5/qtquick3d/src/plugins/assetimporters/assimp'
    mingw32-make[4]: *** [Makefile:85: sub-assimp-install_subtargets] Error 2
    mingw32-make[4]: Leaving directory 'C:/qt5/qtquick3d/src/plugins/assetimporters'
    mingw32-make[3]: *** [Makefile:59: sub-assetimporters-install_subtargets] Error 2
    mingw32-make[3]: Leaving directory 'C:/qt5/qtquick3d/src/plugins'
    mingw32-make[2]: *** [Makefile:206: sub-plugins-install_subtargets-ordered] Error 2
    mingw32-make[2]: Leaving directory 'C:/qt5/qtquick3d/src'
    mingw32-make[1]: *** [Makefile:62: sub-src-install_subtargets] Error 2
    mingw32-make[1]: Leaving directory 'C:/qt5/qtquick3d'
    mingw32-make: *** [Makefile:378: module-qtquick3d-install_subtargets] Error 2

    Anyway, when I tried to reconfigure for a Windows Desktop build, I had this error at the end:

    Project ERROR: You cannot configure qt separately within a top-level build.

    So what do I do so I can build it? Is there a way to not build it from a top-level build, but still be able to get to all of the modules and stuff that I want to build? If so, how do I do it? I'd also like to know what modules to build for a Windows build. What modules is the prebuilt binaries version of Qt 5.13 built with? I think I'll just build all of those.

  • I was able to configure an out-of-source build, passing win32-msvc2019 as the argument for -platform, I got the output shown in this Gist: . Notice the errors. I configured with this command:

    C:/qt5/configure -static -release -opensource -feature-thread -qt-zlib -qt-libjpeg -qt-libpng -platform win32-msvc2019 -prefix C:/qt5/qtbase/win32-msvc2019

    from a separate directory outside the Qt source directory and tried to build by running just nmake with no arguments. Any help is appreciated. Thanks in advance.

    Edit: I tried again after re-configuring and this time not passing -static at all, but it still failed. Here's the build log from the recent try: .

  • This post is deleted!

Log in to reply