Qt 5.1.1 build: "QMAKE_MAC_SDK must be set when building on Mac"
-
Hi all,
I repeatedly get this message during configure, having unarchived the source from "this file":http://download.qt-project.org/official_releases/qt/5.1/5.1.1/single/qt-everywhere-opensource-src-5.1.1.tar.gz.
My environment includes the variable, exported in .bash_profile:
@QMAKE_MAC_SDK=macosx10.8@and I've also tried the full path:
@QMAKE_MAC_SDK=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk@My configure line is
@./configure -opensource -nomake examples -nomake tests -shared -arch x86 -arch x86_64@
And I've tried with the switch -sdk, set to each of the strings above too. No dice.As you can see I require a dual architecture build, otherwise I'd just use the precompiled version. Can anyone reproduce this or offer any help?
-
Could it be that Qt is looking for something specific into the SDK, like a subfolder or a particular configuration file?
Try exploring the SDK folder a bit, see if any subfolder makes more sense than the main SDK folder. For example, on my Windows system, the Visual Studio SDK is installed in C:\Program Files (x86)\Microsoft Visual Studio 11.0 but the actual C++ include files (and all the stuff required for the build environment) resides in a subfolder called VC; so if I have to specify the SDK path I should set C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC