How to change compiler in QT Creator?
-
wrote on 25 Feb 2022, 12:26 last edited by
Hi,
Two years ago I installed QT 5.14.0. I use compiler MinGW 7.3.0. Now I would like to use compiler MinGW 8.1.0, which I can download using QT online installer.
What's next?
I know that I have to go to Tools -> Options -> Compilers.
I add here
g++.exe
andgcc.exe
from....\Tools\mingw810_64\bin\
folder.Now I have to add qmake.exe ( qt version tab in Kits ). I don't have it on my
....\Tools\mingw810_64\bin\
folder. I can use only from......\Qt5.14.0\5.14.0\mingw73_64\bin
, but when I select it I get error, that this version is already registered. I can copy fileqmake.exe
from......\Qt5.14.0\5.14.0\mingw73_64\bin
folder and paste it to the....\Tools\mingw810_64\bin\
folder, but I don't know is it the correct solution.And what's next?
-
If your installation is correct, the "Re-detect" button recognizes all compilers as well as qmake, which should be in compiler's bin subdirectory. Copying a qmake.exe binary from an older compiler version may be worth a try but it is likely to break. If your binary installation is broken and you don't find the missing qmake.exe, you have to compile it from source using cmake.
1/2