Reference: https://github.com/tesseract-ocr/tesseract/wiki/Compiling
http://hanzratech.in/2015/01/16/ocr-using-tesseract-on-ubuntu-14-04.html
Compilation:
- clone the package from github
1git clone --depth 1 https://github.com/tesseract-ocr/tesseract.git - Go to the new dir
1cd tesseract - autogen
1./autogen.sh - configure
1./configure --enable-debug
Here i can’t configure it correctly because it always complained about leptonica 1.74
123checking pkg-config is at least version 0.9.0... yeschecking for LEPTONICA... noconfigure: error: Leptonica 1.74 or higher is required. Try to install libleptonica-dev package.
I already did
1PKG_CONFIG_PATH=/usr/local/lib/pkgconfig LIBLEPT_HEADERSDIR=/usr/local/include ./configure --with-extra-includes=/usr/local/include --with-extra-libraries=/usr/local/lib
But the error still persist!
SOLUTION: I HAVE TO COMPILE AND INSTALL LEPTONICA 1.74 MANUALLY (READ: http://myprojects.advchaweb.com/index.php/2017/02/02/installing-leptonica-1-74-1-on-ubuntu-14-04/)
NOW IT SUCCESS!
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194teddy@teddy-K43SJ:~/Documents/cpp/tesseract$ ./configure --enable-debugchecking for g++... g++checking whether the C++ compiler works... yeschecking for C++ compiler default output file name... a.outchecking for suffix of executables...checking whether we are cross compiling... nochecking for suffix of object files... ochecking whether we are using the GNU C++ compiler... yeschecking whether g++ accepts -g... yesUsing git revision: bd45b3achecking for a BSD-compatible install... /usr/bin/install -cchecking whether build environment is sane... yeschecking for a thread-safe mkdir -p... /bin/mkdir -pchecking for gawk... gawkchecking whether make sets $(MAKE)... yeschecking for style of include used by make... GNUchecking whether make supports nested variables... yeschecking dependency style of g++... gcc3checking whether to enable maintainer-specific portions of Makefiles... nochecking build system type... x86_64-unknown-linux-gnuchecking host system type... x86_64-unknown-linux-gnuchecking whether C++ compiler accepts -mavx... yeschecking whether C++ compiler accepts -msse4.1... yeschecking --enable-graphics argument... yeschecking --enable-embedded argument... nochecking for g++ option to support OpenMP... -fopenmpchecking --enable-opencl argument... nochecking how to run the C++ preprocessor... g++ -Echecking for grep that handles long lines and -e... /bin/grepchecking for egrep... /bin/grep -Echecking for ANSI C header files... yeschecking for sys/types.h... yeschecking for sys/stat.h... yeschecking for stdlib.h... yeschecking for string.h... yeschecking for memory.h... yeschecking for strings.h... yeschecking for inttypes.h... yeschecking for stdint.h... yeschecking for unistd.h... yeschecking CL/cl.h usability... nochecking CL/cl.h presence... nochecking for CL/cl.h... nochecking OpenCL/cl.h usability... nochecking OpenCL/cl.h presence... nochecking for OpenCL/cl.h... nochecking tiffio.h usability... yeschecking tiffio.h presence... yeschecking for tiffio.h... yeschecking for clGetPlatformIDs in -lOpenCL... yeschecking --enable-visibility argument... nochecking --enable-multiple-libraries argument... nochecking whether to use tessdata-prefix... yeschecking whether to enable debugging... yeschecking how to print strings... printfchecking for gcc... gccchecking whether we are using the GNU C compiler... yeschecking whether gcc accepts -g... yeschecking for gcc option to accept ISO C89... none neededchecking whether gcc understands -c and -o together... yeschecking dependency style of gcc... gcc3checking for a sed that does not truncate output... /bin/sedchecking for fgrep... /bin/grep -Fchecking for ld used by gcc... /usr/bin/ldchecking if the linker (/usr/bin/ld) is GNU ld... yeschecking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -Bchecking the name lister (/usr/bin/nm -B) interface... BSD nmchecking whether ln -s works... yeschecking the maximum length of command line arguments... 1572864checking whether the shell understands some XSI constructs... yeschecking whether the shell understands "+="... yeschecking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noopchecking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noopchecking for /usr/bin/ld option to reload object files... -rchecking for objdump... objdumpchecking how to recognize dependent libraries... pass_allchecking for dlltool... nochecking how to associate runtime and link libraries... printf %s\nchecking for ar... archecking for archiver @FILE support... @checking for strip... stripchecking for ranlib... ranlibchecking command to parse /usr/bin/nm -B output from gcc object... okchecking for sysroot... nochecking for mt... mtchecking if mt is a manifest tool... nochecking for dlfcn.h... yeschecking for objdir... .libschecking if gcc supports -fno-rtti -fno-exceptions... nochecking for gcc option to produce PIC... -fPIC -DPICchecking if gcc PIC flag -fPIC -DPIC works... yeschecking if gcc static flag -static works... yeschecking if gcc supports -c -o file.o... yeschecking if gcc supports -c -o file.o... (cached) yeschecking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yeschecking whether -lc should be explicitly linked in... nochecking dynamic linker characteristics... GNU/Linux ld.sochecking how to hardcode library paths into programs... immediatechecking whether stripping libraries is possible... yeschecking if libtool supports shared libraries... yeschecking whether to build shared libraries... yeschecking whether to build static libraries... yeschecking how to run the C++ preprocessor... g++ -Echecking for ld used by g++... /usr/bin/ld -m elf_x86_64checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yeschecking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yeschecking for g++ option to produce PIC... -fPIC -DPICchecking if g++ PIC flag -fPIC -DPIC works... yeschecking if g++ static flag -static works... yeschecking if g++ supports -c -o file.o... yeschecking if g++ supports -c -o file.o... (cached) yeschecking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yeschecking dynamic linker characteristics... (cached) GNU/Linux ld.sochecking how to hardcode library paths into programs... immediatechecking whether byte ordering is bigendian... nochecking if compiling with clang... nochecking whether compiler supports C++11... yeschecking for snprintf... yeschecking for library containing sem_init... -lpthreadchecking for ANSI C header files... (cached) yeschecking whether time.h and sys/time.h may both be included... yeschecking for sys/wait.h that is POSIX.1 compatible... yeschecking sys/ipc.h usability... yeschecking sys/ipc.h presence... yeschecking for sys/ipc.h... yeschecking sys/shm.h usability... yeschecking sys/shm.h presence... yeschecking for sys/shm.h... yeschecking limits.h usability... yeschecking limits.h presence... yeschecking for limits.h... yeschecking malloc.h usability... yeschecking malloc.h presence... yeschecking for malloc.h... yeschecking for stdbool.h that conforms to C99... yeschecking for _Bool... nochecking whether #! works in shell scripts... yeschecking for special C compiler options needed for large files... nochecking for _FILE_OFFSET_BITS value needed for large files... nochecking for getline... yeschecking for wchar_t... yeschecking for long long int... yeschecking for off_t... yeschecking for mbstate_t... yeschecking for pkg-config... /usr/bin/pkg-configchecking pkg-config is at least version 0.9.0... yeschecking for LEPTONICA... yeschecking for ICU_UC... yeschecking for ICU_I18N... yeschecking for pango... yeschecking for cairo... yeschecking that generated files are newer than configure... doneconfigure: creating ./config.statusconfig.status: creating Makefileconfig.status: creating tesseract.pcconfig.status: creating api/Makefileconfig.status: creating arch/Makefileconfig.status: creating ccmain/Makefileconfig.status: creating opencl/Makefileconfig.status: creating ccstruct/Makefileconfig.status: creating ccutil/Makefileconfig.status: creating classify/Makefileconfig.status: creating cutil/Makefileconfig.status: creating dict/Makefileconfig.status: creating lstm/Makefileconfig.status: creating textord/Makefileconfig.status: creating viewer/Makefileconfig.status: creating wordrec/Makefileconfig.status: creating tessdata/Makefileconfig.status: creating tessdata/configs/Makefileconfig.status: creating tessdata/tessconfigs/Makefileconfig.status: creating testing/Makefileconfig.status: creating java/Makefileconfig.status: creating java/com/Makefileconfig.status: creating java/com/google/Makefileconfig.status: creating java/com/google/scrollview/Makefileconfig.status: creating java/com/google/scrollview/events/Makefileconfig.status: creating java/com/google/scrollview/ui/Makefileconfig.status: creating doc/Makefileconfig.status: creating training/Makefileconfig.status: creating config_auto.hconfig.status: executing depfiles commandsconfig.status: executing libtool commandsConfiguration is done.You can now build and install tesseract by running:$ make$ sudo make installTraining tools can be build and installed (after building of tesseract) with:$ make training$ sudo make training-install
- Since we have to compile leptonica to use version 1.74, we should use LDFLAGS=”-L/usr/local/lib” CFLAGS=”-I/usr/local/include” make instead of make for Tesseract.
1234567891011121314151617181920212223242526272829teddy@teddy-K43SJ:~/Documents/cpp/tesseract$ LDFLAGS="-L/usr/local/lib" CFLAGS="-I/usr/local/include" make...g++ -DHAVE_CONFIG_H -I. -I.. -g -Wall -O0 -DDEBUG -DLOCALEDIR=\"/usr/local/share/locale\" -DUSE_STD_NAMESPACE -I../arch -I../lstm -I../ccutil -I../ccstruct -I../viewer -I../textord -I../dict -I../classify -I../ccmain -I../wordrec -I../cutil -I../opencl -I/usr/local/include/leptonica -pthread -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -std=c++11 -MT tesseract-tesseractmain.o -MD -MP -MF .deps/tesseract-tesseractmain.Tpo -c -o tesseract-tesseractmain.o `test -f 'tesseractmain.cpp' || echo './'`tesseractmain.cppmv -f .deps/tesseract-tesseractmain.Tpo .deps/tesseract-tesseractmain.Po/bin/bash ../libtool --tag=CXX --mode=link g++ -g -O2 -std=c++11 -o tesseract tesseract-tesseractmain.o libtesseract.la -L/usr/local/lib -llept -fopenmp -ltiff -lrt -lpthreadlibtool: link: g++ -g -O2 -std=c++11 -o .libs/tesseract tesseract-tesseractmain.o -fopenmp ./.libs/libtesseract.so -L/usr/local/lib /usr/local/lib/liblept.so /usr/lib/x86_64-linux-gnu/libtiff.so -lrt -lpthread -fopenmpmake[2]: Leaving directory `/home/teddy/Documents/cpp/tesseract/api'Making all in .make[2]: Entering directory `/home/teddy/Documents/cpp/tesseract'make[2]: Leaving directory `/home/teddy/Documents/cpp/tesseract'Making all in tessdatamake[2]: Entering directory `/home/teddy/Documents/cpp/tesseract/tessdata'Making all in configsmake[3]: Entering directory `/home/teddy/Documents/cpp/tesseract/tessdata/configs'make[3]: Nothing to be done for `all'.make[3]: Leaving directory `/home/teddy/Documents/cpp/tesseract/tessdata/configs'Making all in tessconfigsmake[3]: Entering directory `/home/teddy/Documents/cpp/tesseract/tessdata/tessconfigs'make[3]: Nothing to be done for `all'.make[3]: Leaving directory `/home/teddy/Documents/cpp/tesseract/tessdata/tessconfigs'make[3]: Entering directory `/home/teddy/Documents/cpp/tesseract/tessdata'make[3]: Nothing to be done for `all-am'.make[3]: Leaving directory `/home/teddy/Documents/cpp/tesseract/tessdata'make[2]: Leaving directory `/home/teddy/Documents/cpp/tesseract/tessdata'Making all in docmake[2]: Entering directory `/home/teddy/Documents/cpp/tesseract/doc'make[2]: Nothing to be done for `all'.make[2]: Leaving directory `/home/teddy/Documents/cpp/tesseract/doc'make[1]: Leaving directory `/home/teddy/Documents/cpp/tesseract'
- make install
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576teddy@teddy-K43SJ:~/Documents/cpp/tesseract$ sudo make install...libtool: install: /usr/bin/install -c .libs/libtesseract.lai /usr/local/lib/libtesseract.lalibtool: install: /usr/bin/install -c .libs/libtesseract.a /usr/local/lib/libtesseract.alibtool: install: chmod 644 /usr/local/lib/libtesseract.alibtool: install: ranlib /usr/local/lib/libtesseract.alibtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/sbin" ldconfig -n /usr/local/lib----------------------------------------------------------------------Libraries have been installed in:/usr/local/libIf you ever happen to want to link against installed librariesin a given directory, LIBDIR, you must either use libtool, andspecify the full pathname of the library, or use the `-LLIBDIR'flag during linking and do at least one of the following:- add LIBDIR to the `LD_LIBRARY_PATH' environment variableduring execution- add LIBDIR to the `LD_RUN_PATH' environment variableduring linking- use the `-Wl,-rpath -Wl,LIBDIR' linker flag- have your system administrator add LIBDIR to `/etc/ld.so.conf'See any operating system documentation about shared libraries formore information, such as the ld(1) and ld.so(8) manual pages.----------------------------------------------------------------------/bin/mkdir -p '/usr/local/bin'/bin/bash ../libtool --mode=install /usr/bin/install -c tesseract '/usr/local/bin'libtool: install: /usr/bin/install -c .libs/tesseract /usr/local/bin/tesseract/bin/mkdir -p '/usr/local/include/tesseract'/usr/bin/install -c -m 644 apitypes.h baseapi.h capi.h renderer.h '/usr/local/include/tesseract'make[2]: Leaving directory `/home/teddy/Documents/cpp/tesseract/api'make[1]: Leaving directory `/home/teddy/Documents/cpp/tesseract/api'Making install in .make[1]: Entering directory `/home/teddy/Documents/cpp/tesseract'make[2]: Entering directory `/home/teddy/Documents/cpp/tesseract'make[2]: Nothing to be done for `install-exec-am'./bin/mkdir -p '/usr/local/lib/pkgconfig'/usr/bin/install -c -m 644 tesseract.pc '/usr/local/lib/pkgconfig'make[2]: Leaving directory `/home/teddy/Documents/cpp/tesseract'make[1]: Leaving directory `/home/teddy/Documents/cpp/tesseract'Making install in tessdatamake[1]: Entering directory `/home/teddy/Documents/cpp/tesseract/tessdata'Making install in configsmake[2]: Entering directory `/home/teddy/Documents/cpp/tesseract/tessdata/configs'make[3]: Entering directory `/home/teddy/Documents/cpp/tesseract/tessdata/configs'make[3]: Nothing to be done for `install-exec-am'./bin/mkdir -p '/usr/local/share/tessdata/configs'/usr/bin/install -c -m 644 inter makebox box.train unlv ambigs.train api_config kannada box.train.stderr quiet logfile digits hocr tsv linebox pdf rebox strokewidth bigram txt '/usr/local/share/tessdata/configs'make[3]: Leaving directory `/home/teddy/Documents/cpp/tesseract/tessdata/configs'make[2]: Leaving directory `/home/teddy/Documents/cpp/tesseract/tessdata/configs'Making install in tessconfigsmake[2]: Entering directory `/home/teddy/Documents/cpp/tesseract/tessdata/tessconfigs'make[3]: Entering directory `/home/teddy/Documents/cpp/tesseract/tessdata/tessconfigs'make[3]: Nothing to be done for `install-exec-am'./bin/mkdir -p '/usr/local/share/tessdata/tessconfigs'/usr/bin/install -c -m 644 batch batch.nochop nobatch matdemo segdemo msdemo '/usr/local/share/tessdata/tessconfigs'make[3]: Leaving directory `/home/teddy/Documents/cpp/tesseract/tessdata/tessconfigs'make[2]: Leaving directory `/home/teddy/Documents/cpp/tesseract/tessdata/tessconfigs'make[2]: Entering directory `/home/teddy/Documents/cpp/tesseract/tessdata'make[3]: Entering directory `/home/teddy/Documents/cpp/tesseract/tessdata'make[3]: Nothing to be done for `install-exec-am'./bin/mkdir -p '/usr/local/share/tessdata'/usr/bin/install -c -m 644 pdf.ttf '/usr/local/share/tessdata'make[3]: Leaving directory `/home/teddy/Documents/cpp/tesseract/tessdata'make[2]: Leaving directory `/home/teddy/Documents/cpp/tesseract/tessdata'make[1]: Leaving directory `/home/teddy/Documents/cpp/tesseract/tessdata'Making install in docmake[1]: Entering directory `/home/teddy/Documents/cpp/tesseract/doc'make[2]: Entering directory `/home/teddy/Documents/cpp/tesseract/doc'make[2]: Nothing to be done for `install-exec-am'./bin/mkdir -p '/usr/local/share/man/man1'/usr/bin/install -c -m 644 cntraining.1 combine_tessdata.1 mftraining.1 tesseract.1 unicharset_extractor.1 wordlist2dawg.1 ambiguous_words.1 shapeclustering.1 dawg2wordlist.1 '/usr/local/share/man/man1'/bin/mkdir -p '/usr/local/share/man/man5'/usr/bin/install -c -m 644 unicharambigs.5 unicharset.5 '/usr/local/share/man/man5'make[2]: Leaving directory `/home/teddy/Documents/cpp/tesseract/doc'make[1]: Leaving directory `/home/teddy/Documents/cpp/tesseract/doc'
- sudo ldconfig
1teddy@teddy-K43SJ:~/Documents/cpp/tesseract$ sudo ldconfig
- Make training
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391teddy@teddy-K43SJ:~/Documents/cpp/tesseract$ make trainingmakemake[1]: Entering directory `/home/teddy/Documents/cpp/tesseract'make all-recursivemake[2]: Entering directory `/home/teddy/Documents/cpp/tesseract'Making all in archmake[3]: Entering directory `/home/teddy/Documents/cpp/tesseract/arch'make[4]: Entering directory `/home/teddy/Documents/cpp/tesseract/arch'make[4]: Nothing to be done for `all-am'.make[4]: Leaving directory `/home/teddy/Documents/cpp/tesseract/arch'make[3]: Leaving directory `/home/teddy/Documents/cpp/tesseract/arch'Making all in ccutilmake[3]: Entering directory `/home/teddy/Documents/cpp/tesseract/ccutil'make[4]: Entering directory `/home/teddy/Documents/cpp/tesseract/ccutil'make[4]: Nothing to be done for `all-am'.make[4]: Leaving directory `/home/teddy/Documents/cpp/tesseract/ccutil'make[3]: Leaving directory `/home/teddy/Documents/cpp/tesseract/ccutil'Making all in viewermake[3]: Entering directory `/home/teddy/Documents/cpp/tesseract/viewer'make[3]: Nothing to be done for `all'.make[3]: Leaving directory `/home/teddy/Documents/cpp/tesseract/viewer'Making all in cutilmake[3]: Entering directory `/home/teddy/Documents/cpp/tesseract/cutil'make[3]: Nothing to be done for `all'.make[3]: Leaving directory `/home/teddy/Documents/cpp/tesseract/cutil'Making all in openclmake[3]: Entering directory `/home/teddy/Documents/cpp/tesseract/opencl'make[3]: Nothing to be done for `all'.make[3]: Leaving directory `/home/teddy/Documents/cpp/tesseract/opencl'Making all in ccstructmake[3]: Entering directory `/home/teddy/Documents/cpp/tesseract/ccstruct'make[3]: Nothing to be done for `all'.make[3]: Leaving directory `/home/teddy/Documents/cpp/tesseract/ccstruct'Making all in dictmake[3]: Entering directory `/home/teddy/Documents/cpp/tesseract/dict'make[3]: Nothing to be done for `all'.make[3]: Leaving directory `/home/teddy/Documents/cpp/tesseract/dict'Making all in classifymake[3]: Entering directory `/home/teddy/Documents/cpp/tesseract/classify'make[3]: Nothing to be done for `all'.make[3]: Leaving directory `/home/teddy/Documents/cpp/tesseract/classify'Making all in wordrecmake[3]: Entering directory `/home/teddy/Documents/cpp/tesseract/wordrec'make[3]: Nothing to be done for `all'.make[3]: Leaving directory `/home/teddy/Documents/cpp/tesseract/wordrec'Making all in textordmake[3]: Entering directory `/home/teddy/Documents/cpp/tesseract/textord'make[3]: Nothing to be done for `all'.make[3]: Leaving directory `/home/teddy/Documents/cpp/tesseract/textord'Making all in lstmmake[3]: Entering directory `/home/teddy/Documents/cpp/tesseract/lstm'make[4]: Entering directory `/home/teddy/Documents/cpp/tesseract/lstm'make[4]: Nothing to be done for `all-am'.make[4]: Leaving directory `/home/teddy/Documents/cpp/tesseract/lstm'make[3]: Leaving directory `/home/teddy/Documents/cpp/tesseract/lstm'Making all in ccmainmake[3]: Entering directory `/home/teddy/Documents/cpp/tesseract/ccmain'make[3]: Nothing to be done for `all'.make[3]: Leaving directory `/home/teddy/Documents/cpp/tesseract/ccmain'Making all in apimake[3]: Entering directory `/home/teddy/Documents/cpp/tesseract/api'make[3]: Nothing to be done for `all'.make[3]: Leaving directory `/home/teddy/Documents/cpp/tesseract/api'Making all in .make[3]: Entering directory `/home/teddy/Documents/cpp/tesseract'make[3]: Leaving directory `/home/teddy/Documents/cpp/tesseract'Making all in tessdatamake[3]: Entering directory `/home/teddy/Documents/cpp/tesseract/tessdata'Making all in configsmake[4]: Entering directory `/home/teddy/Documents/cpp/tesseract/tessdata/configs'make[4]: Nothing to be done for `all'.make[4]: Leaving directory `/home/teddy/Documents/cpp/tesseract/tessdata/configs'Making all in tessconfigsmake[4]: Entering directory `/home/teddy/Documents/cpp/tesseract/tessdata/tessconfigs'make[4]: Nothing to be done for `all'.make[4]: Leaving directory `/home/teddy/Documents/cpp/tesseract/tessdata/tessconfigs'make[4]: Entering directory `/home/teddy/Documents/cpp/tesseract/tessdata'make[4]: Nothing to be done for `all-am'.make[4]: Leaving directory `/home/teddy/Documents/cpp/tesseract/tessdata'make[3]: Leaving directory `/home/teddy/Documents/cpp/tesseract/tessdata'Making all in docmake[3]: Entering directory `/home/teddy/Documents/cpp/tesseract/doc'make[3]: Nothing to be done for `all'.make[3]: Leaving directory `/home/teddy/Documents/cpp/tesseract/doc'make[2]: Leaving directory `/home/teddy/Documents/cpp/tesseract'make[1]: Leaving directory `/home/teddy/Documents/cpp/tesseract'make[1]: Entering directory `/home/teddy/Documents/cpp/tesseract/training'depbase=`echo boxchar.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -g -Wall -O0 -DDEBUG -DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE -I../ccmain -I../api -I../ccutil -I../ccstruct -I../lstm -I../arch -I../viewer -I../textord -I../dict -I../classify -I../display -I../wordrec -I../cutil -I/usr/local/include/leptonica -pthread -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -std=c++11 -MT boxchar.lo -MD -MP -MF $depbase.Tpo -c -o boxchar.lo boxchar.cpp &&\mv -f $depbase.Tpo $depbase.Plolibtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -g -Wall -O0 -DDEBUG -DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE -I../ccmain -I../api -I../ccutil -I../ccstruct -I../lstm -I../arch -I../viewer -I../textord -I../dict -I../classify -I../display -I../wordrec -I../cutil -I/usr/local/include/leptonica -pthread -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -std=c++11 -MT boxchar.lo -MD -MP -MF .deps/boxchar.Tpo -c boxchar.cpp -fPIC -DPIC -o .libs/boxchar.oboxchar.cpp: In static member function 'static void tesseract::BoxChar::TranslateBoxes(int, int, std::vector<tesseract::BoxChar*>*)':boxchar.cpp:54:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]for (int i = 0; i < boxes->size(); ++i) {^boxchar.cpp: In static member function 'static void tesseract::BoxChar::PrepareToWrite(std::vector<tesseract::BoxChar*>*)':boxchar.cpp:71:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]for (int i = 0; i < boxes->size(); ++i) {^boxchar.cpp: In static member function 'static void tesseract::BoxChar::InsertNewlines(bool, bool, std::vector<tesseract::BoxChar*>*)':boxchar.cpp:85:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]for (int i = 0; i < boxes->size(); ++i) {^boxchar.cpp:88:64: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]if (prev_i < 0 || prev_i < i - 1 || i + 1 == boxes->size()) {^boxchar.cpp:94:49: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]} while (i >= 0 && i + 1 == boxes->size() &&^boxchar.cpp: In static member function 'static void tesseract::BoxChar::InsertSpaces(bool, bool, std::vector<tesseract::BoxChar*>*)':boxchar.cpp:149:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]for (int i = 1; i + 1 < boxes->size(); ++i) {^boxchar.cpp:181:45: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]for (int j = i + 2; j < boxes->size() && (*boxes)[j]->box_ != nullptr &&^boxchar.cpp: In static member function 'static void tesseract::BoxChar::ReorderRTLText(std::vector<tesseract::BoxChar*>*)':boxchar.cpp:207:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]for (int start = 0; start < boxes->size(); start = end + 1) {^boxchar.cpp:209:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]while (end < boxes->size() && (*boxes)[end]->ch_ != "\t") ++end;^boxchar.cpp: In static member function 'static bool tesseract::BoxChar::ContainsMostlyRTL(const std::vector<tesseract::BoxChar*>&)':boxchar.cpp:218:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]for (int i = 0; i < boxes.size(); ++i) {^boxchar.cpp:224:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]for (int c = 0; c < boxes[i]->ch_.size(); ++c) {^boxchar.cpp: In static member function 'static bool tesseract::BoxChar::MostlyVertical(const std::vector<tesseract::BoxChar*>&)':boxchar.cpp:247:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]for (int i = 1; i < boxes.size(); ++i) {^boxchar.cpp: In static member function 'static int tesseract::BoxChar::TotalByteLength(const std::vector<tesseract::BoxChar*>&)':boxchar.cpp:266:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]for (int i = 0; i < boxes.size(); ++i) total_length += boxes[i]->ch_.size();^boxchar.cpp: In static member function 'static std::string tesseract::BoxChar::GetTesseractBoxStr(int, const std::vector<tesseract::BoxChar*>&)':boxchar.cpp:305:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]for (int i = 0; i < boxes.size(); ++i) {^libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -g -Wall -O0 -DDEBUG -DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE -I../ccmain -I../api -I../ccutil -I../ccstruct -I../lstm -I../arch -I../viewer -I../textord -I../dict -I../classify -I../display -I../wordrec -I../cutil -I/usr/local/include/leptonica -pthread -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -std=c++11 -MT boxchar.lo -MD -MP -MF .deps/boxchar.Tpo -c boxchar.cpp -o boxchar.o >/dev/null 2>&1depbase=`echo commandlineflags.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -g -Wall -O0 -DDEBUG -DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE -I../ccmain -I../api -I../ccutil -I../ccstruct -I../lstm -I../arch -I../viewer -I../textord -I../dict -I../classify -I../display -I../wordrec -I../cutil -I/usr/local/include/leptonica -pthread -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -std=c++11 -MT commandlineflags.lo -MD -MP -MF $depbase.Tpo -c -o commandlineflags.lo commandlineflags.cpp &&\mv -f $depbase.Tpo $depbase.Plolibtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -g -Wall -O0 -DDEBUG -DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE -I../ccmain -I../api -I../ccutil -I../ccstruct -I../lstm -I../arch -I../viewer -I../textord -I../dict -I../classify -I../display -I../wordrec -I../cutil -I/usr/local/include/leptonica -pthread -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -std=c++11 -MT commandlineflags.lo -MD -MP -MF .deps/commandlineflags.Tpo -c commandlineflags.cpp -fPIC -DPIC -o .libs/commandlineflags.ocommandlineflags.cpp: In function 'void tesseract::ParseCommandLineFlags(const char*, int*, char***, bool)':commandlineflags.cpp:163:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]for (i = 1; i < *argc; ++i) {^commandlineflags.cpp:217:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]if (i + 1 >= *argc) {^commandlineflags.cpp:249:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]if (i + 1 >= *argc) {^commandlineflags.cpp:298:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]if (i + 1 >= *argc) {^libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -g -Wall -O0 -DDEBUG -DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE -I../ccmain -I../api -I../ccutil -I../ccstruct -I../lstm -I../arch -I../viewer -I../textord -I../dict -I../classify -I../display -I../wordrec -I../cutil -I/usr/local/include/leptonica -pthread -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -std=c++11 -MT commandlineflags.lo -MD -MP -MF .deps/commandlineflags.Tpo -c commandlineflags.cpp -o commandlineflags.o >/dev/null 2>&1depbase=`echo commontraining.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -g -Wall -O0 -DDEBUG -DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE -I../ccmain -I../api -I../ccutil -I../ccstruct -I../lstm -I../arch -I../viewer -I../textord -I../dict -I../classify -I../display -I../wordrec -I../cutil -I/usr/local/include/leptonica -pthread -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -std=c++11 -MT commontraining.lo -MD -MP -MF $depbase.Tpo -c -o commontraining.lo commontraining.cpp &&\mv -f $depbase.Tpo $depbase.Plolibtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -g -Wall -O0 -DDEBUG -DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE -I../ccmain -I../api -I../ccutil -I../ccstruct -I../lstm -I../arch -I../viewer -I../textord -I../dict -I../classify -I../display -I../wordrec -I../cutil -I/usr/local/include/leptonica -pthread -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -std=c++11 -MT commontraining.lo -MD -MP -MF .deps/commontraining.Tpo -c commontraining.cpp -fPIC -DPIC -o .libs/commontraining.ocommontraining.cpp: In function 'void ReadTrainingSamples(const FEATURE_DEFS_STRUCT&, const char*, int, UNICHARSET*, FILE*, list_rec**)':commontraining.cpp:430:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]for (i = 0; i < char_desc->NumFeatureSets; i++) {^libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -g -Wall -O0 -DDEBUG -DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE -I../ccmain -I../api -I../ccutil -I../ccstruct -I../lstm -I../arch -I../viewer -I../textord -I../dict -I../classify -I../display -I../wordrec -I../cutil -I/usr/local/include/leptonica -pthread -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -std=c++11 -MT commontraining.lo -MD -MP -MF .deps/commontraining.Tpo -c commontraining.cpp -o commontraining.o >/dev/null 2>&1depbase=`echo degradeimage.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -g -Wall -O0 -DDEBUG -DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE -I../ccmain -I../api -I../ccutil -I../ccstruct -I../lstm -I../arch -I../viewer -I../textord -I../dict -I../classify -I../display -I../wordrec -I../cutil -I/usr/local/include/leptonica -pthread -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -std=c++11 -MT degradeimage.lo -MD -MP -MF $depbase.Tpo -c -o degradeimage.lo degradeimage.cpp &&\mv -f $depbase.Tpo $depbase.Plolibtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -g -Wall -O0 -DDEBUG -DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE -I../ccmain -I../api -I../ccutil -I../ccstruct -I../lstm -I../arch -I../viewer -I../textord -I../dict -I../classify -I../display -I../wordrec -I../cutil -I/usr/local/include/leptonica -pthread -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -std=c++11 -MT degradeimage.lo -MD -MP -MF .deps/degradeimage.Tpo -c degradeimage.cpp -fPIC -DPIC -o .libs/degradeimage.olibtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -g -Wall -O0 -DDEBUG -DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE -I../ccmain -I../api -I../ccutil -I../ccstruct -I../lstm -I../arch -I../viewer -I../textord -I../dict -I../classify -I../display -I../wordrec -I../cutil -I/usr/local/include/leptonica -pthread -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -std=c++11 -MT degradeimage.lo -MD -MP -MF .deps/degradeimage.Tpo -c degradeimage.cpp -o degradeimage.o >/dev/null 2>&1depbase=`echo fileio.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -g -Wall -O0 -DDEBUG -DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE -I../ccmain -I../api -I../ccutil -I../ccstruct -I../lstm -I../arch -I../viewer -I../textord -I../dict -I../classify -I../display -I../wordrec -I../cutil -I/usr/local/include/leptonica -pthread -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -std=c++11 -MT fileio.lo -MD -MP -MF $depbase.Tpo -c -o fileio.lo fileio.cpp &&\mv -f $depbase.Tpo $depbase.Plolibtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -g -Wall -O0 -DDEBUG -DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE -I../ccmain -I../api -I../ccutil -I../ccstruct -I../lstm -I../arch -I../viewer -I../textord -I../dict -I../classify -I../display -I../wordrec -I../cutil -I/usr/local/include/leptonica -pthread -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -std=c++11 -MT fileio.lo -MD -MP -MF .deps/fileio.Tpo -c fileio.cpp -fPIC -DPIC -o .libs/fileio.olibtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -g -Wall -O0 -DDEBUG -DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE -I../ccmain -I../api -I../ccutil -I../ccstruct -I../lstm -I../arch -I../viewer -I../textord -I../dict -I../classify -I../display -I../wordrec -I../cutil -I/usr/local/include/leptonica -pthread -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -std=c++11 -MT fileio.lo -MD -MP -MF .deps/fileio.Tpo -c fileio.cpp -o fileio.o >/dev/null 2>&1depbase=`echo ligature_table.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -g -Wall -O0 -DDEBUG -DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE -I../ccmain -I../api -I../ccutil -I../ccstruct -I../lstm -I../arch -I../viewer -I../textord -I../dict -I../classify -I../display -I../wordrec -I../cutil -I/usr/local/include/leptonica -pthread -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -std=c++11 -MT ligature_table.lo -MD -MP -MF $depbase.Tpo -c -o ligature_table.lo ligature_table.cpp &&\mv -f $depbase.Tpo $depbase.Plolibtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -g -Wall -O0 -DDEBUG -DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE -I../ccmain -I../api -I../ccutil -I../ccstruct -I../lstm -I../arch -I../viewer -I../textord -I../dict -I../classify -I../display -I../wordrec -I../cutil -I/usr/local/include/leptonica -pthread -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -std=c++11 -MT ligature_table.lo -MD -MP -MF .deps/ligature_table.Tpo -c ligature_table.cpp -fPIC -DPIC -o .libs/ligature_table.olibtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -g -Wall -O0 -DDEBUG -DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE -I../ccmain -I../api -I../ccutil -I../ccstruct -I../lstm -I../arch -I../viewer -I../textord -I../dict -I../classify -I../display -I../wordrec -I../cutil -I/usr/local/include/leptonica -pthread -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -std=c++11 -MT ligature_table.lo -MD -MP -MF .deps/ligature_table.Tpo -c ligature_table.cpp -o ligature_table.o >/dev/null 2>&1depbase=`echo lstmtester.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -g -Wall -O0 -DDEBUG -DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE -I../ccmain -I../api -I../ccutil -I../ccstruct -I../lstm -I../arch -I../viewer -I../textord -I../dict -I../classify -I../display -I../wordrec -I../cutil -I/usr/local/include/leptonica -pthread -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -std=c++11 -MT lstmtester.lo -MD -MP -MF $depbase.Tpo -c -o lstmtester.lo lstmtester.cpp &&\mv -f $depbase.Tpo $depbase.Plolibtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -g -Wall -O0 -DDEBUG -DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE -I../ccmain -I../api -I../ccutil -I../ccstruct -I../lstm -I../arch -I../viewer -I../textord -I../dict -I../classify -I../display -I../wordrec -I../cutil -I/usr/local/include/leptonica -pthread -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -std=c++11 -MT lstmtester.lo -MD -MP -MF .deps/lstmtester.Tpo -c lstmtester.cpp -fPIC -DPIC -o .libs/lstmtester.olibtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -g -Wall -O0 -DDEBUG -DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE -I../ccmain -I../api -I../ccutil -I../ccstruct -I../lstm -I../arch -I../viewer -I../textord -I../dict -I../classify -I../display -I../wordrec -I../cutil -I/usr/local/include/leptonica -pthread -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -std=c++11 -MT lstmtester.lo -MD -MP -MF .deps/lstmtester.Tpo -c lstmtester.cpp -o lstmtester.o >/dev/null 2>&1depbase=`echo normstrngs.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -g -Wall -O0 -DDEBUG -DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE -I../ccmain -I../api -I../ccutil -I../ccstruct -I../lstm -I../arch -I../viewer -I../textord -I../dict -I../classify -I../display -I../wordrec -I../cutil -I/usr/local/include/leptonica -pthread -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -std=c++11 -MT normstrngs.lo -MD -MP -MF $depbase.Tpo -c -o normstrngs.lo normstrngs.cpp &&\mv -f $depbase.Tpo $depbase.Plolibtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -g -Wall -O0 -DDEBUG -DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE -I../ccmain -I../api -I../ccutil -I../ccstruct -I../lstm -I../arch -I../viewer -I../textord -I../dict -I../classify -I../display -I../wordrec -I../cutil -I/usr/local/include/leptonica -pthread -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -std=c++11 -MT normstrngs.lo -MD -MP -MF .deps/normstrngs.Tpo -c normstrngs.cpp -fPIC -DPIC -o .libs/normstrngs.onormstrngs.cpp: In function 'bool tesseract::IsUTF8Whitespace(const char*)':normstrngs.cpp:184:49: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]return SpanUTF8Whitespace(text) == strlen(text);^libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -g -Wall -O0 -DDEBUG -DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE -I../ccmain -I../api -I../ccutil -I../ccstruct -I../lstm -I../arch -I../viewer -I../textord -I../dict -I../classify -I../display -I../wordrec -I../cutil -I/usr/local/include/leptonica -pthread -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -std=c++11 -MT normstrngs.lo -MD -MP -MF .deps/normstrngs.Tpo -c normstrngs.cpp -o normstrngs.o >/dev/null 2>&1depbase=`echo pango_font_info.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -g -Wall -O0 -DDEBUG -DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE -I../ccmain -I../api -I../ccutil -I../ccstruct -I../lstm -I../arch -I../viewer -I../textord -I../dict -I../classify -I../display -I../wordrec -I../cutil -I/usr/local/include/leptonica -pthread -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -std=c++11 -MT pango_font_info.lo -MD -MP -MF $depbase.Tpo -c -o pango_font_info.lo pango_font_info.cpp &&\mv -f $depbase.Tpo $depbase.Plolibtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -g -Wall -O0 -DDEBUG -DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE -I../ccmain -I../api -I../ccutil -I../ccstruct -I../lstm -I../arch -I../viewer -I../textord -I../dict -I../classify -I../display -I../wordrec -I../cutil -I/usr/local/include/leptonica -pthread -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -std=c++11 -MT pango_font_info.lo -MD -MP -MF .deps/pango_font_info.Tpo -c pango_font_info.cpp -fPIC -DPIC -o .libs/pango_font_info.opango_font_info.cpp: In static member function 'static void tesseract::FontUtils::GetAllRenderableCharacters(const std::vector<std::basic_string<char> >&, std::vector<bool>*)':pango_font_info.cpp:677:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]for (int i = 0; i < fonts.size(); ++i) {^pango_font_info.cpp: In static member function 'static std::string tesseract::FontUtils::BestFonts(const std::unordered_map<int, long int>&, std::vector<std::pair<const char*, std::vector<bool> > >*)':pango_font_info.cpp:740:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]for (int i = 0; i < font_names.size(); ++i) {^pango_font_info.cpp:765:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]for (int i = 0; i < font_names.size(); ++i) {^pango_font_info.cpp: In static member function 'static bool tesseract::FontUtils::SelectFont(const char*, int, const std::vector<std::basic_string<char> >&, std::string*, std::vector<std::basic_string<char> >*)':pango_font_info.cpp:800:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]for (int i = 0; i < all_fonts.size(); ++i) {^libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -g -Wall -O0 -DDEBUG -DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE -I../ccmain -I../api -I../ccutil -I../ccstruct -I../lstm -I../arch -I../viewer -I../textord -I../dict -I../classify -I../display -I../wordrec -I../cutil -I/usr/local/include/leptonica -pthread -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -std=c++11 -MT pango_font_info.lo -MD -MP -MF .deps/pango_font_info.Tpo -c pango_font_info.cpp -o pango_font_info.o >/dev/null 2>&1depbase=`echo stringrenderer.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -g -Wall -O0 -DDEBUG -DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE -I../ccmain -I../api -I../ccutil -I../ccstruct -I../lstm -I../arch -I../viewer -I../textord -I../dict -I../classify -I../display -I../wordrec -I../cutil -I/usr/local/include/leptonica -pthread -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -std=c++11 -MT stringrenderer.lo -MD -MP -MF $depbase.Tpo -c -o stringrenderer.lo stringrenderer.cpp &&\mv -f $depbase.Tpo $depbase.Plolibtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -g -Wall -O0 -DDEBUG -DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE -I../ccmain -I../api -I../ccutil -I../ccstruct -I../lstm -I../arch -I../viewer -I../textord -I../dict -I../classify -I../display -I../wordrec -I../cutil -I/usr/local/include/leptonica -pthread -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -std=c++11 -MT stringrenderer.lo -MD -MP -MF .deps/stringrenderer.Tpo -c stringrenderer.cpp -fPIC -DPIC -o .libs/stringrenderer.ostringrenderer.cpp: In member function 'void tesseract::StringRenderer::SetWordUnderlineAttributes(const string&)':stringrenderer.cpp:249:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]while (offset < page_text.length()) {^stringrenderer.cpp:251:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]if (offset == page_text.length()) break;^stringrenderer.cpp: In member function 'void tesseract::StringRenderer::ClearBoxes()':stringrenderer.cpp:344:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]for (int i = 0; i < boxchars_.size(); ++i)^stringrenderer.cpp: In function 'void tesseract::MergeBoxCharsToWords(std::vector<tesseract::BoxChar*>*)':stringrenderer.cpp:419:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]for (int i = 0; i < boxchars->size(); ++i) {^stringrenderer.cpp: In member function 'void tesseract::StringRenderer::ComputeClusterBoxes()':stringrenderer.cpp:483:54: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]for (int i = 0; i < cluster_start_indices.size() - 1; ++i) {^stringrenderer.cpp:595:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]for (int i = 0; i < page_boxchars.size(); ++i) {^stringrenderer.cpp: In member function 'int tesseract::StringRenderer::StripUnrenderableWords(std::string*) const':stringrenderer.cpp:626:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]while (offset < utf8_text->length()) {^stringrenderer.cpp:630:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]if (offset == utf8_text->length()) break;^stringrenderer.cpp: In member function 'int tesseract::StringRenderer::RenderAllFontsToImage(double, const char*, int, std::string*, Pix**)':stringrenderer.cpp:868:48: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]for (int i = font_index_; i < all_fonts.size(); ++i) {^libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -g -Wall -O0 -DDEBUG -DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE -I../ccmain -I../api -I../ccutil -I../ccstruct -I../lstm -I../arch -I../viewer -I../textord -I../dict -I../classify -I../display -I../wordrec -I../cutil -I/usr/local/include/leptonica -pthread -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -std=c++11 -MT stringrenderer.lo -MD -MP -MF .deps/stringrenderer.Tpo -c stringrenderer.cpp -o stringrenderer.o >/dev/null 2>&1depbase=`echo tlog.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -g -Wall -O0 -DDEBUG -DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE -I../ccmain -I../api -I../ccutil -I../ccstruct -I../lstm -I../arch -I../viewer -I../textord -I../dict -I../classify -I../display -I../wordrec -I../cutil -I/usr/local/include/leptonica -pthread -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -std=c++11 -MT tlog.lo -MD -MP -MF $depbase.Tpo -c -o tlog.lo tlog.cpp &&\mv -f $depbase.Tpo $depbase.Plolibtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -g -Wall -O0 -DDEBUG -DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE -I../ccmain -I../api -I../ccutil -I../ccstruct -I../lstm -I../arch -I../viewer -I../textord -I../dict -I../classify -I../display -I../wordrec -I../cutil -I/usr/local/include/leptonica -pthread -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -std=c++11 -MT tlog.lo -MD -MP -MF .deps/tlog.Tpo -c tlog.cpp -fPIC -DPIC -o .libs/tlog.olibtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -g -Wall -O0 -DDEBUG -DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE -I../ccmain -I../api -I../ccutil -I../ccstruct -I../lstm -I../arch -I../viewer -I../textord -I../dict -I../classify -I../display -I../wordrec -I../cutil -I/usr/local/include/leptonica -pthread -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -std=c++11 -MT tlog.lo -MD -MP -MF .deps/tlog.Tpo -c tlog.cpp -o tlog.o >/dev/null 2>&1depbase=`echo unicharset_training_utils.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -g -Wall -O0 -DDEBUG -DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE -I../ccmain -I../api -I../ccutil -I../ccstruct -I../lstm -I../arch -I../viewer -I../textord -I../dict -I../classify -I../display -I../wordrec -I../cutil -I/usr/local/include/leptonica -pthread -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -std=c++11 -MT unicharset_training_utils.lo -MD -MP -MF $depbase.Tpo -c -o unicharset_training_utils.lo unicharset_training_utils.cpp &&\mv -f $depbase.Tpo $depbase.Plolibtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -g -Wall -O0 -DDEBUG -DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE -I../ccmain -I../api -I../ccutil -I../ccstruct -I../lstm -I../arch -I../viewer -I../textord -I../dict -I../classify -I../display -I../wordrec -I../cutil -I/usr/local/include/leptonica -pthread -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -std=c++11 -MT unicharset_training_utils.lo -MD -MP -MF .deps/unicharset_training_utils.Tpo -c unicharset_training_utils.cpp -fPIC -DPIC -o .libs/unicharset_training_utils.olibtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -g -Wall -O0 -DDEBUG -DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE -I../ccmain -I../api -I../ccutil -I../ccstruct -I../lstm -I../arch -I../viewer -I../textord -I../dict -I../classify -I../display -I../wordrec -I../cutil -I/usr/local/include/leptonica -pthread -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -std=c++11 -MT unicharset_training_utils.lo -MD -MP -MF .deps/unicharset_training_utils.Tpo -c unicharset_training_utils.cpp -o unicharset_training_utils.o >/dev/null 2>&1/bin/bash ../libtool --tag=CXX --mode=link g++ -g -O2 -std=c++11 -o libtesseract_training.la boxchar.lo commandlineflags.lo commontraining.lo degradeimage.lo fileio.lo ligature_table.lo lstmtester.lo normstrngs.lo pango_font_info.lo stringrenderer.lo tlog.lo unicharset_training_utils.lo ../cutil/libtesseract_cutil.la -lpthreadlibtool: link: (cd .libs/libtesseract_training.lax/libtesseract_cutil.a && ar x "/home/teddy/Documents/cpp/tesseract/training/../cutil/.libs/libtesseract_cutil.a")libtool: link: ar cru .libs/libtesseract_training.a .libs/boxchar.o .libs/commandlineflags.o .libs/commontraining.o .libs/degradeimage.o .libs/fileio.o .libs/ligature_table.o .libs/lstmtester.o .libs/normstrngs.o .libs/pango_font_info.o .libs/stringrenderer.o .libs/tlog.o .libs/unicharset_training_utils.o .libs/libtesseract_training.lax/libtesseract_cutil.a/bitvec.o .libs/libtesseract_training.lax/libtesseract_cutil.a/callcpp.o .libs/libtesseract_training.lax/libtesseract_cutil.a/cutil.o .libs/libtesseract_training.lax/libtesseract_cutil.a/cutil_class.o .libs/libtesseract_training.lax/libtesseract_cutil.a/danerror.o .libs/libtesseract_training.lax/libtesseract_cutil.a/efio.o .libs/libtesseract_training.lax/libtesseract_cutil.a/emalloc.o .libs/libtesseract_training.lax/libtesseract_cutil.a/freelist.o .libs/libtesseract_training.lax/libtesseract_cutil.a/oldlist.o .libs/libtesseract_training.lax/libtesseract_cutil.a/structures.olibtool: link: ranlib .libs/libtesseract_training.alibtool: link: rm -fr .libs/libtesseract_training.laxlibtool: link: ( cd ".libs" && rm -f "libtesseract_training.la" && ln -s "../libtesseract_training.la" "libtesseract_training.la" )depbase=`echo tessopt.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -g -Wall -O0 -DDEBUG -DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE -I../ccmain -I../api -I../ccutil -I../ccstruct -I../lstm -I../arch -I../viewer -I../textord -I../dict -I../classify -I../display -I../wordrec -I../cutil -I/usr/local/include/leptonica -pthread -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -std=c++11 -MT tessopt.lo -MD -MP -MF $depbase.Tpo -c -o tessopt.lo tessopt.cpp &&\mv -f $depbase.Tpo $depbase.Plolibtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -g -Wall -O0 -DDEBUG -DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE -I../ccmain -I../api -I../ccutil -I../ccstruct -I../lstm -I../arch -I../viewer -I../textord -I../dict -I../classify -I../display -I../wordrec -I../cutil -I/usr/local/include/leptonica -pthread -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -std=c++11 -MT tessopt.lo -MD -MP -MF .deps/tessopt.Tpo -c tessopt.cpp -fPIC -DPIC -o .libs/tessopt.olibtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -g -Wall -O0 -DDEBUG -DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE -I../ccmain -I../api -I../ccutil -I../ccstruct -I../lstm -I../arch -I../viewer -I../textord -I../dict -I../classify -I../display -I../wordrec -I../cutil -I/usr/local/include/leptonica -pthread -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -std=c++11 -MT tessopt.lo -MD -MP -MF .deps/tessopt.Tpo -c tessopt.cpp -o tessopt.o >/dev/null 2>&1/bin/bash ../libtool --tag=CXX --mode=link g++ -g -O2 -std=c++11 -o libtesseract_tessopt.la tessopt.lo -lpthreadlibtool: link: ar cru .libs/libtesseract_tessopt.a .libs/tessopt.olibtool: link: ranlib .libs/libtesseract_tessopt.alibtool: link: ( cd ".libs" && rm -f "libtesseract_tessopt.la" && ln -s "../libtesseract_tessopt.la" "libtesseract_tessopt.la" )depbase=`echo ambiguous_words.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\g++ -DHAVE_CONFIG_H -I. -I.. -g -Wall -O0 -DDEBUG -DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE -I../ccmain -I../api -I../ccutil -I../ccstruct -I../lstm -I../arch -I../viewer -I../textord -I../dict -I../classify -I../display -I../wordrec -I../cutil -I/usr/local/include/leptonica -pthread -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -std=c++11 -MT ambiguous_words.o -MD -MP -MF $depbase.Tpo -c -o ambiguous_words.o ambiguous_words.cpp &&\mv -f $depbase.Tpo $depbase.Po/bin/bash ../libtool --tag=CXX --mode=link g++ -g -O2 -std=c++11 -o ambiguous_words ambiguous_words.o libtesseract_training.la libtesseract_tessopt.la ../api/libtesseract.la -L/usr/local/lib -llept -lpthreadlibtool: link: g++ -g -O2 -std=c++11 -o .libs/ambiguous_words ambiguous_words.o ./.libs/libtesseract_training.a ./.libs/libtesseract_tessopt.a ../api/.libs/libtesseract.so -L/usr/local/lib /usr/local/lib/liblept.so -lpthread -fopenmpdepbase=`echo classifier_tester.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\g++ -DHAVE_CONFIG_H -I. -I.. -g -Wall -O0 -DDEBUG -DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE -I../ccmain -I../api -I../ccutil -I../ccstruct -I../lstm -I../arch -I../viewer -I../textord -I../dict -I../classify -I../display -I../wordrec -I../cutil -I/usr/local/include/leptonica -pthread -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -std=c++11 -MT classifier_tester.o -MD -MP -MF $depbase.Tpo -c -o classifier_tester.o classifier_tester.cpp &&\mv -f $depbase.Tpo $depbase.Po/bin/bash ../libtool --tag=CXX --mode=link g++ -g -O2 -std=c++11 -o classifier_tester classifier_tester.o libtesseract_training.la libtesseract_tessopt.la ../api/libtesseract.la -L/usr/local/lib -llept -lpthreadlibtool: link: g++ -g -O2 -std=c++11 -o .libs/classifier_tester classifier_tester.o ./.libs/libtesseract_training.a ./.libs/libtesseract_tessopt.a ../api/.libs/libtesseract.so -L/usr/local/lib /usr/local/lib/liblept.so -lpthread -fopenmpdepbase=`echo cntraining.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\g++ -DHAVE_CONFIG_H -I. -I.. -g -Wall -O0 -DDEBUG -DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE -I../ccmain -I../api -I../ccutil -I../ccstruct -I../lstm -I../arch -I../viewer -I../textord -I../dict -I../classify -I../display -I../wordrec -I../cutil -I/usr/local/include/leptonica -pthread -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -std=c++11 -MT cntraining.o -MD -MP -MF $depbase.Tpo -c -o cntraining.o cntraining.cpp &&\mv -f $depbase.Tpo $depbase.Po/bin/bash ../libtool --tag=CXX --mode=link g++ -g -O2 -std=c++11 -o cntraining cntraining.o libtesseract_training.la libtesseract_tessopt.la ../api/libtesseract.la -L/usr/local/lib -llept -lpthreadlibtool: link: g++ -g -O2 -std=c++11 -o .libs/cntraining cntraining.o ./.libs/libtesseract_training.a ./.libs/libtesseract_tessopt.a ../api/.libs/libtesseract.so -L/usr/local/lib /usr/local/lib/liblept.so -lpthread -fopenmpdepbase=`echo combine_tessdata.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\g++ -DHAVE_CONFIG_H -I. -I.. -g -Wall -O0 -DDEBUG -DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE -I../ccmain -I../api -I../ccutil -I../ccstruct -I../lstm -I../arch -I../viewer -I../textord -I../dict -I../classify -I../display -I../wordrec -I../cutil -I/usr/local/include/leptonica -pthread -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -std=c++11 -MT combine_tessdata.o -MD -MP -MF $depbase.Tpo -c -o combine_tessdata.o combine_tessdata.cpp &&\mv -f $depbase.Tpo $depbase.Po/bin/bash ../libtool --tag=CXX --mode=link g++ -g -O2 -std=c++11 -o combine_tessdata combine_tessdata.o ../api/libtesseract.la -L/usr/local/lib -llept -lpthreadlibtool: link: g++ -g -O2 -std=c++11 -o .libs/combine_tessdata combine_tessdata.o ../api/.libs/libtesseract.so -L/usr/local/lib /usr/local/lib/liblept.so -lpthread -fopenmpdepbase=`echo dawg2wordlist.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\g++ -DHAVE_CONFIG_H -I. -I.. -g -Wall -O0 -DDEBUG -DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE -I../ccmain -I../api -I../ccutil -I../ccstruct -I../lstm -I../arch -I../viewer -I../textord -I../dict -I../classify -I../display -I../wordrec -I../cutil -I/usr/local/include/leptonica -pthread -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -std=c++11 -MT dawg2wordlist.o -MD -MP -MF $depbase.Tpo -c -o dawg2wordlist.o dawg2wordlist.cpp &&\mv -f $depbase.Tpo $depbase.Po/bin/bash ../libtool --tag=CXX --mode=link g++ -g -O2 -std=c++11 -o dawg2wordlist dawg2wordlist.o libtesseract_tessopt.la ../api/libtesseract.la -L/usr/local/lib -llept -lpthreadlibtool: link: g++ -g -O2 -std=c++11 -o .libs/dawg2wordlist dawg2wordlist.o ./.libs/libtesseract_tessopt.a ../api/.libs/libtesseract.so -L/usr/local/lib /usr/local/lib/liblept.so -lpthread -fopenmpdepbase=`echo lstmeval.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\g++ -DHAVE_CONFIG_H -I. -I.. -g -Wall -O0 -DDEBUG -DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE -I../ccmain -I../api -I../ccutil -I../ccstruct -I../lstm -I../arch -I../viewer -I../textord -I../dict -I../classify -I../display -I../wordrec -I../cutil -I/usr/local/include/leptonica -pthread -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -std=c++11 -MT lstmeval.o -MD -MP -MF $depbase.Tpo -c -o lstmeval.o lstmeval.cpp &&\mv -f $depbase.Tpo $depbase.Po/bin/bash ../libtool --tag=CXX --mode=link g++ -g -O2 -std=c++11 -o lstmeval lstmeval.o libtesseract_training.la libtesseract_tessopt.la -licuuc -licudata ../api/libtesseract.la -L/usr/local/lib -llept -lpthreadlibtool: link: g++ -g -O2 -std=c++11 -o .libs/lstmeval lstmeval.o ./.libs/libtesseract_training.a ./.libs/libtesseract_tessopt.a -licuuc -licudata ../api/.libs/libtesseract.so -L/usr/local/lib /usr/local/lib/liblept.so -lpthread -fopenmpdepbase=`echo lstmtraining.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\g++ -DHAVE_CONFIG_H -I. -I.. -g -Wall -O0 -DDEBUG -DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE -I../ccmain -I../api -I../ccutil -I../ccstruct -I../lstm -I../arch -I../viewer -I../textord -I../dict -I../classify -I../display -I../wordrec -I../cutil -I/usr/local/include/leptonica -pthread -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -std=c++11 -MT lstmtraining.o -MD -MP -MF $depbase.Tpo -c -o lstmtraining.o lstmtraining.cpp &&\mv -f $depbase.Tpo $depbase.Polstmtraining.cpp: In function ‘int main(int, char**)’:lstmtraining.cpp:176:8: warning: unused variable ‘best_dumped’ [-Wunused-variable]bool best_dumped = true;^lstmtraining.cpp:177:9: warning: unused variable ‘best_model_dump’ [-Wunused-variable]char* best_model_dump = nullptr;^lstmtraining.cpp:178:10: warning: unused variable ‘best_model_size’ [-Wunused-variable]size_t best_model_size = 0;^/bin/bash ../libtool --tag=CXX --mode=link g++ -g -O2 -std=c++11 -o lstmtraining lstmtraining.o libtesseract_training.la libtesseract_tessopt.la -licui18n -licuuc -licudata -licuuc -licudata ../api/libtesseract.la -L/usr/local/lib -llept -lpthreadlibtool: link: g++ -g -O2 -std=c++11 -o .libs/lstmtraining lstmtraining.o ./.libs/libtesseract_training.a ./.libs/libtesseract_tessopt.a -licui18n -licuuc -licudata ../api/.libs/libtesseract.so -L/usr/local/lib /usr/local/lib/liblept.so -lpthread -fopenmpdepbase=`echo mftraining.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\g++ -DHAVE_CONFIG_H -I. -I.. -g -Wall -O0 -DDEBUG -DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE -I../ccmain -I../api -I../ccutil -I../ccstruct -I../lstm -I../arch -I../viewer -I../textord -I../dict -I../classify -I../display -I../wordrec -I../cutil -I/usr/local/include/leptonica -pthread -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -std=c++11 -MT mftraining.o -MD -MP -MF $depbase.Tpo -c -o mftraining.o mftraining.cpp &&\mv -f $depbase.Tpo $depbase.Podepbase=`echo mergenf.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\g++ -DHAVE_CONFIG_H -I. -I.. -g -Wall -O0 -DDEBUG -DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE -I../ccmain -I../api -I../ccutil -I../ccstruct -I../lstm -I../arch -I../viewer -I../textord -I../dict -I../classify -I../display -I../wordrec -I../cutil -I/usr/local/include/leptonica -pthread -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -std=c++11 -MT mergenf.o -MD -MP -MF $depbase.Tpo -c -o mergenf.o mergenf.cpp &&\mv -f $depbase.Tpo $depbase.Po/bin/bash ../libtool --tag=CXX --mode=link g++ -g -O2 -std=c++11 -o mftraining mftraining.o mergenf.o libtesseract_training.la libtesseract_tessopt.la -licuuc -licudata ../api/libtesseract.la -L/usr/local/lib -llept -lpthreadlibtool: link: g++ -g -O2 -std=c++11 -o .libs/mftraining mftraining.o mergenf.o ./.libs/libtesseract_training.a ./.libs/libtesseract_tessopt.a -licuuc -licudata ../api/.libs/libtesseract.so -L/usr/local/lib /usr/local/lib/liblept.so -lpthread -fopenmpdepbase=`echo set_unicharset_properties.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\g++ -DHAVE_CONFIG_H -I. -I.. -g -Wall -O0 -DDEBUG -DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE -I../ccmain -I../api -I../ccutil -I../ccstruct -I../lstm -I../arch -I../viewer -I../textord -I../dict -I../classify -I../display -I../wordrec -I../cutil -I/usr/local/include/leptonica -pthread -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -std=c++11 -MT set_unicharset_properties.o -MD -MP -MF $depbase.Tpo -c -o set_unicharset_properties.o set_unicharset_properties.cpp &&\mv -f $depbase.Tpo $depbase.Po/bin/bash ../libtool --tag=CXX --mode=link g++ -g -O2 -std=c++11 -o set_unicharset_properties set_unicharset_properties.o libtesseract_training.la libtesseract_tessopt.la -licui18n -licuuc -licudata -licuuc -licudata ../api/libtesseract.la -L/usr/local/lib -llept -lpthreadlibtool: link: g++ -g -O2 -std=c++11 -o .libs/set_unicharset_properties set_unicharset_properties.o ./.libs/libtesseract_training.a ./.libs/libtesseract_tessopt.a -licui18n -licuuc -licudata ../api/.libs/libtesseract.so -L/usr/local/lib /usr/local/lib/liblept.so -lpthread -fopenmpdepbase=`echo shapeclustering.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\g++ -DHAVE_CONFIG_H -I. -I.. -g -Wall -O0 -DDEBUG -DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE -I../ccmain -I../api -I../ccutil -I../ccstruct -I../lstm -I../arch -I../viewer -I../textord -I../dict -I../classify -I../display -I../wordrec -I../cutil -I/usr/local/include/leptonica -pthread -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -std=c++11 -MT shapeclustering.o -MD -MP -MF $depbase.Tpo -c -o shapeclustering.o shapeclustering.cpp &&\mv -f $depbase.Tpo $depbase.Po/bin/bash ../libtool --tag=CXX --mode=link g++ -g -O2 -std=c++11 -o shapeclustering shapeclustering.o libtesseract_training.la libtesseract_tessopt.la ../api/libtesseract.la -L/usr/local/lib -llept -lpthreadlibtool: link: g++ -g -O2 -std=c++11 -o .libs/shapeclustering shapeclustering.o ./.libs/libtesseract_training.a ./.libs/libtesseract_tessopt.a ../api/.libs/libtesseract.so -L/usr/local/lib /usr/local/lib/liblept.so -lpthread -fopenmpdepbase=`echo text2image.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\g++ -DHAVE_CONFIG_H -I. -I.. -g -Wall -O0 -DDEBUG -DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE -I../ccmain -I../api -I../ccutil -I../ccstruct -I../lstm -I../arch -I../viewer -I../textord -I../dict -I../classify -I../display -I../wordrec -I../cutil -I/usr/local/include/leptonica -pthread -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -std=c++11 -MT text2image.o -MD -MP -MF $depbase.Tpo -c -o text2image.o text2image.cpp &&\mv -f $depbase.Tpo $depbase.Potext2image.cpp: In function ‘std::string tesseract::StringReplace(const string&, const string&, const string&)’:text2image.cpp:196:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]if (pos == string::npos) break;^text2image.cpp: In function ‘void tesseract::ExtractFontProperties(const string&, tesseract::StringRenderer*, const string&)’:text2image.cpp:242:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]for (int b = 0; b < boxes.size(); b += 2) {^text2image.cpp:243:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]while (b < boxes.size() && IsWhitespaceBox(boxes[b])) ++b;^text2image.cpp:244:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]if (b + 1 >= boxes.size()) break;^text2image.cpp: In function ‘int main(int, char**)’:text2image.cpp:425:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]for (int i = 0; i < all_fonts.size(); ++i) {^text2image.cpp:550:48: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]for (int i = 0, line = 1; i < offsets.size(); ++i) {^text2image.cpp:559:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]if (rand_utf8.length() > line * kCharsPerLine) {^text2image.cpp:591:56: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]for (int offset = 0; offset < strlen(to_render_utf8); ++im, ++page_num) {^text2image.cpp:667:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]for (int i = 0; i < font_names.size(); ++i) {^/bin/bash ../libtool --tag=CXX --mode=link g++ -g -O2 -std=c++11 -o text2image text2image.o libtesseract_training.la libtesseract_tessopt.la -licui18n -licuuc -licudata -licuuc -licudata ../api/libtesseract.la -licuuc -licudata -lpango-1.0 -lpangocairo-1.0 -lgobject-2.0 -lglib-2.0 -lcairo -lpangoft2-1.0 -lfontconfig -L/usr/local/lib -llept -lpthreadlibtool: link: g++ -g -O2 -std=c++11 -o .libs/text2image text2image.o ./.libs/libtesseract_training.a ./.libs/libtesseract_tessopt.a -licui18n ../api/.libs/libtesseract.so -licuuc -licudata -lpango-1.0 -lpangocairo-1.0 -lgobject-2.0 -lglib-2.0 /usr/lib/x86_64-linux-gnu/libcairo.so -lpangoft2-1.0 -lfontconfig -L/usr/local/lib /usr/local/lib/liblept.so -lpthread -fopenmpdepbase=`echo unicharset_extractor.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\g++ -DHAVE_CONFIG_H -I. -I.. -g -Wall -O0 -DDEBUG -DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE -I../ccmain -I../api -I../ccutil -I../ccstruct -I../lstm -I../arch -I../viewer -I../textord -I../dict -I../classify -I../display -I../wordrec -I../cutil -I/usr/local/include/leptonica -pthread -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -std=c++11 -MT unicharset_extractor.o -MD -MP -MF $depbase.Tpo -c -o unicharset_extractor.o unicharset_extractor.cpp &&\mv -f $depbase.Tpo $depbase.Po/bin/bash ../libtool --tag=CXX --mode=link g++ -g -O2 -std=c++11 -L/usr/local/lib -llept -o unicharset_extractor unicharset_extractor.o libtesseract_tessopt.la ../api/libtesseract.la -lpthreadlibtool: link: g++ -g -O2 -std=c++11 -o .libs/unicharset_extractor unicharset_extractor.o -L/usr/local/lib /usr/local/lib/liblept.so ./.libs/libtesseract_tessopt.a ../api/.libs/libtesseract.so -lpthread -fopenmpdepbase=`echo wordlist2dawg.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\g++ -DHAVE_CONFIG_H -I. -I.. -g -Wall -O0 -DDEBUG -DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE -I../ccmain -I../api -I../ccutil -I../ccstruct -I../lstm -I../arch -I../viewer -I../textord -I../dict -I../classify -I../display -I../wordrec -I../cutil -I/usr/local/include/leptonica -pthread -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -std=c++11 -MT wordlist2dawg.o -MD -MP -MF $depbase.Tpo -c -o wordlist2dawg.o wordlist2dawg.cpp &&\mv -f $depbase.Tpo $depbase.Po/bin/bash ../libtool --tag=CXX --mode=link g++ -g -O2 -std=c++11 -o wordlist2dawg wordlist2dawg.o libtesseract_tessopt.la ../api/libtesseract.la -L/usr/local/lib -llept -lpthreadlibtool: link: g++ -g -O2 -std=c++11 -o .libs/wordlist2dawg wordlist2dawg.o ./.libs/libtesseract_tessopt.a ../api/.libs/libtesseract.so -L/usr/local/lib /usr/local/lib/liblept.so -lpthread -fopenmpmake[1]: Leaving directory `/home/teddy/Documents/cpp/tesseract/training'
- Install the training
12345678910111213141516171819202122teddy@teddy-K43SJ:~/Documents/cpp/tesseract$ sudo make training-install[sudo] password for teddy:make[1]: Entering directory `/home/teddy/Documents/cpp/tesseract/training'make[2]: Entering directory `/home/teddy/Documents/cpp/tesseract/training'/bin/mkdir -p '/usr/local/bin'/bin/bash ../libtool --mode=install /usr/bin/install -c ambiguous_words classifier_tester cntraining combine_tessdata dawg2wordlist lstmeval lstmtraining mftraining set_unicharset_properties shapeclustering text2image unicharset_extractor wordlist2dawg '/usr/local/bin'libtool: install: /usr/bin/install -c .libs/ambiguous_words /usr/local/bin/ambiguous_wordslibtool: install: /usr/bin/install -c .libs/classifier_tester /usr/local/bin/classifier_testerlibtool: install: /usr/bin/install -c .libs/cntraining /usr/local/bin/cntraininglibtool: install: /usr/bin/install -c .libs/combine_tessdata /usr/local/bin/combine_tessdatalibtool: install: /usr/bin/install -c .libs/dawg2wordlist /usr/local/bin/dawg2wordlistlibtool: install: /usr/bin/install -c .libs/lstmeval /usr/local/bin/lstmevallibtool: install: /usr/bin/install -c .libs/lstmtraining /usr/local/bin/lstmtraininglibtool: install: /usr/bin/install -c .libs/mftraining /usr/local/bin/mftraininglibtool: install: /usr/bin/install -c .libs/set_unicharset_properties /usr/local/bin/set_unicharset_propertieslibtool: install: /usr/bin/install -c .libs/shapeclustering /usr/local/bin/shapeclusteringlibtool: install: /usr/bin/install -c .libs/text2image /usr/local/bin/text2imagelibtool: install: /usr/bin/install -c .libs/unicharset_extractor /usr/local/bin/unicharset_extractorlibtool: install: /usr/bin/install -c .libs/wordlist2dawg /usr/local/bin/wordlist2dawgmake[2]: Nothing to be done for `install-data-am'.make[2]: Leaving directory `/home/teddy/Documents/cpp/tesseract/training'make[1]: Leaving directory `/home/teddy/Documents/cpp/tesseract/training'
For the training tutorial, pls read: https://github.com/tesseract-ocr/tesseract/wiki/TrainingTesseract-4.00 (OR https://github.com/tesseract-ocr/tesseract/wiki/Training-Tesseract for older tesseract version). It says it use neural network-based recognition engine. ALSO “Tesseract 4.00 takes a few days to a couple of weeks. Even with all this new training data, you might find it inadequate for your particular problem, and therefore you are here wanting to retrain it.”. IT’D TAKE A FEW DAYS – WEEKS??? IT SEEMS SAME WITH TRAINING OPENCV. IF I HAVE PLENTY OF TIME I CAN DO THAT. ACTUALLY IT’S INTERESTING! - For visual debugging, build ScrollView.jar
12345678910111213141516teddy@teddy-K43SJ:~/Documents/cpp/tesseract$ make ScrollView.jarmake[1]: Entering directory `/home/teddy/Documents/cpp/tesseract/java'curl -L http://search.maven.org/remotecontent?filepath=org/piccolo2d/piccolo2d-core/3.0/piccolo2d-core-3.0.jar > piccolo2d-core-3.0.jar% Total % Received % Xferd Average Speed Time Time Time CurrentDload Upload Total Spent Left Speed100 161 100 161 0 0 194 0 --:--:-- --:--:-- --:--:-- 193100 121k 100 121k 0 0 48064 0 0:00:02 0:00:02 --:--:-- 139kcurl -L http://search.maven.org/remotecontent?filepath=org/piccolo2d/piccolo2d-extras/3.0/piccolo2d-extras-3.0.jar > piccolo2d-extras-3.0.jar% Total % Received % Xferd Average Speed Time Time Time CurrentDload Upload Total Spent Left Speed100 161 100 161 0 0 280 0 --:--:-- --:--:-- --:--:-- 280100 145k 100 145k 0 0 69142 0 0:00:02 0:00:02 --:--:-- 153kjavac -encoding UTF8 -sourcepath . -classpath piccolo2d-core-3.0.jar:piccolo2d-extras-3.0.jar ./com/google/scrollview/ui/SVAbstractMenuItem.java ./com/google/scrollview/ui/SVCheckboxMenuItem.java ./com/google/scrollview/ui/SVEmptyMenuItem.java ./com/google/scrollview/events/SVEvent.java ./com/google/scrollview/events/SVEventHandler.java ./com/google/scrollview/events/SVEventType.java ./com/google/scrollview/ui/SVImageHandler.java ./com/google/scrollview/ui/SVMenuBar.java ./com/google/scrollview/ui/SVMenuItem.java ./com/google/scrollview/ui/SVPopupMenu.java ./com/google/scrollview/ui/SVSubMenuItem.java ./com/google/scrollview/ui/SVWindow.java ./com/google/scrollview/ScrollView.java -d .jar cfm ScrollView.jar ./Manifest.txt com/google/scrollview/*.class \com/google/scrollview/events/*.class com/google/scrollview/ui/*.classmake[1]: Leaving directory `/home/teddy/Documents/cpp/tesseract/java'
Export ‘SCROLLVIEW_PATH’:
1teddy@teddy-K43SJ:~/Documents/cpp/tesseract$ export SCROLLVIEW_PATH=$PWD/java
- Install Language
For example to install english and many other files, pls see https://github.com/tesseract-ocr/tesseract/wiki/Data-Files. I downloaded english language https://sourceforge.net/projects/tesseract-ocr-alt/files/tesseract-ocr-3.02.eng.tar.gz/download.
<OLD>Then extract the zip file ‘tesseract-ocr-3.02.eng.tar.gz’. then move all files in /tesseract-ocr/tessdata/ to /tesseract/tessdata/
DONT FORGET TO POINT OUT ‘TESSDATA_PREFIX’!
1teddy@teddy-K43SJ:~/Documents/cpp/tesseract$ export TESSDATA_PREFIX='/home/teddy/Documents/cpp/tesseract/tessdata/'
</OLD>
<NEW>It’d be much better to copy/move the ‘tessdata’ directory into /usr/local/share/tessdata/ than copy/move them into /cpp/tesseract/tessdata/ above (the OLD> because we dont have to type ‘export TESSDATA_PREFIX…’ everytime we need to scan an image. I did this after did the old one
1teddy@teddy-K43SJ:~/Documents/cpp/tesseract$ sudo cp tessdata/* /usr/local/share/tessdata/
</NEW>
AT FIRST I FORGOT ABOUT THIS. WHEN I DID A TEST, HERE IS THE MESSAGE
1234567teddy@teddy-K43SJ:~/Documents/cpp/tesseract$ tesseract testing/phototest.tif outputInfo in bmfCreate: Generating pixa of bitmap fonts from stringError opening data file /usr/local/share/tessdata/eng.traineddataPlease make sure the TESSDATA_PREFIX environment variable is set to the parent directory of your "tessdata" directory.Failed loading language 'eng'Tesseract couldn't load any languages!Could not initialize tesseract. - Check tesseract version (with -v or –version)
1234567teddy@teddy-K43SJ:~/Documents/cpp/tesseract$ tesseract --versiontesseract bd45b3aleptonica-1.74.1libgif 4.1.6(?) : libjpeg 8d (libjpeg-turbo 1.3.0) : libpng 1.2.50 : libtiff 4.0.3 : zlib 1.2.8 : libwebp 0.4.4Found AVXFound SSE
- Test!
1234teddy@teddy-K43SJ:~/Documents/cpp/tesseract$ tesseract testing/phototest.tif outputInfo in bmfCreate: Generating pixa of bitmap fonts from stringTesseract Open Source OCR Engine vbd45b3a with LeptonicaPage 1
Here is the image source (‘phototest.tif’)And here is the result in /tesseract/output.txt
123456789This is a lot of 12 point text to test theocr code and see if it works on all typesof file format.The quick brown dog jumped over thelazy fox. The quick brown dog jumpedover the lazy fox. The quick brown dogjumped over the lazy fox. The quickbrown dog jumped over the lazy fox.
NOTE : IT BETTER TO NOT USE FILENAME WITH HAS SPACE BECAUSE TESSERACT CAN’T FIND IT!
ALSO USE IMAGE WITH HIGH RESOLUTION! OR WE CAN DO THE TRAINING STUFF (IF WE HAVE PLENTY OF TIME!!!)
OTHER TESTS
12345678910111213teddy@teddy-K43SJ:~/Documents/cpp/tesseract$ tesseract testing/Screenshot.png outputInfo in bmfCreate: Generating pixa of bitmap fonts from stringTesseract Open Source OCR Engine vbd45b3a with LeptonicaWarning. Invalid resolution 0 dpi. Using 70 instead.teddy@teddy-K43SJ:~/Documents/cpp/tesseract$ tesseract testing/Screen2.png output2Info in bmfCreate: Generating pixa of bitmap fonts from stringTesseract Open Source OCR Engine vbd45b3a with LeptonicaWarning. Invalid resolution 0 dpi. Using 70 instead.teddy@teddy-K43SJ:~/Documents/cpp/tesseract$ tesseract testing/Screen3.png output3Info in bmfCreate: Generating pixa of bitmap fonts from stringTesseract Open Source OCR Engine vbd45b3a with LeptonicaWarning. Invalid resolution 0 dpi. Using 70 instead.Detected 61 diacritics
BUT I FOUND THE RESULT STILL NOT GOOD!!! MANY WEIRD CHARS, SPELLING MISTAKES,ETC
ANOTHER TEST WITH COMMAND TERMINAL:
1234teddy@teddy-K43SJ:~/Documents/cpp/tesseract/testing$ tesseract eurotext.tif out -l engInfo in bmfCreate: Generating pixa of bitmap fonts from stringTesseract Open Source OCR Engine vbd45b3a with LeptonicaPage 1
Display the result in the terminal:
12345678910111213teddy@teddy-K43SJ:~/Documents/cpp/tesseract/testing$ cat out.txtThe (quick) [brown] {fox} jumps!Over the $43,456.78 <lazy> #90 dog& duck/goose, as 12.5% of E-mailfrom aspammer@website.com is spam.Der ,,schnelle” braune Fuchs springtfiber den faulen Hund. Le renard brun«rapide» saute par-dessus le chienparesseux. La volpe marrone rapidasalta sopra i] cane pigro. El zorromarrén répido salta sobre el perroperezoso. A raposa marrom répidasalta sobre 0 C50 preguieoso.
open the original image so we can compare it
1teddy@teddy-K43SJ:~/Documents/cpp/tesseract/testing$ display eurotext.tif
- Question: Can we use tesseract to read/scan pdf file?
pls read: http://kiirani.com/2013/03/22/tesseract-pdf.html
http://www.barryhubbard.com/linux/converting-pdf-to-text-using-tesseract/
http://stackoverflow.com/questions/30925218/converting-a-pdf-to-text-using-tesseract-ocr
TESSERACT CAN’T DO THIS DIRECTLY. IT SAID TO CONVERT THE PDF TO TIFF IMAGE FIRST! ALSO THE MULTI PAGE PDF NEED TO BE CONVERTED TO MULTI TIFF FILES! READ http://www.barryhubbard.com/linux/converting-pdf-to-text-using-tesseract/ TO SEE THE SCRIPT TO DO THAT!