[Qt-creator] Qt Creator ignoring gcc compiler in kit

Tobias Hunger tobias.hunger at gmail.com
Mon Dec 17 19:59:55 CET 2018


Hi Davide,

On Mon, Dec 17, 2018 at 4:40 PM Davide Coppola <vivaladav at gmail.com> wrote:

> I can't manage to get Qt Creator to use an older compiler on Linux using
> kits.
>

The toolchain in the kit is mostly for use in C++ code model. The actual
build system is told what was set up -- if that is possible.

Which build system are you using?

Qmake is the odd one out here: It tends to hard-code compiler executable
names into its mkspec files and there is no reliable way to override it. So
this is kind of expected for qmake...

To have qmake pick up a non-default named compiler, you can try two things:
* Change the mkspec
* Create a folder somewhere, put a symlink called gcc/g++ into it and have
those links point to whatever gcc you want. Then set PATH to include your
folder before anything else that includes a gcc/g++ binary.

I hope this helps,
Tobias
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20181217/51cd4b7b/attachment.html>


More information about the Qt-creator mailing list