【发布时间】:2015-08-12 21:10:22
【问题描述】:
我正在使用 mac os 10.10,我需要通过 make 构建一些代码,但它给了我一个错误
make
gcc `pkg-config --cflags opencv` -O3 `pkg-config --libs opencv` -o congealReal congealReal.cpp
/bin/sh: pkg-config: command not found
/bin/sh: pkg-config: command not found
congealReal.cpp:87:10: fatal error: 'cv.h' file not found
#include <cv.h>
但我已经通过 brew 安装了 opencv
brew install opencv
Warning: homebrew/science/opencv-2.4.11_2 already installed
那么如何在 mac os 中设置 opencv 环境呢?
【问题讨论】: