Unsolved Install from scratch new empty project won't compile
-
[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 -
@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. -
@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/ -
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 linkJust 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. -
Hi,
What do you get if you run
xcodebuild -showsdks
? -
@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
-
Which one of these SDK's is referred to when the error mentions "Platform SDK" ?
-
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 -
@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.
-
Did you try to search for any file containing 10.11 ?
-
@SGaist yes, can't find any Qt related file that still points to 10.11
-
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
-
@Jartza i know it's not a fix, but if you switch to the QBS build system instead of qmake it seems to work.
-
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.11But even if I change this values to 10.14, the error persists
-
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.
-
-
@SVRG Thank you. It worked.
-
@SVRG Worked for me too thanks !
-
@SVRG Worked for me as well, thanks!