OpenCV 3.0-dev with OSX 10.10 Yosemite and Extras

The awesome post of [1] on how to get openCV up and running helped a lot, thanks!

Although there were some things I had to add to get everything I needed. Basically the openCV contrib (SIFT, …) [2] and some additions within cmake to get it to build and run.

Here is a quick overview of what I did, mixed my own findings with what suggested in [1]:

1) Download opencv from [3] and extract
2) Make directories ‘StaticLib’ and ‘contrib’ within the the extracted folder
3) Run CMAKE and make the following Settings:

  • SET
    • CMAKE_OSX_SYSROOT: /Applications/
    • OPENCV_EXTRA_MODULES_PATH: <opencv-extra-contrib-path>
    • OPENCL_*
    • WITH_1394

4) Configure (select UNIX Makefiles) and Generate
5) Make and install

make install

6) Check e.g. in python if everything works:

import cv2


1 comment Write a comment

  1. Thanks for this posting. This is very helpful. I was able to repeat the whole process, except I got the following at the end of cmake generation:

    MACOSX_RPATH is not specified for the following targets:

    Then, when “import cv2”, Python complains that “ImportError: No module named cv2”.

    Any suggestion on how to fix this?

Leave a Reply