Qt installation on mac

  1. First download Xcode from the app store
    insert image description here
  2. Open Xcode
    insert image description here
  3. Create any file

insert image description here

  1. give it a name

insert image description here

  1. find a place to put it

insert image description here

  1. Remind that git link has not been established, ignore him

insert image description here

  1. Open a terminal and
    type/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    insert image description here

  2. Start the installation,
    continue typing in the terminal, brew install qt
    insert image description herethere is a problem
    , let's solve it, follow me~

Mac平台出现brew command not found问题解决方法
错误提示:zsh: command not found: brew
解决方法:mac 安装homebrew,
1、用以下命令安装,序列号选择中科大(1)的
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master
/Homebrew.sh)"

insert image description hereThe download is a bit slow, please be patient~
insert image description here
insert image description here
insert image description here

  1. Let's install it again (brew is installed this time, it was not installed for the first time)
    inputbrew install qt

Guess you like

Origin blog.csdn.net/weixin_43233219/article/details/132235890