spmallick / learnopencv

Learn OpenCV : C++ and Python Examples
https://www.learnopencv.com/
21.1k stars 11.58k forks source link

pkg-config: No such file or directory #828

Open corner100 opened 1 year ago

corner100 commented 1 year ago

Wenn running

g++ -shared -rdynamic -g -O3 -Wall -fPIC \ bv.cpp src/bvmodule.cpp \ -DMODULE_STR=bv -DMODULE_PREFIX=pybv \ -DNDEBUG -DPY_MAJOR_VERSION=3 \ `pkg-config --cflags --libs opencv`  \ `python3-config --includes --ldflags` \ -I . -I/usr/local/lib/python3.5/dist-packages/numpy/core/include \ -o build/bv.so

in https://github.com/spmallick/learnopencv/tree/master/pymodule

I get the following error on windows:

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

but pkg-config is installed. pkg-config --version 0.26