转载于:https://segmentfault.com/a/1190000000711132
linux 编译指定库、头文件的路径问题 http://blog.csdn.net/jiaweizou/article/details/8153897
编译的时候出现错误:
MacBook-Pro:Downloads zhaoliang$ g++ -ggdb `pkg-config opencv --cflags --libs` test_simple_segment.cpp -o test_simple_segment -I/usr/local/Cellar/opencv/2.4.13_3/include/
-bash: pkg-config: command not found
安装pkg-config
MacBook-Pro:Downloads zhaoliang$ sudo brew install pkgconfig