Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in
read-only mode
.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
during build & run:-
/bin/sh: QMAKE_MAC_SDK_PATH: command not found
Project ERROR: Cannot run compiler '/Applications/Xcode 8.3.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++'. Maybe you forgot to setup the environment?
Error while parsing file /Users/kipl/Desktop/QT/third/third.pro. Giving up.
Hi, I also have Sierra, but in my Qt 5.9.1 the compiler has the path:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
Maybe try updating your Xcode to 8.3.3 (2 months old)?
Also, If you open a Terminal and type
clang++ -v
what does the InstalledDir say...
Apple LLVM version 8.1.0 (clang-802.0.42)
Target: x86_64-apple-darwin16.0.0
Thread model: posix
InstalledDir: /Applications/Xcode 8.3.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
& we are already using Xcode for other applications, develop in IONIC
Hi, Qt expects the compiler to be installed in /Application/Xcode.app/... that's probably why you get the error. It might work pointing Qt to the correct directory, open a Terminal and type:
sudo xcode-select -s /Applications/Xcode\ 8.3.2.app/Contents/Developer
If that doesn't work, you could also try creating a symbolic link in /Applications named Xcode.app that points to Xcode\ 8.3.2.app...
Hi (if you don't want to wait a couple of weeks for 5.9.2) you can apply the patch yourself, open $HOME/Qt/5.9.1/clang_64/mkspecs/features/toolchain.prf and change line 41 from
darwin: cxx_flags += -isysroot $$QMAKE_MAC_SDK_PATH
darwin: cxx_flags += -isysroot $$sdk_path_device.value
darwin: cxx_flags += -isysroot $$QMAKE_MAC_SDK_PATH
darwin: cxx_flags += -isysroot $$sdk_path_device.value
restart QT Creator, Same error
@mrjj Release version of 5.9.2 is difficult to download right now, not available in MaintenanceTool yet.
@Yogikipl: I tested and could reproduce your bug, when trying to compile the example Qt Quick Controls 2 - Gallery on my Mac. First my fix above wasn't complete, you need the full change (same that's coming in 5.9.2), so change the line (same as before)
darwin: cxx_flags += -isysroot $$QMAKE_MAC_SDK_PATH
to these 5 lines:
darwin {
uikit:macx-xcode: \
cxx_flags += -isysroot $$sdk_path_device.value
else: \
cxx_flags += -isysroot $$QMAKE_MAC_SDK_PATH
Also it not sufficient just to restart Qt Creator. First, delete your .pro.user file, so you get to reselect the compiler(s) again. Then there's a problem with the caching of files, so try open and close the project a couple of times, to get the "green arrow" lit in Qt Creator and be able to compile.
cxx_flags += -isysroot $$sdk_path_device.value
else:
cxx_flags += -isysroot $$QMAKE_MAC_SDK_PATH
& create a new project, & also restart several time, but still there is same error.