The awesome post of blogs.wcode.org [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 blogs.wcode.org 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_ARCHITECTURES:
x86_64
- CMAKE_OSX_SYSROOT:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk
- OPENCV_EXTRA_MODULES_PATH: <opencv-extra-contrib-path>
- UNCHECK
- BUILD_TESTS
- BUILD_SHARED_LIBS
- OPENCL_*
- WITH_CUDA
- WITH_1394
- WITH_FFMPEG
4) Configure (select UNIX Makefiles) and Generate
5) Make and install
make
make install
6) Check e.g. in python if everything works:
import cv2
cv2.__version__
[1] http://blogs.wcode.org/2014/10/howto-install-build-and-use-opencv-macosx-10-10/#comments-toggle
[2] https://github.com/itseez/opencv_contrib
[3] https://github.com/Itseez/opencv