brew install opencv3
sampleコンパイル
clang++ -o sample `pkg-config –cflags opencv` `pkg-config –libs opencv` sample.cpp
ld: library not found for -lippicv
clang: error: linker command failed with exit code 1 (use -v to see invocation)
/usr/local/Cellar/opencv3/3.1.0_2/lib/pkgconfig/opencv.pc
に下記を追加。
libdir3rd=${exec_prefix}/share/OpenCV/3rdparty/lib
Libs: -L${exec_prefix}/lib -L${libdir3rd}