mirror of https://github.com/AlexeyAB/darknet.git
Merge pull request #4896 from tiagoshibata/opencv4-AlexeyAB
Support building with OpenCV 4
This commit is contained in:
commit
1de03f948c
6
Makefile
6
Makefile
|
@ -60,7 +60,7 @@ else
|
|||
CC=gcc
|
||||
endif
|
||||
|
||||
CPP=g++
|
||||
CPP=g++ -std=c++11
|
||||
NVCC=nvcc
|
||||
OPTS=-Ofast
|
||||
LDFLAGS= -lm -pthread
|
||||
|
@ -87,8 +87,8 @@ endif
|
|||
ifeq ($(OPENCV), 1)
|
||||
COMMON+= -DOPENCV
|
||||
CFLAGS+= -DOPENCV
|
||||
LDFLAGS+= `pkg-config --libs opencv`
|
||||
COMMON+= `pkg-config --cflags opencv`
|
||||
LDFLAGS+= `pkg-config --libs opencv4 2> /dev/null || pkg-config --libs opencv`
|
||||
COMMON+= `pkg-config --cflags opencv4 2> /dev/null || pkg-config --cflags opencv`
|
||||
endif
|
||||
|
||||
ifeq ($(OPENMP), 1)
|
||||
|
|
Loading…
Reference in New Issue