Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
[SOLVED] Adding mingw kit to an existing Qt 5.1.0 MSVC2010 installation
I installed Qt 5.1.0 for MSVC2010 (OpenGL) with Qt Creator 2.7.2. Now I need some code to compile with MinGW.
I installed the latest MinGW version, configured Qt Creator to point to gcc.exe (Build & Run -> Compilers) but when I try to make a new kit I get the following error (as a tooltip from the exclamation mark):
The compiler 'MinGW' (x86-windows-msys-pe-32bit) cannot produce code for the Qt version 'Qt 5.1.0 (msvc2010_opengl)' (x86-windows-msvc2010-pe-32bit).
Any assistance will be welcome!
The error message is absolutely right: MSVC and MinGW compilers do not produce compatible binaries, so you can't mix them. If you want to compile with MinGW, you need to compile/ install Qt libraries with MinGW.
Ah! :) Thank you. That was silly. If I used the online installer, would I have the option to choose the two different options: (MSVC2010+OpenGL and MinGW)?
I think you will need the MingW version of Qt 5.1.0 installed.
Edit: Didn't refresh the page ;)
[quote author="frankiefrank" date="1382351605"]Ah! :) Thank you. That was silly. If I used the online installer, would I have the option to choose the two different options: (MSVC2010+OpenGL and MinGW)?[/quote]
I don't know, I'm not using any of the installers myself.
Solved, sort of. I didn't manage to add the kit at the time, but after using the brand new web installer I could select all the kits I needed. So works for me now.