Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. using the right compiler in QT Creator

using the right compiler in QT Creator

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
2 Posts 2 Posters 610 Views
  • 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 Offline
    B Offline
    bhatiaharsh
    wrote on last edited by
    #1

    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
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved