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. Setup root macox SDK for qt

Setup root macox SDK for qt

Scheduled Pinned Locked Moved Solved General and Desktop
8 Posts 5 Posters 5.0k Views 4 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.
  • Allman 2A Offline
    Allman 2A Offline
    Allman 2
    wrote on last edited by Allman 2
    #1

    Hi to everyone,

    here my qt-error :

    :-1: Warnung: no such sysroot directory: '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk' [-Wmissing-sysroot]
    
    ----------------------------
    On my System exist just : '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk' 
    

    But I can't fix it with :

    macx {
        QMAKE_MAC_SDK = macosx10.13
    }
    

    Do you have an idea how can I fix this link error?

    Thx ;)

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

      Hi and welcome to devnet,

      Did you just recently update to Xcode 9 ?

      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
      2
      • E Offline
        E Offline
        eBuddha
        wrote on last edited by
        #3

        Let me guess, Installing Xcode 9 breaks 5.9?

        GDI Apple drives me crazy... I need 9 for an iOS11 project... but can't use it with QT?

        A 1 Reply Last reply
        0
        • E eBuddha

          Let me guess, Installing Xcode 9 breaks 5.9?

          GDI Apple drives me crazy... I need 9 for an iOS11 project... but can't use it with QT?

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

          @eBuddha You can use it with Qt, you will probably need to build Qt yourself though.

          It's super easy to build it yourself. If you do that it will use the SDK on your system.

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

          1 Reply Last reply
          0
          • mrdebugM Offline
            mrdebugM Offline
            mrdebug
            wrote on last edited by
            #5

            Can you post the output of
            ls -lh

            /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/

            Need programmers to hire?
            www.labcsp.com
            www.denisgottardello.it
            GMT+1
            Skype: mrdebug

            1 Reply Last reply
            0
            • Allman 2A Offline
              Allman 2A Offline
              Allman 2
              wrote on last edited by
              #6

              @ambershark said in Setup root macox SDK for qt:

              build Qt yourself

              Good Morning,

              ok, but when i build it by myself, then i have to install qt ::
              https://doc.qt.io/archives/qtjambi-4.5.2_01/com/trolltech/qt/install-mac.html

              When I try this, i get the information that qt is not compatible with my installation.

              ;(

              THX ;)

              1 Reply Last reply
              0
              • E Offline
                E Offline
                eBuddha
                wrote on last edited by eBuddha
                #7

                I ended up solving my issue by deleting the build directory and setting the qmake mac configuration file to use 10.13.

                It seems that qmake only sets its sysroot environment variables in the Makefile when the project is first built. It did not change by cleaning the build , running qmake, and rebuilding.

                After deleting the build directory, qmake rebuilt with the 10.13 directory in the sysroot. you may be able to fix it by deleting just the ".qmake.stash" file.

                Check the file for the following settings:

                0_1506442433038_Screen Shot 2017-09-26 at 12.12.42.png

                1_1506442433039_Screen Shot 2017-09-26 at 12.11.16.png

                If they are not set to 10.13 then your QMake is not set to use the latest version.

                ETA: I set the configuration file at "Qt5.9/5.9/clang_64/mkspecs/macx-clang/qmake.conf

                0_1506442846832_Screen Shot 2017-09-26 at 12.20.18.png
                ETA II: Changing the qMake.conf is not needed. it should be set tot the mac you are deploying too. So 10.12 for Sierra and 10.13 for High Sierra.

                Cheers,
                EB

                1 Reply Last reply
                2
                • Allman 2A Offline
                  Allman 2A Offline
                  Allman 2
                  wrote on last edited by
                  #8

                  Hey, not bad!
                  Thanks a lot.

                  i also fixed the problem with creating a symbolic link to :
                  '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk'

                  from:
                  '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk'

                  but eBuddha your solution is more elegant.
                  I will check this too.
                  Big Thanks to all!

                  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