Skip to content

Commit cf7c88d

Browse files
authored
configure.ac: Check for the presence of pango 1.22.0 or higher
Tesseract's training tool text2image uses these two functions: pango_glyph_item_iter_init_start pango_glyph_item_iter_next_cluster That means it requires Pango >=1.22.0: https://developer.gnome.org/pango/stable/api-index-1-22.html https://developer.gnome.org/pango/stable/pango-Glyph-Storage.html#pango-glyph-item-iter-init-start https://developer.gnome.org/pango/stable/pango-Glyph-Storage.html#pango-glyph-item-iter-next-cluster
1 parent 808a10f commit cf7c88d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

configure.ac

+3-2
Original file line numberDiff line numberDiff line change
@@ -477,9 +477,10 @@ if !($have_icu_uc && $have_icu_i18n); then
477477
fi
478478
479479
# Check location of pango headers
480-
PKG_CHECK_MODULES([pango], [pango], [have_pango=true], [have_pango=false])
480+
PKG_CHECK_MODULES([pango], [pango >= 1.22.0], [have_pango=true], [have_pango=false])
481481
if !($have_pango); then
482-
AC_MSG_WARN([Training tools WILL NOT be built because of missing pango library.])
482+
AC_MSG_WARN([pango 1.22.0 or higher is required, but was not found.])
483+
AC_MSG_WARN([Training tools WILL NOT be built.])
483484
AC_MSG_WARN([Try to install libpango1.0-dev package.])
484485
AM_CONDITIONAL([ENABLE_TRAINING], false)
485486
else

0 commit comments

Comments
 (0)