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. How to define sdk path for Mac osx 10.12 and xcode 8?
Forum Updated to NodeBB v4.3 + New Features

How to define sdk path for Mac osx 10.12 and xcode 8?

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
5 Posts 2 Posters 5.4k 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.
  • zhongweiZ Offline
    zhongweiZ Offline
    zhongwei
    wrote on last edited by
    #1

    :-1: warning: no such sysroot directory: '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk'

    I have upgraded to MacOSX10.12.sdk.
    How can I confige?

    Thanks.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      IIRC, add this:

      QMAKE_MAC_SDK = macosx10.12
      

      to your .pro file.

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

      zhongweiZ 1 Reply Last reply
      0
      • zhongweiZ Offline
        zhongweiZ Offline
        zhongwei
        wrote on last edited by
        #3

        I have resolved by added path to /Users/zhongwei/Qt5.6.0/5.6/clang_64/mkspecs/features/mac/sdk.prf

        QMAKE_MAC_SDK_PATH = "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk"

        1 Reply Last reply
        0
        • SGaistS SGaist

          Hi,

          IIRC, add this:

          QMAKE_MAC_SDK = macosx10.12
          

          to your .pro file.

          zhongweiZ Offline
          zhongweiZ Offline
          zhongwei
          wrote on last edited by
          #4

          @SGaist I try this method but report
          Could not resolve SDK path for 'macosx10.12'"

          Thanks.

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Strange, did you respect the casing ? Meaning all lowercase ?

            By the way, which version of Qt are you using ?

            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