You are not logged in.

#1 2020-01-06 21:53:13

sev7en
Member
Registered: 2019-12-13
Posts: 6

OPENCV missing for YoloV3 configuration

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

#2 2020-01-06 21:57:53

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,427

Re: OPENCV missing for YoloV3 configuration

https://www.archlinux.org/packages/extra/x86_64/opencv/ ? What are you trying to do exactly? Post terminal outputs.

Offline

#3 2020-01-06 22:23:30

sev7en
Member
Registered: 2019-12-13
Posts: 6

Re: OPENCV missing for YoloV3 configuration

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

#4 2020-01-06 22:55:27

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,093

Re: OPENCV missing for YoloV3 configuration

The pkgconfig file for opencv is called opencv4.pc, not opencv.pc

Offline

#5 2020-01-07 01:38:58

sev7en
Member
Registered: 2019-12-13
Posts: 6

Re: OPENCV missing for YoloV3 configuration

arojas wrote:

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

#6 2020-03-23 17:58:24

vfbsilva
Member
From: Brazil
Registered: 2010-04-08
Posts: 103

Re: OPENCV missing for YoloV3 configuration

@sev7en did you manage to solve it?

Offline

Board footer

Powered by FluxBB