错误:无法解析“macosx10.8”的SDK路径 [英] Error: Could not resolve SDK path for 'macosx10.8'

查看:1382
本文介绍了错误:无法解析“macosx10.8”的SDK路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我刚刚安装qt大约5分钟前,当我想在按钮中编写一个简单的文本行,并尝试运行它,我得到这个错误:

So I just installed qt around 5 minutes ago, and when I wanted to code a simple line of text in the Push Button and try to run it, I got this error:

: - 1:错误:无法解析macosx10.8的SDK路径

:-1: error: Could not resolve SDK path for 'macosx10.8'

此外,如果你需要我做某事,你能解释一下我是五个。 (不是真的像我五,但我希望你知道我的意思)

Could anyone help? Also, if you need me to do something, could you explain like I'm five please. (Not actually like I"m five but I hope you know what i mean)

推荐答案

问题是, Qt目前默认支持OSX 10.8(Mountain Lion),我猜你在10.9(Mavericks)或更大。

The problem is that the online installer for Qt currently supports OSX 10.8 (Mountain Lion) by default, and I'm guessing you are on 10.9 (Mavericks) or greater.

有一个解决方法:


  • 使用finder导航到您安装Qt的位置(默认/用户/您的用户名/ Qt)

  • 子目录5.3 / clang_64 / mkspecs目录

  • 使用文本编辑器打开名为qdevice.pri的文件

  • 更改行
    !host_build:QMAKE_MAC_SDK = macosx10.8
    到:


    • ! host_build:QMAKE_MAC_SDK = macosx10.9 如果您使用的是OS X 10.9(Mavericks)或

    • !host_build:QMAKE_MAC_SDK = macosx

    • 保存文件并重新启动Qt Creator

    • Navigate to where you installed Qt (default /Users/your username/Qt) using finder
    • Go to the subdirectory 5.3/clang_64/mkspecs directory
    • Open the file called qdevice.pri with a text editor
    • Change the line !host_build:QMAKE_MAC_SDK = macosx10.8 to:
      • !host_build:QMAKE_MAC_SDK = macosx10.9 if you are on OS X 10.9 (Mavericks), or
      • !host_build:QMAKE_MAC_SDK = macosx if you are on OS X 10.10 (Yosemite)

      这篇关于错误:无法解析“macosx10.8”的SDK路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆