Solved Qt creator 4.10 changes Kit configurations automatically !!!
-
Hello Team,
Below is my Qt configuration.
Qt creator :- 4.10.1
Qt versions :- 5.13.1(with MinGW 7.30) & 4.8.7 (with MinGW 5.2)there is project dependency on perl hence, I have installed strwberry perl (5.8)
Problem statement:- I have configured Qt 4.8.7 in my qt creator with MinGW when I relaunch the qt creator it changes the compiler from MinGW to strwberry path automatically ??!!!
-
@ankit-thakar said in Qt creator 4.10 changes Kit configurations automatically !!!:
when I relaunch the qt creator it changes the compiler from MinGW to strwberry path automatically ??!!!
- What does your "Compiler" tab show? Are you able to remove the Strawberry MinGW from the list?
- Was Strawberry added to your global system PATH? If so, remove it an restart Qt Creator. It is best to add the Strawberry path to the project only, not to your whole operating system.
-
@JKSH
Yes, i am able to remove from there. And yes, strawberry path is there in my system variables and i tried to remove that and re launched Qt.In this way it works fine. But here the question is once user has configured any kit then Qt creator shouldn't change it !!!!
That's what my question is...
-
Hi @ankit-thakar ,
AFAIK, the
make
command calls all compilers without path, only by name. So even if the correct compiler would be shown in Creator, it would fail in the build process.That is the reason why you should not have compilers in the global path, only in the build environment. It has been like that on Windows forever, to be able to compile you had to open a Visual Studio or MinGW command prompt.
Regards
-
Hey,
I have the same problem here running Qt Creator in Ubuntu. I change the kit to use clang but when I restart qt creator or change project it moves the compiler back to gcc instead.
-
I have the same issue on Ubuntu 18.04 with QtCreator 4.11.1 : my Desktop Clang kit change of compiler, from Clang to GCC, automatically after restarting QtCreator.
It seems that a bug report related to this issue already exist (https://bugreports.qt.io/browse/QTCREATORBUG-23417) with no resolution or workaround yet.
-
In case someone finds the same problem as me.
Qt Creator 4.11 keeps resettinig compiler from clang to GCC, unless "linux-clang" is specified in "Qt mkspecs".
Qt Creator 4.14 doesn't seem to have this bug. But this version is still not in repos of some major distros. I.e., Linux Mint 20 has Qt Creator 4.11 in repo.