- Get the github repo URL from https://github.com/Itseez/opencv
- Get the github repo URL from https://github.com/Itseez/opencv_contrib
- CMake 3.1.0 http://www.cmake.org/ not available in
brew
cd ~/opensource
git clone https://github.com/Itseez/opencv.git
git clone https://github.com/Itseez/opencv_contrib.git
cd opencv
mkdir build
cd build
/Applications/CMake.app/Contents/bin/cmake -G "Unix Makefiles" -D CMAKE_INSTALL_PREFIX=~/Library/Developer/opencv/ -D CMAKE_OSX_ARCHITECTURES=x86_64 -D OPENCV_EXTRA_MODULES_PATH=~/opensource/opencv_contrib/modules ..
make
sudo make install
ln -s ~/Library/Developer/opencv/include /usr/local/include/opencv-3.0.0
Then in XCode, you set your user search path to:
/usr/local/include/opencv-3.0.0/**
Where is the search path in XCode?