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

Qt 6/Windows: Building a Gui example with qmake from cmake prefix build fails due to "dependent ' ... qtmaind.lib' does not exist

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • 6.0
    • Build System: CMake
    • Windows
    • e7d12b876ab7d80b0eb983d6d5c90f64bfafed02 (qt/qtbase/dev)

    Description

      After building Qt 6 at qtbase 3fbf7b34cc2242559a047c3868855c9de6f0c3d3 using

       cmake -DCMAKE_INSTALL_PREFIX=f:\dev\qt-dev\install-qt-dev -GNinja 
         -DBUILD_TESTING=OFF -DBUILD_EXAMPLES=OFF
         -DCMAKE_BUILD_TYPE=Debug -Hf:\dev\qt-dev\qt-dev\qtbase
      

      and then trying build an example (with https://paste.ubuntu.com/p/vF8RZvnG34/ ) or test

       f:\dev\qt-dev\qt-dev\qtbase\examples\widgets\mainwindows\mdi>
      qmake && jom
      
              c:\bin\jom.exe -f Makefile.Debug
       Error: dependent 'F:\dev\qt-dev\install-qt-dev\lib\qtmaind.lib' does not exist.
       jom: F:\dev\qt-dev\qt-dev\qtbase\examples\widgets\mainwindows\mdi\Makefile [debug] Error 2
      

      It can be worked around by adding CONFIG+=console.

      The library does not indeed not exist.

      Attachments

        Issue Links

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

          Activity

            People

              jbornema Joerg Bornemann
              kleint Friedemann Kleint
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes