Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved using the right compiler in QT Creator

    Tools
    2
    2
    421
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      bhatiaharsh last edited by

      Hi all,

      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/gcc to 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.

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        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.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 0
        • First post
          Last post