G ++ is used by qmake and gcc is configured by the bundle

 "/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.

      

could not find a way to change the compiler used by qmake to match the setting given by the bundle.

single tool> Options> Build & Run> Kit. there is no way to change qmake complier back to gcc. and the problem is that only qcc and clang are automatically detected by qt 5.9

+3


source to share


2 answers


The problem was that I installed two versions of Qt, and I think there is a config or something overlapping there, so the g ++ option didn't appear until I uninstalled both versions and installed Qt 5.9.1 again, and the g ++ option appeared and now I don't know if you have a problem.



+1


source


Tools-> Options-> Build and Run-> the compiler has the settings needed to fix that, or add a new set, these are my set settings



enter image description here

+1


source







All Articles