

$ brew install cmake Installing OpenCV from Source with CMakeīefore I can build and install OpenCV I must clone its source repo from GitHub. CMake can be easily installed using brew as follows.

I use CMake in this tutorial to build and install OpenCV for C++ as well as run the demo project. $ /bin/bash -c "$(curl -fsSL )" Installing CMakeĬMake is a cross platform build tool popular among native C/C++ developers. To install Homebrew execute this command from your terminal. Homebrew, aka brew, is a software package manager for the Mac OS platform that is heavily used among developers. Since installing XCode is covered quite well by Apple Developer Support and a very common task among technologists utilizing Mac OS platforms I will simple link to Apple's docs for that part.

In order to utilize the popular Mac OS clang compiler you should have XCode and the XCode tools installed.
