tesseract-ocr / tesstrain

Train Tesseract LSTM with make
Apache License 2.0
599 stars 178 forks source link

A question about missing dependency warnings when compiling and installing tesseract on centos using source code #388

Open bruceyu0114 opened 1 month ago

bruceyu0114 commented 1 month ago

When centos uses source code compilation to install tesseract, three dependent packages are missing. However, these three dependent packages have been installed and the versions fully meet the requirements. This prevents me from installing the training tool.

the details of three wainings: configure: WARNING: icu 52.1 or higher is required, but was not found. configure: WARNING: Training tools WILL NOT be built. configure: WARNING: Try to install libicu-dev package. checking for pango... no configure: WARNING: pango 1.38.0 or higher is required, but was not found. configure: WARNING: Training tools WILL NOT be built. configure: WARNING: Try to install libpango1.0-dev package. checking for cairo... no configure: WARNING: Training tools WILL NOT be built because of missing cairo library. configure: WARNING: Try to install libcairo-dev?? package.

These three dependency packages are in my current centos environment:

rpm -q libicu pango cairo

libicu-60.3-2.1.al8.x86_64 pango-1.48.7-3.0.1.al8.x86_64 cairo-1.17.4-7.al8.x86_64 [root@iZbp1175f1gdn2130azzoi

Unfortunately, I tried it, both Tesseract4.1.0 and Tesseract5.3.0 have this problem.

Are there any environment variables that need to be configured for these three packages?

I tried, icu 52.1 was installed using source code compilation, and PKG_CONIFG_PATH was set in /etc/profile. The first dependency package warning could be resolved, but the remaining two dependency package warnings left me at a loss.

Looking forward to and thanking you for your answers.

zdenop commented 1 month ago

try to read warning messages once again and compare them with output of our rpm command ;-)