Qt 5.7.1 32bit No suitable compiler.
I'm totally new to Qt. I've just installed it. Under my Qt versions it say, "no suitable compiler can produce code for this Qt version. Please define one or more compilers."
I have MinGW and Qt even auto detected it. (It works just fine with NetBeans and Code Blocks). Other forums suggested the only fix is to use the MinGW offered during the Qt installation. This was NOT an option.
I have tried installing different versions of MinGW and Qt 64 5.7 and 32 5.6. No change. I even tried installing MinGW inside of Qt Tools folder... I'm grasping at straws. Any ideas?
If anyone else has this problem, here is the only solution I could find.
MinGW doesn't work.
Download Microsoft Visual Studios 2015.
(by default mcvs does NOT come with a compiler)
After it is installed, go to your edit programs (how you would normally uninstall a program) and double click "Microsoft Visual Studio Community 2015 with updates" and click "modify".
Then check the Visual c++ (I also checked "Python tools" but it will probably work without that.) and click "update". It took about four hours to update but then Qt automatically found the mcvs c++ compiler and it works just fine.
Using Qt 5.7.1 for Windows 32-bit (MinGW 5.3.0, 1.1 GB) normally always works.
You cannot just use a random mingw you have installed as Qt is DLLs and on windows, there really must be a strict
match between the compiler used to build the Qt and compiler used for the App.
So it sounds like you just did it wrong and you wanted to use another compiler than MinGW 5.3.0
but and did not recompile Qt to use that one instead of the bundled version.
So MinGW works fine as long as you follow the rules :)
- Other forums suggested the only fix is to use the MinGW offered during the Qt installation. This was NOT an option.
Its not a fix, it is how it works.
Just like you CANNOT use Qt vs2013 with VS 2015,
you cannot just have some random mingw installed and expect it to work :)