mac下配置openCV

时间:2021-09-08 13:24:55

预备工作:

1.下载Homebrew  在Terminal中输入:

ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"

2.安装cmake       在Terminal中输入:

brew install cmake

开始安装opneCV

3.安装openCV     在Terminal中输入:

brew install opencv

如果出现

Error: No available formula for opencv

在输入brew install opencv前  先输入

brew tap homebrew/science

检查 Xcode->Preference->Downloads 下载Command Line Tools

4.剩余步骤见http://blog.csdn.net/china_lzn/article/details/8363660