Uploaded image for project: 'Qt Creator'
  1. Qt Creator

GCC compiler version specified in kit is ignored by qmake



    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Out of scope
    • Affects Version/s: Qt Creator 4.7.2, Qt Creator 4.8.0
    • Fix Version/s: None
    • Labels:
    • Environment:
      Kubuntu Linux 18.10
      gcc 5.5.0
      gcc 8.2.0
      Clang 7.0.0
    • Platform/s:


      On my Linux system I have multiple versions of gcc, hence I created several kits to choose which one to use to compile.

      When building a qmake project the compiler chosen in the active kit is always ignored and the default gcc compiler is used.


      According to the Qt Creator manual:

      In the Compiler field, select the C or C++ compiler used to build the project.

      Which means that the kit is supposed to set the active compiler for the build.


      The right compiler is chosen when I use a kit based on Clang.

      Furthermore, everything is fine when the project is based on Qbs or CMake.


      Steps to reproduce

      A Linux system with multiple versions of gcc installed is required

      1. Create a kit for each version of gcc
      2. Create a Qt Console Application project and choose qmake as build system
      3. Copy the main.cpp attached in this report
      4. Build the project using a kit which is not based on the default compiler (for example gcc 5.5.0 in my case)
      5. Run the project and verify that the compiler used is always the default one (8.2.0 in my case)



          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.



              • Assignee:
                hunger Tobias Hunger
                vivaladav Davide Coppola
              • Votes:
                0 Vote for this issue
                3 Start watching this issue


                • Created:

                  Gerrit Reviews

                  There are no open Gerrit changes