mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2024-12-24 20:01:42 +00:00
give error message with ENABLE_OCR
This commit is contained in:
parent
eb93345544
commit
2c9faa70ea
@ -42,11 +42,31 @@ INSTLALL_PROGRAM = $(INSTLALL)
|
|||||||
DESTDIR = /usr/bin
|
DESTDIR = /usr/bin
|
||||||
|
|
||||||
ifeq ($(ENABLE_OCR),yes)
|
ifeq ($(ENABLE_OCR),yes)
|
||||||
CFLAGS+=-I/usr/local/include/tesseract -I/usr/local/include/leptonica
|
|
||||||
CFLAGS+=-DENABLE_OCR
|
CFLAGS+=-DENABLE_OCR
|
||||||
LDFLAGS+= $(shell pkg-config --libs tesseract)
|
TESS_LDFLAGS+= $(shell pkg-config --libs tesseract)
|
||||||
LDFLAGS+= $(shell pkg-config --libs lept)
|
LEPT_LDFLAGS+= $(shell pkg-config --libs lept)
|
||||||
|
|
||||||
|
#error checking of library are there or not
|
||||||
|
ifeq ($(TESS_LDFLAGS),$(EMPTY))
|
||||||
|
$(error **ERROR** "tesseract not found")
|
||||||
|
else
|
||||||
|
#TODO print the version of library found
|
||||||
|
$(info "tesseract found")
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(LEPT_LDFLAGS),$(EMPTY))
|
||||||
|
$(error **ERROR** "leptonica not found")
|
||||||
|
else
|
||||||
|
#TODO print the version of library found
|
||||||
|
$(info "Leptonica found")
|
||||||
|
endif
|
||||||
|
|
||||||
|
CFLAGS += $(shell pkg-config --cflags tesseract)
|
||||||
|
CFLAGS += $(shell pkg-config --cflags lept)
|
||||||
|
LDFLAGS += $(TESS_LDFLAGS)
|
||||||
|
LDFLAGS += $(LEPT_LDFLAGS)
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
ifeq ($(ENABLE_FFMPEG),yes)
|
ifeq ($(ENABLE_FFMPEG),yes)
|
||||||
CFLAGS+=-DENABLE_FFMPEG
|
CFLAGS+=-DENABLE_FFMPEG
|
||||||
CFLAGS+= $(shell pkg-config --cflags libavcodec)
|
CFLAGS+= $(shell pkg-config --cflags libavcodec)
|
||||||
|
Loading…
Reference in New Issue
Block a user