File tree Expand file tree Collapse file tree 3 files changed +9
-7
lines changed
Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,9 @@ LIBS+=-lopencv_imgcodecs -lopencv_core -lopencv_highgui -lopencv_imgproc
88# Source directories
99INCDIR+ =-I/usr/local/include/opencv4
1010LIBDIR+ =-L/usr/local/lib
11+ else
12+ CFLAGS += $(shell pkg-config --cflags opencv4)
13+ LFLAGS += $(shell pkg-config --libs opencv4)
1114endif # INCLUDE_OPENCV
1215
1316# Defining preprocessor directive for debug
Original file line number Diff line number Diff line change 1- # Adding stb lib for image handling
2- CFLAGS_OPENCV := $(shell pkg-config --cflags opencv4)
3- LFLAGS_OPENCV := $(shell pkg-config --libs opencv4)
4-
51# Include common Makefile
62include ../Makefile
73
8- # Include stb lib for compilation
9- CFLAGS += $(CFLAGS_OPENCV )
10- LFLAGS += $(LFLAGS_OPENCV )
4+ # Include OpenCV for compilation
5+ CFLAGS += $(shell pkg-config --cflags opencv4 )
6+ LFLAGS += $(shell pkg-config --libs opencv4 )
117
128# Defining preprocessor directive for debug
139ifdef IPS_DEBUG_EN
Original file line number Diff line number Diff line change @@ -10,6 +10,9 @@ LIBS+=-lopencv_imgcodecs -lopencv_core -lopencv_highgui -lopencv_imgproc
1010# Source directories
1111INCDIR+ =-I$(OPENCV_H_DIR )
1212LIBDIR+ =-L$(OPENCV_SO_DIR )
13+ else
14+ CFLAGS += $(shell pkg-config --cflags opencv4)
15+ LFLAGS += $(shell pkg-config --libs opencv4)
1316endif # INCLUDE_OPENCV
1417
1518# Defining preprocessor directive for debug
You can’t perform that action at this time.
0 commit comments