Source:
http://www.learnopencv.com/install-opencv-3-on-yosemite-osx-10-10-x/
git clone https:
//github
.com
/Itseez/opencv_contrib
.git
cd
opencv_contrib
git checkout tags
/3
.0.0
* with CUDA 7.0 (otherwise errors or setting changes)
cmake -D WITH_CUDA=OFF -D CMAKE_INSTALL_PREFIX=
/full/path/to/opencv/build
-D CMAKE_BUILD_TYPE=RELEASE ..
---
cp lib/pkgconfig/opencv.pc /usr/local/lib/pkgconfig/opencv3.pc
---
cd
/full/path/to/opencv/samples/cpp
g++ -ggdb `pkg-config --cflags --libs opencv3` facedetect.cpp -o
/tmp/test
&&
/tmp/test
---
export
DYLD_FALLBACK_LIBRARY_PATH=
/usr/local/cuda/lib/
:$DYLD_FALLBACK_LIBRARY_PATH
cd
/full/path/to/opencv/samples/gpu
g++ -ggdb `pkg-config --cflags --libs opencv3` hog.cpp -o
/tmp/hog
&&
/tmp/hog