Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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.


  • Qt Champions 2019

    @kshahim So, what happens if you delete build directory, run qmake and build?



  • 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.



  • 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


  • Lifetime Qt Champion

    Hi,

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



  • @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


  • Lifetime Qt Champion

    Casing is important.



  • @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



  • @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.



  • @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 !



  • 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.



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

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


Log in to reply