Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-118900

Building Qt on Windows with a multi-config build fails with missing dll

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 6.5.2
    • Build System: CMake
    • None
    • Windows

    Description

      I'm trying to build Qt from sources on Windows/MSVC. I'm using a multi-config release+debug build, so that I can have compatible Qt versions for both DEBUG and _NDEBUG CRTs.

      I'm using the following commands:

       

      cmake -S qtbase -B build-qtbase "-DCMAKE_GENERATOR=Ninja Multi-Config" "-DCMAKE_CONFIGURATION_TYPES=Release;Debug"
      cmake --build build-qtbase --config Release
      cmake --build build-qtbase --config Debug
      

       

       

      The last command fails when trying to execute rcc.exe during the build. Apparently, the tool ( when built for the non-default configuration) is placed in the build-qtbase/bin/Debug directory, while the required Qt DLLs are in build-qtbase/bin, so the dynamic loader can't find them.

      Is this a bug? Is there a different way to build Qt for Windows?

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              qtbuildsystem Qt Build System Team
              anszom Andrzej Szombierski
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes