Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building the darknet with 'make' in Linux #16

Open
Sammytop123 opened this issue May 16, 2022 · 0 comments
Open

Building the darknet with 'make' in Linux #16

Sammytop123 opened this issue May 16, 2022 · 0 comments

Comments

@Sammytop123
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant