Search code examples
qtqt-creator

how add new MinGW compiler as kit in QT and windows 10


I want to add one kit to Qt:

I download and install MinGW from msys2 because it has some more options than Qt default MinGW, I want to build my app with this and use CMake.

I don't know how should do this, I see QT documentation and I do this :

1.In tools/options I add a new manual kit

enter image description here

2.In compiler it autodetects but didn't recognize it and I think this is a problem but I don't know how to fix it

enter image description here

here are the path and folders of MinGW that I installed.

enter image description here

If I want to add compiler manually which of these should I add in the c++ and c sections?

I use windows 10 and Qt 5.15.2.

Thanks.


Solution

  • I fixed my problem by doing the following things :

    1. put msys2 MinGW compiler path in my system path like this :

    enter image description here

    1. By doing this, QT Creator autodetects Compiler.

    enter image description here

    1. Add kit and set its name and compiler like QT Documentation

    enter image description here