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. The platform SDK error
Qt 6.11 is out! See what's new in the release blog

The platform SDK error

Scheduled Pinned Locked Moved Solved General and Desktop
12 Posts 5 Posters 5.8k Views 3 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.
  • K Offline
    K Offline
    kshahim
    wrote on last edited by
    #3

    when i change the line in qdevice.pri to :
    QMAKE_MAC_SDK = macosx10.15.4

    i receive this error :
    "Project ERROR: Could not resolve SDK Path for 'macosx10.15.4' using --show-sdk-path"

    If i have the line set to :
    QMAKE_MAC_SDK = macosx10.15

    the error message :

    "The platform SDK has been changed from version 10.15 to version 10.15.4.
    This requires a fresh build. Please wipe the build directory completely,
    including any .qmake.stash and .qmake.cache files generated by qmake"

    I removed the build dir, but still i did not succeed in building.

    1 Reply Last reply
    0
    • K Offline
      K Offline
      kshahim
      wrote on last edited by
      #4

      here is the output of following command :
      xcrun -sdk macosx --show-sdk-path

      /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk

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

        Hi,

        IIRC one thing you can do is create a symbolic link in the same folder.

        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
        • K Offline
          K Offline
          kshahim
          wrote on last edited by
          #6

          @SGaist said in The platform SDK error:

          IIRC

          So I made a symbolic link folder for 10.15.4 as following:

          bd2556b0-6775-4e88-8df1-f84e2aa53c5d-image.png

          the result of following command is:
          xcrun --sdk macosx --show-sdk-path
          /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.4.sdk

          then, i changed the line in qdevice.pri, to 10.15.4

          however, after fresh building, I receive this error in qt:
          error: Could not resolve SDK Path for 'macosx10.15.4' using --show-sdk-path

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

            Casing is important.

            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
            • K Offline
              K Offline
              kshahim
              wrote on last edited by
              #8

              @kshahim said in The platform SDK error:

              MacOSX1

              the one in qdevice.pri is : QMAKE_MAC_SDK = macosx10.15.4
              and the symbolic folder is MacOSX10.15.4.sdk

              i changed the one in qdevice to QMAKE_MAC_SDK = MacOSX10.15.4

              still the same error:
              Project ERROR: Could not resolve SDK Path for 'MacOSX10.15.4' using --show-sdk-path

              1 Reply Last reply
              0
              • O Offline
                O Offline
                ostoimenov
                wrote on last edited by
                #9

                @kshahim said in The platform SDK error:

                after updating Mac to the newest MacOS Catalina 10.15.4, in building i receive this error :

                The platform SDK has been changed from version 10.15 to version 10.15.4.
                This requires a fresh build. Please wipe the build directory completely,
                including any .qmake.stash and .qmake.cache files generated by qmake.

                I tried removing the build dir, and also changing the line in qdevice.pri
                QMAKE_MAC_SDK = macosx10.15.4

                but not yet successful in building the desktop application.

                I had the same bizarre error. Fixed it by removing build folders from .gitignore.

                K 1 Reply Last reply
                1
                • O ostoimenov

                  @kshahim said in The platform SDK error:

                  after updating Mac to the newest MacOS Catalina 10.15.4, in building i receive this error :

                  The platform SDK has been changed from version 10.15 to version 10.15.4.
                  This requires a fresh build. Please wipe the build directory completely,
                  including any .qmake.stash and .qmake.cache files generated by qmake.

                  I tried removing the build dir, and also changing the line in qdevice.pri
                  QMAKE_MAC_SDK = macosx10.15.4

                  but not yet successful in building the desktop application.

                  I had the same bizarre error. Fixed it by removing build folders from .gitignore.

                  K Offline
                  K Offline
                  kshahim
                  wrote on last edited by
                  #10

                  @ostoimenov Thank You!! this solved my issue :)

                  These files were invisible in Mac :
                  948c9d47-63b5-49f4-a466-ec93c3bbacbb-image.png

                  Then i pressed :
                  43b1157f-c9df-41f9-b7c3-5e3d3302869e-image.png

                  to make them visible and i removed the stash files, and it is working now !

                  1 Reply Last reply
                  0
                  • advmA Offline
                    advmA Offline
                    advm
                    wrote on last edited by
                    #11

                    Hello,
                    I know this topic is old, but just wanted to ask where are located this .gitignore and .qmake_stash files that need to be removed. I have the same problem on macOS Catalina with all newer Qt versions 5.12, 5.13, 5.14, 5.15. Thanks.

                    1 Reply Last reply
                    1
                    • advmA Offline
                      advmA Offline
                      advm
                      wrote on last edited by advm
                      #12

                      Ok I just found current workaround, Comment everything in the file:

                      /Your Qt Directory/ mkspecs / features/mac / sdk.mk

                      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