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. Qt Creator : Failed build after update to xcode 9 GM
Forum Updated to NodeBB v4.3 + New Features

Qt Creator : Failed build after update to xcode 9 GM

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
6 Posts 3 Posters 3.2k 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.
  • J Offline
    J Offline
    jaden
    wrote on 13 Sept 2017, 06:55 last edited by
    #1

    Hi.

    Today, I installed xcode 9 GM seed. But Qt project build failed.

    First error message... not found Mac sdk path

    So, I modify a code of 'Qt5.9.1/5.9.1/clang_64/mkspecs/features/mac/sdk.prf file.

    QMAKE_MAC_SDK_PATH = $$ system ( "xcodebuild -version -sdk | grep '^ Path * MacOSX'| cut -d ''-f 2")

    After the change, the following error appears when building.

    warning: no such sysroot directory: '-mmacosx-version-min=10.10' [-Wmissing-sysroot]
    
    /Users/kakao/Qt5.9.1/5.9.1/clang_64/lib/QtCore.framework/Headers/qsystemdetection.h:95: error: 'TargetConditionals.h' file not found
     include <TargetConditionals.h>
               ^~~~~~~~~~~~~~~~~~~~~~
    
    
    

    .... What should i am? ㅠ_ㅠ

    1 Reply Last reply
    0
    • P Offline
      P Offline
      patrik08
      wrote on 13 Sept 2017, 07:24 last edited by patrik08
      #2

      Hi i am sure if you install the MacOSX-SDKs
      from your version the problem is solved
      https://github.com/phracker/MacOSX-SDKs/releases

      CarbonHeaders TargetConditionals.h

      J 1 Reply Last reply 13 Sept 2017, 07:54
      0
      • P patrik08
        13 Sept 2017, 07:24

        Hi i am sure if you install the MacOSX-SDKs
        from your version the problem is solved
        https://github.com/phracker/MacOSX-SDKs/releases

        CarbonHeaders TargetConditionals.h

        J Offline
        J Offline
        jaden
        wrote on 13 Sept 2017, 07:54 last edited by
        #3

        @patrik08

        Thank you for kind your answer. : )

        I downloaded MacOSX10.12.sdk.

        unzip file...
        but how to install the sdk? ㅠ_ㅠ

        It's installed means that the 10.12.sdk folder copy to '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs' path?

        How to install the sdk? ...

        1 Reply Last reply
        0
        • P Offline
          P Offline
          patrik08
          wrote on 13 Sept 2017, 12:19 last edited by
          #4

          macOS Sierra?
          is the Sierra not to slow? i wait to update wen become more stable point...
          sdk is only copy at the right place inside Xcode or like https://stackoverflow.com/questions/34876144/where-to-download-an-slightly-older-ios-sdk

          J 1 Reply Last reply 14 Sept 2017, 06:31
          0
          • P patrik08
            13 Sept 2017, 12:19

            macOS Sierra?
            is the Sierra not to slow? i wait to update wen become more stable point...
            sdk is only copy at the right place inside Xcode or like https://stackoverflow.com/questions/34876144/where-to-download-an-slightly-older-ios-sdk

            J Offline
            J Offline
            jaden
            wrote on 14 Sept 2017, 06:31 last edited by
            #5

            @patrik08

            Yes, Sierra.
            The sierra is more stable than I thought. : )

            1 Reply Last reply
            0
            • Q Offline
              Q Offline
              quadbyte
              wrote on 14 Oct 2017, 21:14 last edited by
              #6

              example of code you must insert in your .pro, replace 10.13 by whatever version you want...

              macx {
                 QMAKE_MAC_SDK = macosx10.13
                 QMAKE_MAC_SDK_PATH = "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk"
              }
              
              1 Reply Last reply
              1

              • Login

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