mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-21 08:43:03 +08:00
Use more compiler and linker flags from pkg-config
This fixes some build issues with Homebrew on MacOS. Signed-off-by: Stefan Weil <stefan@Sabines-Mac-mini.fritz.box>
This commit is contained in:
parent
66175f9745
commit
6fcf8d23bc
@ -235,8 +235,8 @@ text2image_LDADD = \
|
||||
$(ICU_I18N_LIBS) $(ICU_UC_LIBS)
|
||||
text2image_LDADD += \
|
||||
../../libtesseract.la
|
||||
text2image_LDADD += $(ICU_UC_LIBS) -lpango-1.0 -lpangocairo-1.0
|
||||
text2image_LDADD += -lgobject-2.0 -lglib-2.0 -lcairo -lpangoft2-1.0 -lfontconfig
|
||||
text2image_LDADD += $(ICU_UC_LIBS) $(cairo_LIBS)
|
||||
text2image_LDADD += $(pango_LIBS) $(pangocairo_LIBS) $(pangoft2_LIBS)
|
||||
|
||||
unicharset_extractor_SOURCES = unicharset_extractor.cpp
|
||||
#unicharset_extractor_LDFLAGS = -static
|
||||
|
@ -42,6 +42,7 @@ AM_CPPFLAGS += -I$(top_srcdir)/src/lstm
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/src/textord
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/unittest/base
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/unittest/util
|
||||
AM_CPPFLAGS += $(LEPTONICA_CFLAGS)
|
||||
if ENABLE_TRAINING
|
||||
AM_CPPFLAGS += -I$(top_srcdir)/src/training
|
||||
AM_CPPFLAGS += $(pangocairo_CFLAGS)
|
||||
@ -310,8 +311,8 @@ layout_test_LDADD = $(TRAINING_LIBS) $(LEPTONICA_LIBS)
|
||||
|
||||
ligature_table_test_SOURCES = ligature_table_test.cc
|
||||
ligature_table_test_LDADD = $(TRAINING_LIBS)
|
||||
ligature_table_test_LDADD += $(ICU_I18N_LIBS) $(ICU_UC_LIBS) -lfontconfig
|
||||
ligature_table_test_LDADD += -lpangocairo-1.0 -lpangoft2-1.0
|
||||
ligature_table_test_LDADD += $(ICU_I18N_LIBS) $(ICU_UC_LIBS)
|
||||
ligature_table_test_LDADD += $(pangocairo_LIBS) $(pangoft2_LIBS)
|
||||
ligature_table_test_LDADD += $(cairo_LIBS) $(pango_LIBS)
|
||||
|
||||
linlsq_test_SOURCES = linlsq_test.cc
|
||||
@ -416,7 +417,7 @@ endif # TENSORFLOW
|
||||
stringrenderer_test_SOURCES = stringrenderer_test.cc
|
||||
stringrenderer_test_LDADD = $(ABSEIL_LIBS) $(TRAINING_LIBS) $(LEPTONICA_LIBS)
|
||||
stringrenderer_test_LDADD += $(ICU_I18N_LIBS) $(ICU_UC_LIBS)
|
||||
stringrenderer_test_LDADD += -lfontconfig -lpangocairo-1.0 -lpangoft2-1.0
|
||||
stringrenderer_test_LDADD += $(pangocairo_LIBS) $(pangoft2_LIBS)
|
||||
stringrenderer_test_LDADD += $(cairo_LIBS) $(pango_LIBS)
|
||||
|
||||
tablefind_test_SOURCES = tablefind_test.cc
|
||||
|
Loading…
Reference in New Issue
Block a user