Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Qt5 on OSX 10.6

Tags:

macos

sdk

qt

I installed XCode 4.2 and Qt 5.3 at OS X 10.6 (Snow Leopard). When I trying to compile any project I got "Project ERROR: could not resolve SDK path for 'macosx10.8'".

Can I change sdk version to macosx10.6 at *.pro file or something?

like image 972
Alprog Avatar asked Dec 06 '22 01:12

Alprog


2 Answers

I am working on Maverick, Xcode 6, Qt 5.3.2 & QtCreator 3.2.1:

  1. On .bash_profile (one line):

    export SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk

  2. On *.pro:

    QMAKE_MAC_SDK = macosx10.9

  3. Clean & qmake & build

  4. DONE :)

like image 105
Robert Avatar answered Dec 30 '22 13:12

Robert


You may try

1) Open with a text editor

Qt5.3 /5.3 /clang_64 /mkspecs /qdevice.pri

2) change

!host_build:QMAKE_MAC_SDK = macosx10.8

to

!host_build:QMAKE_MAC_SDK = macosx10.9

3) restart your Qt

like image 22
maythe4thbewithu Avatar answered Dec 30 '22 12:12

maythe4thbewithu