1.macOS下载并编译OpenCV源码:
克隆源码:
主仓: git clone https://github.com/opencv/opencv.git
扩展仓: git clone https://github.com/opencv/opencv_contrib.git
编译xcode源码需要CMake与XCode命令行工具
确认已安装CMake
确认已安装XCode
安装xcode command line tools
xcode-select --install
确认系统已安装python环境