c++ - g++ : error: `pkg-config: No such file or directory

标签 c++ opencv cygwin

我安装了 cygwin 并按照此进行安装 http://cs.calvin.edu/curriculum/cs/112/resources/installingEclipse/cygwin/

然后我在我的 cmd 上运行它

cd opencv
cd sources
cd samples
cd cpp
g++ -ggdb `pkg-config --cflags --libs opencv` facedetect.cpp -o facedetect

结果是这样的

g++: error: `pkg-config: No such file or directory
g++: error: opencv`: No such file or directory
g++: error: unrecognized command line option '--cflags'
g++: error: unrecognized command line option '--libs'

我想做的是在 opencv 中运行 facedetect.cpp 来测试我的分类器,感谢您对解决此问题或提供替代方法的任何帮助

最佳答案

关于c++ - g++ : error: `pkg-config: No such file or directory,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34554711/

相关文章:

c++ - Windows 登录用户唯一 ID

c++ - 从简历垫中删除行或列的最佳方法是什么

c++ - 用于人脸检测的 opencv 3.1 detectmultiscale()

c++ - 使用opencv和cpp的应用程序的Yocto配方

c++ - 如何在 Visual Studio Community 2015 中在 Windows 上编译 PortAudio?

c++ - 在直方图中仅绘制特定的 bin

c++ - 在 Google 的 CTemplate 中循环

git - 在 Windows 7 上使用 git-bash 更新文件权限

cygwin - 什么是 cygwin,它有什么作用

c++ - 如何在 Cygwin 文件结构中正确放置非默认 C++ 包