


We are going to build OpenCV using cmake.

You can check to see that cmake is installed by typing cmake in a new terminal window. This will go fetch cmake and its dependencies and install them onto your system. Unzip it after you download it into a folder. You can check to see if it installed successfully by opening your terminal and typing port. Also you will need XCode installed for any of this to work (but you knew that, right?) Also, I tested this on OSX Lion, but it should apply to Snow Leopard or Leopard. Note: This method does not set up the Python bindings for OpenCV (still working on that). Now that I’ve got it set up, I decided to write this little post to explain to others how to go about setting it up. There are various ways to install it – through package managers such as Homebrew or Macports, or through the tarball + cmake. I had to look through a whole bunch of different sites to figure out what to do. I’m using OpenCV for my 4th year design project and setting it up was a huge pain.
