Mac 安装Qt5.1编译出现的错误解决

错误提示:

:-1: 错误:Xcode is not installed in /Volumes/Xcode/Xcode.app/Contents/Developer. Please use xcode-select to choose Xcode installation path.


解决:

1.找到Xcode的安装路径,拖到终端,输入pwd,得到路径

2.然后输入命令:  

sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer


3.查看路径是否改变:
xcode-select -print-path


4.重新运行Qt,编译成功






你可能感兴趣的:(Ivan@_QT专栏)