參考:
求一個games101圖形學課程的環境配置教程,最好能夠簡單易懂,CSDN教程根本看不懂什麼意思? - 不泊的回答 - 知乎
https://www.zhihu.com/question/459126051/answer/3420947842
macos現在怎麼裝homebrew? - Mylo Z的回答 - 知乎
https://www.zhihu.com/question/340411846/answer/3277901437
首先確保開啟代理。
安裝homebrew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
安裝opencv:
brew install opencv
cmake已經安裝。