You are not logged in.

#1 2019-05-08 16:04:07

chibo
Member
Registered: 2018-04-27
Posts: 87

[DONE] OpenCV was not found in the pkg-config search path

↪ pkg-config --cflags --libs opencv
Package opencv was not found in the pkg-config search path.
Perhaps you should add the directory containing `opencv.pc'
to the PKG_CONFIG_PATH environment variable
Package 'opencv', required by 'virtual:world', not found
↪ 

so it leading to fatal error #include in compile time


--------------------------------------------------------

make

solve the problem  ~_~

Last edited by chibo (2019-05-08 16:16:42)

Offline

#2 2019-05-08 17:48:54

loqs
Member
Registered: 2014-03-06
Posts: 17,321

Re: [DONE] OpenCV was not found in the pkg-config search path

chibo do you mean you solved the problem by running make (meaning build opencv from source)?
Also if you reference something producing a build error please include the build output showing the error,  details of the project and how you are trying to build it.

Offline

#3 2019-05-08 20:55:49

chibo
Member
Registered: 2018-04-27
Posts: 87

Re: [DONE] OpenCV was not found in the pkg-config search path

loqs wrote:

chibo do you mean you solved the problem by running make (meaning build opencv from source)?
Also if you reference something producing a build error please include the build output showing the error,  details of the project and how you are trying to build it.

My bad, just haven't enough time, heh

That was opencv-samples, cpp folder, I changed permission to 777, added whole folder to VSCode and tried to run cpp files directly through Run-Code extension, which is works fine for small programs, but it doesn't work with this case, even after I added header path to C/C++ config in VSCode.

I guess it's normal, that's why Makefile laying in a folders, but whatever, I'm in love with Python & Nim ¯\_(ツ)_/¯

Offline

Board footer

Powered by FluxBB