1:安装homebrew和cmake
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install cmake
2:安装opencv
brew tap homebrew/science
brew install opencv
3.使用Xcode进行OpenCV项目开发
1.Open Xcode, choose New -> New Project -> Command Line Tool
2.Name it and select C++
for type
3.Click on your project from the left menu. Click the
build settings
tab from the top.
Filter all. Scroll to
Search Paths
. Under
header search paths
, for debug and release,
set the path to
/usr/local/include
. Under