简介
环境准备
macOS Catalina 10.15.7
go v1.14.4
qt v5.13.0
therecipe/qt
Xcode v12.0.1 / xcode-select --install
建议先安装 Xcode v12.0.1 / xcode-select --install,这两个安装其中一个即可。其他组件的安装相对比较容易,这里只描述下qt和therecipe/qt的安装。
GO安装
golang安装相对简单,这里要注意设置GOBIN目录
本文设置的GOBIN目录如下
export GOBIN=/Users/tickstep/Applications/go/bin
需要增加到环境变量
export PATH=$GOBIN:$PATH
QT安装
目前therecipe/qt对应的QT的版本是 5.13.0,如果不是这个版本会编译报错。
下载
https://download.qt.io/official_releases/qt/5.13/5.13.0/qt-opensource-mac-x64-5.13.0.dmg
选择以下组件,等待安装完毕即可
Qt组件选择
记录下安装的目录,本文安装的目录是
/Users/tickstep/Applications/Qt5.13.0
therecipe/qt 安装
官网
https://github.com/therecipe/qt](https://gith