Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/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 https://github.com/qt/qt5 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: Entering directory 'C:/qt5/qtquick3d/src/plugins/assetimporters/assimp' mingw32-make: *** No rule to make target 'C:/qt5/qtquick3d/src/3rdparty/assimp/src/code/Assimp.cpp', needed by '.obj\Assimp.obj'. Stop. mingw32-make: Leaving directory 'C:/qt5/qtquick3d/src/plugins/assetimporters/assimp' mingw32-make: *** [Makefile:85: sub-assimp-install_subtargets] Error 2 mingw32-make: Leaving directory 'C:/qt5/qtquick3d/src/plugins/assetimporters' mingw32-make: *** [Makefile:59: sub-assetimporters-install_subtargets] Error 2 mingw32-make: Leaving directory 'C:/qt5/qtquick3d/src/plugins' mingw32-make: *** [Makefile:206: sub-plugins-install_subtargets-ordered] Error 2 mingw32-make: Leaving directory 'C:/qt5/qtquick3d/src' mingw32-make: *** [Makefile:62: sub-src-install_subtargets] Error 2 mingw32-make: 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-msvc2019as the argument for
-platform, I got the output shown in this Gist: https://gist.github.com/DragonOsman/3c198095a61a7c38e2b019d3a964d416 . 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
nmakewith no arguments. Any help is appreciated. Thanks in advance.
Edit: I tried again after re-configuring and this time not passing
-staticat all, but it still failed. Here's the build log from the recent try: https://gist.github.com/DragonOsman/c13d23ceca50244fb4a195f67d8e613d .
This post is deleted!