Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. How to change compiler in QT Creator?
Forum Updated to NodeBB v4.3 + New Features

How to change compiler in QT Creator?

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
2 Posts 2 Posters 1.9k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Tomi
    wrote on 25 Feb 2022, 12:26 last edited by
    #1

    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 and gcc.exe from ....\Tools\mingw810_64\bin\ folder.

    compilers.png

    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 file qmake.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?

    1 Reply Last reply
    0
    • A Offline
      A Offline
      Axel Spoerl
      Moderators
      wrote on 25 Feb 2022, 17:16 last edited by
      #2

      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.

      Software Engineer
      The Qt Company, Oslo

      1 Reply Last reply
      0

      1/2

      25 Feb 2022, 12:26

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved