Details
-
Bug
-
Resolution: Invalid
-
P2: Important
-
None
-
5.14.2
-
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
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.