Unsolved using the right compiler in QT Creator
bhatiaharsh last edited by
I just upgraded to Qt5 and the corresponding Creator (through macports), and have trouble pointing the IDE to the right compiler. I created a new Kit that points to my latest gcc compiler, and tried using it to compile an existing and tested code base. However, the compilation output shows that the default machine compiler
/Applications/Xcode.app/Contents/Developer/usr/bin/gccto build the code.
I can fix the problem by pointing to the desired compiler in
mkspecs/common/g++-base.conf; however, I was wondering if there is a better solution. I don't want to be doing this again when I update to a newer Qt version.
I am curious why Qt Creator picks the compiler from the conf file, and ignore the kit I use to build the code.
SGaist Lifetime Qt Champion last edited by
AFAIK, Qt will use the compiler provided by Xcode (by the way it's clang, gcc is deprecated by now). So currently you have to modify the mkspec or create your own based on that one.