You are not logged in.
Good morning and Happy New Year.
I am writing you as for the configuration of YOLO are required the OPENCV package.
I installed that libraries successfully via yay but now when I have to compile the darknet launcher, I have the error about the "Package cv not found in the pkg-config search path".
I used various ways to look for that path (mlocate, recoll) but I was unable to see where that package / path is.
How can I indentify it?
Cheers,
Offline
https://www.archlinux.org/packages/extra/x86_64/opencv/ ? What are you trying to do exactly? Post terminal outputs.
Offline
Hello,
thanks for the prompt support. I am compiling the darknet for the opencv support.
It is the output I get from the make:
++ -Iinclude/ -Isrc/ -DOPENCV `pkg-config --cflags opencv` -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -DOPENCV -c ./src/image_opencv.cpp -o obj/image_opencv.o
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
./src/image_opencv.cpp:5:10: fatal error: opencv2/opencv.hpp: No such file or directory
5 | #include "opencv2/opencv.hpp"
| ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:86: obj/image_opencv.o] Error 1
Offline
The pkgconfig file for opencv is called opencv4.pc, not opencv.pc
Offline
The pkgconfig file for opencv is called opencv4.pc, not opencv.pc
Thank you, it means in which one can fix it and set the required path?
With Regards,
Offline
@sev7en did you manage to solve it?
Offline