Skip to content

Instantly share code, notes, and snippets.

View myazdani's full-sized avatar
🏠
ML

Mehrdad Yazdani myazdani

🏠
ML
View GitHub Profile
It is a rite of passage to post one's successful build instructions for OpenCV on a Mac
after you've tried all the other conflicting instructions out there and still failed.
brew failed for me (was this because I could never get a happy brew doctor situation?
I'll never know). macports? nope. build-from-source recipes? I didn't find one that
worked for me.
Here's what did work to build OpenCV 2.4.8 from the distribution tarball using cmake,
on Mac OSX 10.9.2, linked to an anaconda installation rather than the system python.
It is a mashup of various bits of advice out there. If you're already comfortable with
build/install from source, all you need to read is the cmake invocation in step 3 and