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. Install from scratch new empty project won't compile
Forum Update on Monday, May 27th 2025

Install from scratch new empty project won't compile

Scheduled Pinned Locked Moved Unsolved General and Desktop
19 Posts 11 Posters 5.2k 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.
  • clogwogC Offline
    clogwogC Offline
    clogwog
    wrote on last edited by JKSH
    #1

    [EDIT: Locked to stop "Thanks!" and "Me too!" comments --JKSH]

    Hi,

    just installed 5.11.2 on a mac.

    I'm creating a new empty qml project and am immediately greeted by

    "Project WARNING: Qt requires at least version 10.12 of the platform SDK, you're using 10.11. Please upgrade"

    beginning of system information:

    {noformat}
    Qt 5.11.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by Clang 8.1.0 (clang-802.0.42) (Apple)) on "cocoa" 
    OS: macOS 10.14 [darwin version 18.0.0]
    

    i think XCode is up to date because i can't update it in the app store. ( Version 10.0 (10A255) )

    uninstalled qt using the maintenance tool, reinstalled it, created a new project.. same result..

    what am i missing here ?

    kind regards,
    tom

    jsulmJ J.HilkJ 2 Replies Last reply
    0
    • clogwogC clogwog

      [EDIT: Locked to stop "Thanks!" and "Me too!" comments --JKSH]

      Hi,

      just installed 5.11.2 on a mac.

      I'm creating a new empty qml project and am immediately greeted by

      "Project WARNING: Qt requires at least version 10.12 of the platform SDK, you're using 10.11. Please upgrade"

      beginning of system information:

      {noformat}
      Qt 5.11.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by Clang 8.1.0 (clang-802.0.42) (Apple)) on "cocoa" 
      OS: macOS 10.14 [darwin version 18.0.0]
      

      i think XCode is up to date because i can't update it in the app store. ( Version 10.0 (10A255) )

      uninstalled qt using the maintenance tool, reinstalled it, created a new project.. same result..

      what am i missing here ?

      kind regards,
      tom

      jsulmJ Online
      jsulmJ Online
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @clogwog said in Install from scratch new empty project won't compile:

      i think XCode is up to date because i can't update it in the app store.

      Do you mean app store does not provide any updates for XCode?
      The warning clearly says what the problem is, reinstalling Qt will not help.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • clogwogC clogwog

        [EDIT: Locked to stop "Thanks!" and "Me too!" comments --JKSH]

        Hi,

        just installed 5.11.2 on a mac.

        I'm creating a new empty qml project and am immediately greeted by

        "Project WARNING: Qt requires at least version 10.12 of the platform SDK, you're using 10.11. Please upgrade"

        beginning of system information:

        {noformat}
        Qt 5.11.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by Clang 8.1.0 (clang-802.0.42) (Apple)) on "cocoa" 
        OS: macOS 10.14 [darwin version 18.0.0]
        

        i think XCode is up to date because i can't update it in the app store. ( Version 10.0 (10A255) )

        uninstalled qt using the maintenance tool, reinstalled it, created a new project.. same result..

        what am i missing here ?

        kind regards,
        tom

        J.HilkJ Online
        J.HilkJ Online
        J.Hilk
        Moderators
        wrote on last edited by
        #3

        @clogwog said in Install from scratch new empty project won't compile:

        10.14 is Mojave, I'm surpised xcode installed such an old SDK version. The newest should be 10.14 (correlating with the OS version)

        you should be able to find and download the sdk here, if xcode fails to download it automatically.
        https://developer.apple.com/download/more/


        Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


        Q: What's that?
        A: It's blue light.
        Q: What does it do?
        A: It turns blue.

        1 Reply Last reply
        3
        • clogwogC Offline
          clogwogC Offline
          clogwog
          wrote on last edited by
          #4

          is the Platform SDK the android platform SDK ? Because i don't think that is what apple is calling their SDK..

          I can only see the
          "Kernel Debug Kit 10.14"
          or the
          "command line tools 10.14 for XCode 10"
          in the https://developer.apple.com/download/more/ downoad link

          Just re-installed XCode just in case that was the problem, but it didn't help.. still complaining about the Platform SDK.

          if i ignore the warning and try to build the exact output is:

          06:37:09: Running steps for project throwaway6...
          06:37:09: Starting: "/Users/clogwog/Qt/5.11.2/clang_64/bin/qmake" /Users/clogwog/Developer/throwaway6/throwaway6.pro -spec macx-clang CONFIG+=debug CONFIG+=x86_64 CONFIG+=qml_debug
          Project WARNING: Qt requires at least version 10.12 of the platform SDK, you're using 10.11. Please upgrade.
          ../throwaway6/qml.qrc: Warning: potential duplicate alias detected: 'main.qml'
          06:37:09: The process "/Users/clogwog/Qt/5.11.2/clang_64/bin/qmake" exited normally.
          06:37:09: Starting: "/usr/bin/make" qmake_all
          The platform SDK has been changed from version 10.11 to version 10.14.
          This requires a fresh build. Please wipe the build directory completely,
          including any .qmake.stash and .qmake.cache files generated by qmake.
          /Users/clogwog/Qt/5.11.2/clang_64/mkspecs/features/mac/sdk.mk:11: *** ^.  Stop.
          06:37:10: The process "/usr/bin/make" exited with code 2.
          Error while building/deploying project throwaway6 (kit: Desktop Qt 5.11.2 clang 64bit)
          When executing step "qmake"
          06:37:10: Elapsed time: 00:02.
          

          see the "platform has been changed, please clean and delete..." ?
          this is a brand new project, this is the first time this is being build.

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

            Hi,

            What do you get if you run xcodebuild -showsdks ?

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

            clogwogC 1 Reply Last reply
            0
            • SGaistS SGaist

              Hi,

              What do you get if you run xcodebuild -showsdks ?

              clogwogC Offline
              clogwogC Offline
              clogwog
              wrote on last edited by
              #6

              @SGaist said in Install from scratch new empty project won't compile:

              xcodebuild -showsdks

              07:46 $ xcodebuild -showsdks
              iOS SDKs:
              	iOS 12.0                      	-sdk iphoneos12.0
              
              iOS Simulator SDKs:
              	Simulator - iOS 12.0          	-sdk iphonesimulator12.0
              
              macOS SDKs:
              	macOS 10.14                   	-sdk macosx10.14
              
              tvOS SDKs:
              	tvOS 12.0                     	-sdk appletvos12.0
              
              tvOS Simulator SDKs:
              	Simulator - tvOS 12.0         	-sdk appletvsimulator12.0
              
              watchOS SDKs:
              	watchOS 5.0                   	-sdk watchos5.0
              
              watchOS Simulator SDKs:
              	Simulator - watchOS 5.0       	-sdk watchsimulator5.0
              
              1 Reply Last reply
              0
              • clogwogC Offline
                clogwogC Offline
                clogwog
                wrote on last edited by
                #7

                Which one of these SDK's is referred to when the error mentions "Platform SDK" ?

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

                  Since you are building for macOS, it's macosx10.14.

                  I would do a search on your machine in order to find if there's any .qmake.* file lying around containing 10.11

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

                  clogwogC 1 Reply Last reply
                  1
                  • SGaistS SGaist

                    Since you are building for macOS, it's macosx10.14.

                    I would do a search on your machine in order to find if there's any .qmake.* file lying around containing 10.11

                    clogwogC Offline
                    clogwogC Offline
                    clogwog
                    wrote on last edited by
                    #9

                    @SGaist said in Install from scratch new empty project won't compile:

                    .qmake.*

                    found all items of .qmake.* and removed them.
                    still same error.

                    just figured out if i change to use qbs instead of qmake it works..
                    searched for all instances of qmake :

                    /Users/clogwog/Qt/5.11.2/ios/bin/qmake
                    /Users/clogwog/Qt/5.11.2/android_armv7/bin/qmake
                    /Users/clogwog/Qt/5.11.2/android_x86/bin/qmake
                    /Users/clogwog/Qt/5.11.2/clang_64/bin/qmake
                    /Users/clogwog/Qt/Examples/Qt-5.11.2/qmake
                    /Users/clogwog/Qt/Docs/Qt-5.11.2/qmake
                    /Users/clogwog/Qt/5.11.2/Src/qtbase/tests/auto/tools/qmake
                    /Users/clogwog/Qt/5.11.2/Src/qtbase/qmake/doc/snippets/qmake
                    /Users/clogwog/Qt/5.11.2/Src/qtbase/qmake
                    /Users/clogwog/Qt/5.11.2/Src/qtbase/examples/qmake
                    

                    and /Users/clogwog/Qt was empty before the install using the online installer.

                    i guess i can continue just using qbs

                    just wish i knew what is going on here.

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

                      Did you try to search for any file containing 10.11 ?

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

                      clogwogC D 2 Replies Last reply
                      0
                      • SGaistS SGaist

                        Did you try to search for any file containing 10.11 ?

                        clogwogC Offline
                        clogwogC Offline
                        clogwog
                        wrote on last edited by
                        #11

                        @SGaist yes, can't find any Qt related file that still points to 10.11

                        1 Reply Last reply
                        0
                        • J Offline
                          J Offline
                          Jartza
                          wrote on last edited by
                          #12

                          I seem to suffer from same problem, except the error shows different version. Tried following:

                          shenanigans:qml_tagsutest jartza$ qmake
                          Project WARNING: Qt requires at least version 10.14 of the platform SDK, you're using 10.13. Please upgrade.
                          

                          but:

                          shenanigans:qml_tagsutest jartza$ xcrun --show-sdk-path
                          /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk
                          

                          and

                          shenanigans:qml_tagsutest jartza$ xcodebuild -showsdks
                          iOS SDKs:
                          	iOS 12.0                      	-sdk iphoneos12.0
                          
                          iOS Simulator SDKs:
                          	Simulator - iOS 12.0          	-sdk iphonesimulator12.0
                          
                          macOS SDKs:
                          	macOS 10.14                   	-sdk macosx10.14
                          
                          tvOS SDKs:
                          	tvOS 12.0                     	-sdk appletvos12.0
                          
                          tvOS Simulator SDKs:
                          	Simulator - tvOS 12.0         	-sdk appletvsimulator12.0
                          
                          watchOS SDKs:
                          	watchOS 5.0                   	-sdk watchos5.0
                          
                          watchOS Simulator SDKs:
                          	Simulator - watchOS 5.0       	-sdk watchsimulator5.0
                          
                          

                          //Jartza

                          clogwogC 1 Reply Last reply
                          0
                          • J Jartza

                            I seem to suffer from same problem, except the error shows different version. Tried following:

                            shenanigans:qml_tagsutest jartza$ qmake
                            Project WARNING: Qt requires at least version 10.14 of the platform SDK, you're using 10.13. Please upgrade.
                            

                            but:

                            shenanigans:qml_tagsutest jartza$ xcrun --show-sdk-path
                            /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk
                            

                            and

                            shenanigans:qml_tagsutest jartza$ xcodebuild -showsdks
                            iOS SDKs:
                            	iOS 12.0                      	-sdk iphoneos12.0
                            
                            iOS Simulator SDKs:
                            	Simulator - iOS 12.0          	-sdk iphonesimulator12.0
                            
                            macOS SDKs:
                            	macOS 10.14                   	-sdk macosx10.14
                            
                            tvOS SDKs:
                            	tvOS 12.0                     	-sdk appletvos12.0
                            
                            tvOS Simulator SDKs:
                            	Simulator - tvOS 12.0         	-sdk appletvsimulator12.0
                            
                            watchOS SDKs:
                            	watchOS 5.0                   	-sdk watchos5.0
                            
                            watchOS Simulator SDKs:
                            	Simulator - watchOS 5.0       	-sdk watchsimulator5.0
                            
                            

                            //Jartza

                            clogwogC Offline
                            clogwogC Offline
                            clogwog
                            wrote on last edited by
                            #13

                            @Jartza i know it's not a fix, but if you switch to the QBS build system instead of qmake it seems to work.

                            1 Reply Last reply
                            1
                            • SGaistS SGaist

                              Did you try to search for any file containing 10.11 ?

                              D Offline
                              D Offline
                              deleted372
                              wrote on last edited by
                              #14

                              Hi... I'm facing the same problem and well... here is what I get looking for 10.11 on "qmake" files:

                              ~/Qt/5.11.2/clang_64/mkspecs/macx-clang/qmake.conf (1)
                              5 QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.11
                              ~/Qt/5.11.2/clang_64/mkspecs/macx-g++/qmake.conf (1)
                              13 QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.11
                              ~/Qt/5.11.2/clang_64/mkspecs/macx-icc/qmake.conf (1)
                              101 QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.11

                              But even if I change this values to 10.14, the error persists

                              1 Reply Last reply
                              0
                              • J Offline
                                J Offline
                                jamesalexander
                                wrote on last edited by
                                #15

                                I'd like to indicate that I have the sam issue. I ran into the problem because I had an older version of XCode, I upgraded, but the problem persists, i.e. qmake is referring to my using 9.3 of iOS simulators, when I have 10.x installed. Creator build config validates the various versions of iOS simulators I have are in fact new.

                                1 Reply Last reply
                                0
                                • S Offline
                                  S Offline
                                  SVRG
                                  wrote on last edited by
                                  #16

                                  0_1550848177374_Qt requires at least version 10.12 of the platform SDK, you're using 10.11.jpg

                                  I M 2 Replies Last reply
                                  5
                                  • S SVRG

                                    0_1550848177374_Qt requires at least version 10.12 of the platform SDK, you're using 10.11.jpg

                                    I Offline
                                    I Offline
                                    indus
                                    wrote on last edited by
                                    #17

                                    @SVRG Thank you. It worked.

                                    1 Reply Last reply
                                    0
                                    • S SVRG

                                      0_1550848177374_Qt requires at least version 10.12 of the platform SDK, you're using 10.11.jpg

                                      M Offline
                                      M Offline
                                      mabeghin
                                      wrote on last edited by
                                      #18

                                      @SVRG Worked for me too thanks !

                                      1 Reply Last reply
                                      0
                                      • S Offline
                                        S Offline
                                        samhighfield
                                        wrote on last edited by
                                        #19

                                        @SVRG Worked for me as well, thanks!

                                        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