問題描述
所以我大約在 5 分鐘前安裝了 qt,當(dāng)我想在 Push Button 中編寫一行簡單的文本并嘗試運行它時,我收到了這個錯誤:
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 導(dǎo)航到您安裝 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
如果您使用的是 OS X 10.10 (Yosemite)
- 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)
這篇關(guān)于錯誤:無法解析“macosx10.8"的 SDK 路徑的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!
【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!