g++: error: `pkg-config: No such file or directory
g++: error: `pkg-config: No such file or directory
我安装了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'
我想做的是 运行 facedetect.cpp 在 opencv 中测试我的分类器 如果能帮助解决这个问题或提供替代方法,我们将不胜感激
安装软件包 pkg-config 和 libopencv-devel
我安装了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'
我想做的是 运行 facedetect.cpp 在 opencv 中测试我的分类器 如果能帮助解决这个问题或提供替代方法,我们将不胜感激
安装软件包 pkg-config 和 libopencv-devel