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. Running the application on a Mac with an older macOS version
Qt 6.11 is out! See what's new in the release blog

Running the application on a Mac with an older macOS version

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
5 Posts 2 Posters 735 Views 2 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.
  • F Offline
    F Offline
    Frenchy
    wrote on last edited by
    #1

    Environment : macOS 12.0
    Qt Creator 5.0.2
    Based on Qt 5.15.2 (Clang 11.0 (Apple), 64 bit)

    Hello to all !

    I'm making my first steps with Qt.

    I have created a minimal application (window) and used macdeploy to get an app file; the result is perfect.

    However, if I transfer this app file on a Mac using an older version of macOS, a message says: You have macOS 10.16.7. The application requires macOS 11.3 or later.

    How to modify the CmakeLists.txt file so that the application compiled on Mac OS 12.0 works on an older version of macOS?

    Thanks for your help.

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

      Hi,

      Which version do you target exactly ?
      Depending on that you may have to use an older version of Xcode and the corresponding SDK.

      See the CMAKE_OSX_DEPLOYMENT_TARGET variable.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      F 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        Which version do you target exactly ?
        Depending on that you may have to use an older version of Xcode and the corresponding SDK.

        See the CMAKE_OSX_DEPLOYMENT_TARGET variable.

        F Offline
        F Offline
        Frenchy
        wrote on last edited by Frenchy
        #3

        @SGaist
        Thank you for your answer.
        I had indeed consulted the page of the cmake.org website about CMAKE_OSX_DEPLOYMENT_TARGET as well as.
        However, it does not explain how to use it, which is a big problem for me...

        Is it used as follows?
        CMAKE_OSX_DEPLOYMENT_TARGET = 10.7

        Thanks for your help.

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

          If memory serves well, something like:

          if(APPLE)
           	set(CMAKE_MACOSX_DEPLOYMENT_TARGET "10.10")
           endif()
          

          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
          1
          • F Offline
            F Offline
            Frenchy
            wrote on last edited by
            #5

            I thank you for your help!

            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