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. Trying to Configure Qt for Windows Desktop after Building for Wasm
Forum Updated to NodeBB v4.3 + New Features

Trying to Configure Qt for Windows Desktop after Building for Wasm

Scheduled Pinned Locked Moved Solved Qt for WebAssembly
3 Posts 1 Posters 690 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.
  • D Offline
    D Offline
    DragonOsman
    wrote on 8 Nov 2019, 14:33 last edited by DragonOsman 11 Aug 2019, 14:34
    #1

    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[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.

    1 Reply Last reply
    0
    • D Offline
      D Offline
      DragonOsman
      wrote on 11 Nov 2019, 11:43 last edited by DragonOsman 11 Nov 2019, 12:58
      #2

      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: 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 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: https://gist.github.com/DragonOsman/c13d23ceca50244fb4a195f67d8e613d .

      1 Reply Last reply
      0
      • D Offline
        D Offline
        DragonOsman
        wrote on 12 Nov 2019, 13:06 last edited by DragonOsman 11 Dec 2019, 13:14
        #3
        This post is deleted!
        1 Reply Last reply
        0

        2/3

        11 Nov 2019, 11:43

        • Login

        • Login or register to search.
        2 out of 3
        • First post
          2/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved