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. Building with Qt 5.15.2 on macOS 12.5
Forum Updated to NodeBB v4.3 + New Features

Building with Qt 5.15.2 on macOS 12.5

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 1 Posters 1.5k 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.
  • AndyBriceA Offline
    AndyBriceA Offline
    AndyBrice
    wrote on last edited by AndyBrice
    #1

    Has anyone managed to build with Q5.15 on macOS 12?

    I was successfully building against Qt 5.15.2 using:

    • XCode 10.1 with 10.15 Mac SDK
    • QTCreator 7.0.0

    On an old version of macOS and deploying to macOS 10.13 and later.

    I upgraded macOS to 12.5.1 (Montery) and XCode 10.1 no longer works (show greyed out).

    I installed:

    • XCode 13.4 with 12.3 Mac SDK

    I can build against Qt 5.15.2, but now I get:

    Project WARNING: Qt has only been tested with version 10.15 of the platform SDK, you're using 12.1.
    Project WARNING: This is an unsupported configuration. You may experience build issues, and by using
    Project WARNING: the 12.1 SDK you are opting in to new features that Qt has not been prepared for.
    Project WARNING: Please downgrade the SDK you use to build your app to version 10.15, or configure
    Project WARNING: with CONFIG+=sdk_no_version_check when running qmake to silence this warning.
    

    Just suppressing the warning sounds like a bad idea.

    I don't want to move to Qt 6 yet (partly because of issues with missing text codecs).

    Do I just need to copy the 10.15 SDK to Xcode 13.4 as described here?:
    https://stackoverflow.com/questions/65952224/qtcreator-fails-on-macos-sdk-11-1/66497078#66497078

    This page:
    https://doc.qt.io/qt-5/supported-platforms.html#reference-configurations
    Says Qt 5.15 LTS is supported with build environment: Xcode 11 or Xcode 12 or Xcode 13 (12 SDK).

    Is that different to Qt 5.15.2? Is it only available to commercial license holders?

    1 Reply Last reply
    0
    • AndyBriceA Offline
      AndyBriceA Offline
      AndyBrice
      wrote on last edited by
      #2

      Also it says at https://doc.qt.io/qt-5/macos-deployment.html :

      "When you develop an application for an Apple platform, you should always use the latest version of Xcode and the latest SDK available at the time of development."

      I'm don't understand how that fits with warnings to downgrade to an old SDK version.

      1 Reply Last reply
      0
      • AndyBriceA Offline
        AndyBriceA Offline
        AndyBrice
        wrote on last edited by
        #3

        So I followed the instructions here and installed the 10.15 SDK at Applications/Xcode_13_4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/:
        https://stackoverflow.com/questions/65952224/qtcreator-fails-on-macos-sdk-11-1/66497078#66497078

        But at step 10 I only see 'XCode 13.4.1' on the drop down.

        I tried setting the SDKROOT environment variable in .bash_profile and restarting:

        SDKROOT=/Applications/Xcode_13_4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk

        But the following:

        xcrun -sdk macosx --show-sdk-path

        Still returns:

        /Applications/Xcode_13_4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk

        1 Reply Last reply
        0
        • AndyBriceA Offline
          AndyBriceA Offline
          AndyBrice
          wrote on last edited by AndyBrice
          #4

          I tried setting in the .pro:

          QMAKE_MAC_SDK = macosx10.15

          And deleting the shadow build folders to get rid of the .qmake.stash files, but it is still compiling with:

          -isysroot /Applications/Xcode_13_4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk

          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