Details

      Description

      Installed Qt Creator 4.2.1 as part of Qt 5.8 for Android, iOS
      Got a warning:
      "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++"
      is used by qmake, but
      "/usr/bin/clang++"
      is configured in the kit.
      Please update your kit or choose a mkspec for qmake that matches your target environment better.

      Can I ignore this or do I have to change something and if yes, where exactly. THX

      No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

        Hide
        Ekkehard added a comment -

        just tested with another project I moved to 5.8
        this time I got no warning
        will try again with next projects

        at the moment 10 projects moved to 5.8 - the warning appeared with 5 or 6 projects

        Show
        Ekkehard added a comment - just tested with another project I moved to 5.8 this time I got no warning will try again with next projects at the moment 10 projects moved to 5.8 - the warning appeared with 5 or 6 projects
        Hide
        Ekkehard added a comment -

        just got it:
        it's not the iOS Kit

        opened project just moved to my 5.80 workspace
        selected only Desktop OSX
        click configure project

        wait a moment to get the build and run buttons green

        then the Issue was reported

        App runs well on OSX
        but I'm using the OSX build only to test UI because it's faster to deploy as with Android or iOS. Also I can easier inspect app data.

        Show
        Ekkehard added a comment - just got it: it's not the iOS Kit opened project just moved to my 5.80 workspace selected only Desktop OSX click configure project wait a moment to get the build and run buttons green then the Issue was reported App runs well on OSX but I'm using the OSX build only to test UI because it's faster to deploy as with Android or iOS. Also I can easier inspect app data.
        Hide
        Ekkehard added a comment -

        can reproduce this now:
        My Projects always have 3 Kits: Android, iPhone, Desktop

        every time switching from Android or iOS Kit to OSX (Desktop clang 64bit)
        the Issue is shown in Issues pane

        Show
        Ekkehard added a comment - can reproduce this now: My Projects always have 3 Kits: Android, iPhone, Desktop every time switching from Android or iOS Kit to OSX (Desktop clang 64bit) the Issue is shown in Issues pane
        Hide
        Tobias Hunger added a comment -

        Ekkehard: You should get this issue every time you use your OSX kit. That kit is configured to use a compiler to feed the code model and qmake ends up using a different compiler. So you get a warning as this is almost always not what is intended.

        Unfortunately there is on reliable way to make qmake use a specific compiler and the actual compiler used by qmake is only available after the project is parsed, so this is the earliest time we can warn about this.

        This only became a problem after we added the compilers to the Kits. When we noticed that many people ran into qmake not switching compilers as it should we added the warning.

        The quickest way to get rid of the warning is to change the toolchain definition in Qt Creator to be the one used by qmake. But we should make sure that we do not needlessly trigger this warning when using the clang-wrappers on Apple OSes.

        Show
        Tobias Hunger added a comment - Ekkehard: You should get this issue every time you use your OSX kit. That kit is configured to use a compiler to feed the code model and qmake ends up using a different compiler. So you get a warning as this is almost always not what is intended. Unfortunately there is on reliable way to make qmake use a specific compiler and the actual compiler used by qmake is only available after the project is parsed, so this is the earliest time we can warn about this. This only became a problem after we added the compilers to the Kits. When we noticed that many people ran into qmake not switching compilers as it should we added the warning. The quickest way to get rid of the warning is to change the toolchain definition in Qt Creator to be the one used by qmake. But we should make sure that we do not needlessly trigger this warning when using the clang-wrappers on Apple OSes.
        Hide
        Ekkehard added a comment -

        thx for detailed information, Tobias.

        Show
        Ekkehard added a comment - thx for detailed information, Tobias.

          People

          • Assignee:
            Tobias Hunger
            Reporter:
            Ekkehard
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:

              Gerrit Reviews

              There are no open Gerrit changes