Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Build error related to improper definition of sysroot directory (MacOSX10.11.sdk io MacOSX10.12.sdk)
QtWS25 Last Chance

Build error related to improper definition of sysroot directory (MacOSX10.11.sdk io MacOSX10.12.sdk)

Scheduled Pinned Locked Moved Solved Installation and Deployment
macosxsysroot
4 Posts 2 Posters 2.8k 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.
  • CharbyC Offline
    CharbyC Offline
    Charby
    wrote on last edited by
    #1

    Hi all,
    For a few days, I am stuck with a weird problem which prevent me to build anything with QtCreator.
    I am using MacOs and Qt 5.8 (same with Qt5.9 b3)

    Any build starts with :

    • this warning : "no such sysroot directory: ‘/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk’ [-Wmissing-sysroot]"
    • and ends with this error : ‘TargetConditionals.h’ file not found

    A couple of month ago I used to have this problem with an update of Xcode but since then adding QMAKE_MAC_SDK = macosx10.12 in the PRO file was fixing the problem. Unfortunately this solution is no longer working for me.

    Do you know the proper way to define sys root wit macosx10.12 ?
    Thanks for your help.

    1 Reply Last reply
    1
    • CharbyC Offline
      CharbyC Offline
      Charby
      wrote on last edited by
      #2

      @Charby Someone gave me this solution which worked for me :
      Edit qdevice.pri at <user>/Qt5.8.0/5.8/clang_64/mkspecs/qdevice.pri
      and add:
      !host_build:QMAKE_MAC_SDK = macosx10.12

      For the sake of clarity I am closing this topic as solved but I definitely would love to know more about the origin of this issue, and I still can't understand how I could still have this problem after a fresh Qt5.9 (beta3) install...

      1 Reply Last reply
      0
      • CharbyC Offline
        CharbyC Offline
        Charby
        wrote on last edited by
        #3

        Thanks to @jakepetroules : the origin of my problem was a remaining qmake.stash file at the root of my user directory.
        Delete any $HOME/.qmake. IS the proper solution instead of modifying qdevice.pri*

        1 Reply Last reply
        2
        • K Offline
          K Offline
          kklee
          wrote on last edited by
          #4

          when MACOSX10.13 was coming, the only way to fix is creating symbolic MacOSX10.13.sdk to MacOSX.sdk which is able to fix problem.

          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