Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Wrong default configuration of clang++ kit on OS X
Forum Updated to NodeBB v4.3 + New Features

Wrong default configuration of clang++ kit on OS X

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 3.6k Views 1 Watching
  • 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.
  • N Offline
    N Offline
    NielsHolst
    wrote on last edited by
    #1

    Same setting as in previous (resolved) topic:
    I work on a Mac (OS X 10.11.6) with Xcode (8.2.1) installed. I have just uninstalled a previous Qt Creator installation (my old Qt folder is gone). Now, I have a fresh installation created by qt-unified-mac-x64-2.0.4-online. To test the installation, I immediately opened Qt Creator and picked File|New project. Thus I created a Qt Console Application with nothing but the default contents.

    Problem:
    I can build my tiny, default project OK but I get one warning in the Issues warning me:
    "/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.

    How do I get rid of that warning? I have studied the kit settings but cannot find where to update the kit as suggested by the warning. Perhaps you could help me navigate to the right place in Qty Creator?

    A 1 Reply Last reply
    0
    • N NielsHolst

      Same setting as in previous (resolved) topic:
      I work on a Mac (OS X 10.11.6) with Xcode (8.2.1) installed. I have just uninstalled a previous Qt Creator installation (my old Qt folder is gone). Now, I have a fresh installation created by qt-unified-mac-x64-2.0.4-online. To test the installation, I immediately opened Qt Creator and picked File|New project. Thus I created a Qt Console Application with nothing but the default contents.

      Problem:
      I can build my tiny, default project OK but I get one warning in the Issues warning me:
      "/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.

      How do I get rid of that warning? I have studied the kit settings but cannot find where to update the kit as suggested by the warning. Perhaps you could help me navigate to the right place in Qty Creator?

      A Offline
      A Offline
      ambershark
      wrote on last edited by
      #2

      @NielsHolst Hi, Tools->Options->build & run->compiler has the settings you need to fix that. :)

      My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

      1 Reply Last reply
      1
      • N Offline
        N Offline
        NielsHolst
        wrote on last edited by
        #3

        I have found the reason why Qt Creator could not configure my project correctly: My .pro file depended on an environment variable. Moving from Windows to Mac and being unable to set an environment variable on the Mac (!), I resorted to set the environment variable from within Qt Creator.

        However, to be able to set the environment vaiable in Qt Creator, I had to first open the .pro file and let Qt Creator configure the project. That configuration could not be carried through correctly because the environment variable was not yet defined.

        Then when I defined the environment variable, and the .pro file should be OK, Qt Creator kept the faulty configuration.

        The way out was to rethink my project file and rid it of its dependency on the environment variable.

        1 Reply Last reply
        1
        • A Offline
          A Offline
          Arafaer
          wrote on last edited by
          #4

          just delete the projectname.pro.user and so you can select the kit installed ...easy to go from windows or linux to MacOS this way

          @NielsHolst said in Wrong default configuration of clang++ kit on OS X:

          I have found the reason why Qt Creator could not configure my project correctly: My .pro file depended on an environment variable. Moving from Windows to Mac and being unable to set an environment variable on the Mac (!), I resorted to set the environment variable from within Qt Creator.

          However, to be able to set the environment vaiable in Qt Creator, I had to first open the .pro file and let Qt Creator configure the project. That configuration could not be carried through correctly because the environment variable was not yet defined.

          Then when I defined the environment variable, and the .pro file should be OK, Qt Creator kept the faulty configuration.

          The way out was to rethink my project file and rid it of its dependency on the environment variable.

          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