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

QtWidgets and libQt5Widgets.a are missing in a qmake generated Makefile.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 5.14.2
    • Build System
    • None
    • compiler: gcc version 7.3.0 (x86_64-posix-seh-rev0, Built by MinGW-W64 project)
      operating system: Windows 10 Professional (x64) Version 1903 (build 18362.836)
      Qt/5.14.2
    • Windows

    Description

      The following command sequence against a trivial hello.cpp:

      > qmake -project
      > qmake hello.pro
      > make

      gives you an error message below.

      hello.cpp:1:10: fatal error: QApplication: No such file or directory
      #include <QApplication>

      I looked into Makefile.Release to find out:

      INCPATH = ... -IC:\Qt\5.14.2\mingw73_64\include\QtWidgets ...

      LIBS = ... C:\Qt\5.14.2\mingw73_64\lib\libQt5Widgets.a ...

      are missing.

       

      I manually inserted the above two items to see it works perfect.

      The same problem also happens against Visual Studio environment.

       

      Attachments

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

        Activity

          People

            qtbuildsystem Qt Build System Team
            mamoruasagami Mamoru Asagami Asagami
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes