File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 11PKG_CONFIG_NAME = opencv4
22PKG_CONFIG ?= $(BINPREF)pkg-config
33PKG_LIBS := $(shell $(PKG_CONFIG) --libs $(PKG_CONFIG_NAME))
4+ STATIC_CFLAGS = -DHAVE_XFEATURES2D
45
5- ifneq ($(findstring wechat ,$(PKG_LIBS)),)
6+ ifneq ($(findstring xfeatures2d ,$(PKG_LIBS)),)
67$(info using $(PKG_CONFIG_NAME) from Rtools)
7- PKG_CPPFLAGS := $(shell $(PKG_CONFIG) --cflags $(PKG_CONFIG_NAME))
8+ PKG_CPPFLAGS := $(shell $(PKG_CONFIG) --cflags $(PKG_CONFIG_NAME)) $(STATIC_CFLAGS)
89OPENCVDATA := $(shell $(PKG_CONFIG) --variable=prefix $(PKG_CONFIG_NAME))/share/opencv4
910else
1011RWINLIB = ../windows/opencv
11- PKG_CPPFLAGS = -I$(RWINLIB)/include/opencv4 -DHAVE_XFEATURES2D
12+ PKG_CPPFLAGS = -I$(RWINLIB)/include/opencv4 $(STATIC_CFLAGS)
1213OLDLIBDIR = lib${subst gcc,,${COMPILED_BY}}${R_ARCH}
1314PKG_LIBS = \
1415 -L$(RWINLIB)/$(OLDLIBDIR) \
You can’t perform that action at this time.
0 commit comments