Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Can't create a qt project with qmake
Hi, i have a big problem when i create or open a project in Qt Creator. I installed several times qt but nothing seems changing. Right now i'm working with Qt 5.15.2 and basically when i create a new project, in the project window appears only the .pro file, but the source files are not included. When i run the qmake or try to build, several errors appear:
C:/Qt/5.15.2/mingw81_64/mkspecs/features/toolchain.prf:76: Variable QMAKE_CXX.COMPILER_MACROS is not defined.
Project ERROR: failed to parse default search paths from compiler output
10:31:20: The process "C:\Qt\5.15.2\mingw81_64\bin\qmake.exe" exited with code 3.
Error while building/deploying project TEST (kit: Desktop Qt 5.15.2 MinGW 64-bit)
When executing step "qmake"
In manage kits, Kits, Qt Versions and Compilers aren't giving any problems. Can someone help me?
I guess you are on windows. ?
Anyway, does this also happens for the exsamples ?
Yes i'm working with windows 10 and yes it happens also for the examples
And you configure project to use mingw and mingw was installed together
with Qt (for mingw)
Do you have visual studio installed?
Plenty of other people seems to have had this bug but that's for 5.9 version. not in 5.15.2
so i do wonder
Yes i configure the project to work with mingw and i install it togheter with qt .
No i don't have visual studio installed
I think you are experiencing this bug
You could try older Qt if its not critical to use 5.15
Make sure to uninstall the 5.15.2 one first. reboot and then
install a bit older version.
OK, it's not a problem to change version, which one do you suggest to install?
Right now i'm using the 5.13.2 version but i still have the same problem
the 5.15.2 is the one that i used
Well, any other version would do to test but i
was thinking like 5.9.9 just to see with very other version.
but after googling around I guess it will happen to any version.
From what i understand, this can come from
1: having a stale .qmake.stash in project folder or in search path.
--It sounds like its first time you try to use Qt so why would have such file around.
--Also the examples does the same, so cant be your project.
2: The virus scanner was the reason as it would do silly stuff during installation/and or compile.
--So do you have something special installed besides Windows Defender ?
3: Broken Qt installation.
--But you reinstalled many times so cant be that.
Yes, it can be the virus scanner, but i don't have the permissions to disable it.