darknet icon indicating copy to clipboard operation
darknet copied to clipboard

Building the darknet with 'make' in Linux

Open Sammytop123 opened this issue 2 years ago • 0 comments

Hi Rafael,

I'm trying to build your custom darknet repos after having downloaded it with git clone, by using the command 'make' . (running in Linux): I get the following : " mkdir -p obj mkdir -p results gcc -Iinclude/ -Isrc/ -DOPENCV pkg-config --cflags opencv -DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -DOPENCV -DGPU -DCUDNN -c ./src/gemm.c -o obj/gemm.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 No package 'opencv' found In file included from ./src/utils.h:5, from ./src/gemm.c:2: include/darknet.h:25:14: fatal error: opencv2/highgui/highgui_c.h: No such file or directory 25 | #include "opencv2/highgui/highgui_c.h" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. make: *** [Makefile:85: obj/gemm.o] Error 1 "

How can I resolve this?

Thx

Sammytop123 avatar May 16 '22 12:05 Sammytop123