6
 "/usr/bin/g++" is used by qmake, but "/usr/bin/gcc" is configured in the kit.
 please update your kit of choose a mkspec for qmake that matches your target environment better.

couldn't find any way how to change the complier used by qmake to match the one configured by the kit.

one Tools > Options > Build & Run > kit . there is no way to change the qmake complier back to gcc. and the problem is there is only gcc and clang auto detected by qt 5.9

Zak
  • 103
  • 1
  • 7

2 Answers2

1

Tools->Options->build & run->compiler has the settings you need to fix that,
or add new kit, this my kit settings

enter image description here

Vahagn Avagyan
  • 750
  • 4
  • 16
  • couldn't find how to replace g++ with gcc, it automatically detect gcc but don't know how to replace it with g++. – Zak Jul 14 '17 at 14:23
  • If you have windows then Tools->Options->build & run->compiler cheange in MinGW – Vahagn Avagyan Jul 14 '17 at 14:35
  • MinGW compiler gcc – Vahagn Avagyan Jul 14 '17 at 14:42
  • Thank you for the answer. The problem was that i installed Two versions of Qt and i think there config or something overlapped so the g++ option didn't appear until i remove both versions and installed Qt 5.9.1 again the g++ option appeared and now i don't have the issue any more – Zak Jul 14 '17 at 19:34
1

The problem was that i installed Two versions of Qt and i think there config or something overlapped so the g++ option didn't appear until i remove both versions and installed Qt 5.9.1 again the g++ option appeared and now i don't have the issue any more .

Zak
  • 103
  • 1
  • 7