[Interest] [OS X] qmake - "Could not resolve SDK path for 'macosx10.8'"

Sean Harmer sean.harmer at kdab.com
Sat Oct 4 14:24:51 CEST 2014


On Saturday 04 October 2014 14:09:07 Till Oliver Knoll wrote:
> Am 03.10.2014 um 09:16 schrieb Sean Harmer <sean.harmer at kdab.com>:
> > On Thursday 02 October 2014 20:44:21 Till Oliver Knoll wrote:
> >> Am 02.10.14 20:19, schrieb Keith Gardner:
> >>> ...
> >>> 
> >>>    "Could not resolve SDK path for 'macosx10.8'"
> >>> 
> >>> I set the qmake variable QMAKE_MAC_SDK to "macosx10.10". This fixed the
> >>> problem with XCode 6.* for me.
> >> 
> >> Yes, thank you so much, that solved it indeed!
> >> 
> >> For the record, I have now the following entries in my "Common.pri" file
> > 
> >> (which is include in every other relevant *.pro file):
> > You can do this once only
> 
> Just to clarify: my applications usually consist of several components
> (libraries, executable(s)). For each of those naturally a dedicated Qt
> project *.pro file exist (plus a "top-level subdirectories" project file
> which builds everything).
> 
> In this setup I have a Common.pri file anyway where I set common linker
> flags, version numbers and more.
> 
> This Common.pri is /not/ shared across different applications.
> 
> So it was just natural to add this platform-specific SDK version in there as
> well for now, to get my current application compile again. The advantage is
> also this setting is now under source control. So I can checkout my
> application on different systems, without having to modify the local Qt
> installation on each system (not to mention after minor Qt upgrades).

Sure, I only mentioned it as an option. I understand there's other 
considerations.

> > by setting
> > 
> > QMAKE_MAC_SDK = macosx10.9
> > 
> > variable in the mkspecs/qdevice.pri file in your Qt installation.
> 
> However I still want to apply this setting "globally" (system-wide), such
> that I can compile e.g. the Qt examples wirhout having to modify some *.pro
> file each time first!
> 
> So thanks for that!

Hopefully the SDKs will fix it for future releases. :)

Have a great weekend!

Sean

> 
> Cheers,
>   Oliver
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

--
Dr Sean Harmer | sean.harmer at kdab.com | Managing Director UK
Klarälvdalens Datakonsult AB, a KDAB Group company
Tel. Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
KDAB - Qt Experts - Platform-independent software solutions



More information about the Interest mailing list