0

PROBLEM:

I am trying build and install (configure, make, make install...) tesseract version 3 (tesseract-ocr-3.02.02) on Ubuntu Server 20.04 LTS and the following error is occurring...

Build and install commands...

tar -zxvf tesseract-ocr-3.02.02.tar.gz
cd ./tesseract-ocr-3.02.02
./autogen.sh
./configure
make -j 4 && make install
ldconfig

Error output...

[...]
-I../viewer -I/usr/local/include/leptonica -g -O2 -MT con_comp.lo -MD -MP -MF .deps/con_comp.Tpo -c con_comp.cpp  -fPIC -DPIC -o .libs/con_comp.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -O3 -DNDEBUG -DUSE_STD_NAMESPACE -I../cutil -I../ccutil -I../ccstruct -I../dict -I../ccmain -I../classify -I../textord -I../wordrec -I../neural_networks/runtime -I../image -I../viewer -I/usr/local/include/leptonica -g -O2 -MT con_comp.lo -MD -MP -MF .deps/con_comp.Tpo -c con_comp.cpp -o con_comp.o >/dev/null 2>&1
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -O3 -DNDEBUG -DUSE_STD_NAMESPACE -I../cutil -I../ccutil -I../ccstruct -I../dict -I../ccmain -I../classify -I../textord -I../wordrec -I../neural_networks/runtime -I../image -I../viewer -I/usr/local/include/leptonica -g -O2 -MT classifier_factory.lo -MD -MP -MF .deps/classifier_factory.Tpo -c classifier_factory.cpp -o classifier_factory.o >/dev/null 2>&1
mv -f .deps/char_samp.Tpo .deps/char_samp.Plo
mv -f .deps/con_comp.Tpo .deps/con_comp.Plo
mv -f .deps/classifier_factory.Tpo .deps/classifier_factory.Plo
make[2]: Leaving directory '/usr/local/lib/tesseract-ocr/cube'
make[1]: *** [Makefile:481: all-recursive] Error 1
make[1]: Leaving directory '/usr/local/lib/tesseract-ocr'
make: *** [Makefile:390: all] Error 2

QUESTION:

What can I do to get more information about this error?

IMPORTANT:

The method used to build and installing tesseract (configure, make, make install...) is a standard and well-known process... So, based on that, I think there are known ways to get more information so we can diagnose what's going on. There is almost no information on the internet about this specific error, so I really need help with this.

Thanks! =D

5
  • 1
    Without seeing your make files it will be guesswork trying to debug this for you.
    – DavidPostill
    Commented Feb 11, 2021 at 21:24
  • Adjustments made @DavidPostill . Thanks! =D Commented Feb 11, 2021 at 22:35
  • 1
    Building in /usr/local/lib doesn't sound right. Please consider doing it elsewhere and also not as root.
    – Daniel B
    Commented Feb 11, 2021 at 22:38
  • Indeed! @DanielB Commented Feb 11, 2021 at 22:40
  • I already made changes to the question. What remains for us to reopen it? =D Commented Feb 11, 2021 at 23:20

1 Answer 1

0

PROBLEM SOLVED!

The solution was upgrade to version 3.05.02 , that is, 3 "MINORs" ahead which reduces our risks with compatibility - upgrade 1 "MAJOR" (4.1.1 , latest at time), in our view, would be very risky.

We had to update the leptonica (dependency) as well. The same reasoning was used: "1.71" -> "1.74.1" (3 "MINORs").

NOTES: I - The package "pkg-config" is required for this tesseract version; II - Versioning logic reference -> "MAJOR.MINOR.REVISION.BUILDNUMBER" .

Thanks! =D

[Refs.: http://programmers.stackexchange.com/questions/24987/what-exactly-is-the-build-number-in-major-minor-buildnumber-revision , https://gist.github.com/braitsch/ee5434f91744026abb6c099f98e67613 , https://github.com/tesseract-ocr/tesseract/issues/941#issuecomment-304080060 ]

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .