{"id":1691,"date":"2017-02-02T20:51:00","date_gmt":"2017-02-02T20:51:00","guid":{"rendered":"http:\/\/myprojects.advchaweb.com\/?p=1691"},"modified":"2017-02-18T14:03:40","modified_gmt":"2017-02-18T14:03:40","slug":"installing-tesseract-ocr-on-ubuntu-14-04","status":"publish","type":"post","link":"https:\/\/myprojects.advchaweb.com\/index.php\/2017\/02\/02\/installing-tesseract-ocr-on-ubuntu-14-04\/","title":{"rendered":"Installing Tesseract OCR on Ubuntu 14.04"},"content":{"rendered":"<p>Reference: <a href=\"https:\/\/github.com\/tesseract-ocr\/tesseract\/wiki\/Compiling\">https:\/\/github.com\/tesseract-ocr\/tesseract\/wiki\/Compiling<\/a><br \/>\n<a href=\"http:\/\/hanzratech.in\/2015\/01\/16\/ocr-using-tesseract-on-ubuntu-14-04.html\">http:\/\/hanzratech.in\/2015\/01\/16\/ocr-using-tesseract-on-ubuntu-14-04.html<\/a><\/p>\n<p>Compilation:<\/p>\n<ol>\n<li>clone the package from github\n<pre class=\"lang:default decode:true\">git clone --depth 1 https:\/\/github.com\/tesseract-ocr\/tesseract.git<\/pre>\n<\/li>\n<li>Go to the new dir\n<pre class=\"lang:default decode:true \">cd tesseract<\/pre>\n<\/li>\n<li>autogen\n<pre class=\"lang:default decode:true \">.\/autogen.sh<\/pre>\n<\/li>\n<li>configure\n<pre class=\"lang:default decode:true\">.\/configure --enable-debug<\/pre>\n<p>Here i can&#8217;t configure it correctly because it always complained about leptonica 1.74<\/p>\n<pre class=\"lang:default decode:true \">checking pkg-config is at least version 0.9.0... yes\r\nchecking for LEPTONICA... no\r\nconfigure: error: Leptonica 1.74 or higher is required. Try to install libleptonica-dev package.<\/pre>\n<p>I already did<\/p>\n<pre class=\"lang:default decode:true \">PKG_CONFIG_PATH=\/usr\/local\/lib\/pkgconfig LIBLEPT_HEADERSDIR=\/usr\/local\/include .\/configure --with-extra-includes=\/usr\/local\/include --with-extra-libraries=\/usr\/local\/lib\r\n<\/pre>\n<p>But the error still persist!<br \/>\nSOLUTION: I HAVE TO COMPILE AND INSTALL LEPTONICA 1.74 MANUALLY (READ: <a href=\"http:\/\/myprojects.advchaweb.com\/index.php\/2017\/02\/02\/installing-leptonica-1-74-1-on-ubuntu-14-04\/\">http:\/\/myprojects.advchaweb.com\/index.php\/2017\/02\/02\/installing-leptonica-1-74-1-on-ubuntu-14-04\/<\/a>)<br \/>\nNOW IT SUCCESS!<\/p>\n<pre class=\"lang:default decode:true \">teddy@teddy-K43SJ:~\/Documents\/cpp\/tesseract$ .\/configure --enable-debug\r\nchecking for g++... g++\r\nchecking whether the C++ compiler works... yes\r\nchecking for C++ compiler default output file name... a.out\r\nchecking for suffix of executables... \r\nchecking whether we are cross compiling... no\r\nchecking for suffix of object files... o\r\nchecking whether we are using the GNU C++ compiler... yes\r\nchecking whether g++ accepts -g... yes\r\nUsing git revision: bd45b3a\r\nchecking for a BSD-compatible install... \/usr\/bin\/install -c\r\nchecking whether build environment is sane... yes\r\nchecking for a thread-safe mkdir -p... \/bin\/mkdir -p\r\nchecking for gawk... gawk\r\nchecking whether make sets $(MAKE)... yes\r\nchecking for style of include used by make... GNU\r\nchecking whether make supports nested variables... yes\r\nchecking dependency style of g++... gcc3\r\nchecking whether to enable maintainer-specific portions of Makefiles... no\r\nchecking build system type... x86_64-unknown-linux-gnu\r\nchecking host system type... x86_64-unknown-linux-gnu\r\nchecking whether C++ compiler accepts -mavx... yes\r\nchecking whether C++ compiler accepts -msse4.1... yes\r\nchecking --enable-graphics argument... yes\r\nchecking --enable-embedded argument... no\r\nchecking for g++ option to support OpenMP... -fopenmp\r\nchecking --enable-opencl argument... no\r\nchecking how to run the C++ preprocessor... g++ -E\r\nchecking for grep that handles long lines and -e... \/bin\/grep\r\nchecking for egrep... \/bin\/grep -E\r\nchecking for ANSI C header files... yes\r\nchecking for sys\/types.h... yes\r\nchecking for sys\/stat.h... yes\r\nchecking for stdlib.h... yes\r\nchecking for string.h... yes\r\nchecking for memory.h... yes\r\nchecking for strings.h... yes\r\nchecking for inttypes.h... yes\r\nchecking for stdint.h... yes\r\nchecking for unistd.h... yes\r\nchecking CL\/cl.h usability... no\r\nchecking CL\/cl.h presence... no\r\nchecking for CL\/cl.h... no\r\nchecking OpenCL\/cl.h usability... no\r\nchecking OpenCL\/cl.h presence... no\r\nchecking for OpenCL\/cl.h... no\r\nchecking tiffio.h usability... yes\r\nchecking tiffio.h presence... yes\r\nchecking for tiffio.h... yes\r\nchecking for clGetPlatformIDs in -lOpenCL... yes\r\nchecking --enable-visibility argument... no\r\nchecking --enable-multiple-libraries argument... no\r\nchecking whether to use tessdata-prefix... yes\r\nchecking whether to enable debugging... yes\r\nchecking how to print strings... printf\r\nchecking for gcc... gcc\r\nchecking whether we are using the GNU C compiler... yes\r\nchecking whether gcc accepts -g... yes\r\nchecking for gcc option to accept ISO C89... none needed\r\nchecking whether gcc understands -c and -o together... yes\r\nchecking dependency style of gcc... gcc3\r\nchecking for a sed that does not truncate output... \/bin\/sed\r\nchecking for fgrep... \/bin\/grep -F\r\nchecking for ld used by gcc... \/usr\/bin\/ld\r\nchecking if the linker (\/usr\/bin\/ld) is GNU ld... yes\r\nchecking for BSD- or MS-compatible name lister (nm)... \/usr\/bin\/nm -B\r\nchecking the name lister (\/usr\/bin\/nm -B) interface... BSD nm\r\nchecking whether ln -s works... yes\r\nchecking the maximum length of command line arguments... 1572864\r\nchecking whether the shell understands some XSI constructs... yes\r\nchecking whether the shell understands \"+=\"... yes\r\nchecking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop\r\nchecking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop\r\nchecking for \/usr\/bin\/ld option to reload object files... -r\r\nchecking for objdump... objdump\r\nchecking how to recognize dependent libraries... pass_all\r\nchecking for dlltool... no\r\nchecking how to associate runtime and link libraries... printf %s\\n\r\nchecking for ar... ar\r\nchecking for archiver @FILE support... @\r\nchecking for strip... strip\r\nchecking for ranlib... ranlib\r\nchecking command to parse \/usr\/bin\/nm -B output from gcc object... ok\r\nchecking for sysroot... no\r\nchecking for mt... mt\r\nchecking if mt is a manifest tool... no\r\nchecking for dlfcn.h... yes\r\nchecking for objdir... .libs\r\nchecking if gcc supports -fno-rtti -fno-exceptions... no\r\nchecking for gcc option to produce PIC... -fPIC -DPIC\r\nchecking if gcc PIC flag -fPIC -DPIC works... yes\r\nchecking if gcc static flag -static works... yes\r\nchecking if gcc supports -c -o file.o... yes\r\nchecking if gcc supports -c -o file.o... (cached) yes\r\nchecking whether the gcc linker (\/usr\/bin\/ld -m elf_x86_64) supports shared libraries... yes\r\nchecking whether -lc should be explicitly linked in... no\r\nchecking dynamic linker characteristics... GNU\/Linux ld.so\r\nchecking how to hardcode library paths into programs... immediate\r\nchecking whether stripping libraries is possible... yes\r\nchecking if libtool supports shared libraries... yes\r\nchecking whether to build shared libraries... yes\r\nchecking whether to build static libraries... yes\r\nchecking how to run the C++ preprocessor... g++ -E\r\nchecking for ld used by g++... \/usr\/bin\/ld -m elf_x86_64\r\nchecking if the linker (\/usr\/bin\/ld -m elf_x86_64) is GNU ld... yes\r\nchecking whether the g++ linker (\/usr\/bin\/ld -m elf_x86_64) supports shared libraries... yes\r\nchecking for g++ option to produce PIC... -fPIC -DPIC\r\nchecking if g++ PIC flag -fPIC -DPIC works... yes\r\nchecking if g++ static flag -static works... yes\r\nchecking if g++ supports -c -o file.o... yes\r\nchecking if g++ supports -c -o file.o... (cached) yes\r\nchecking whether the g++ linker (\/usr\/bin\/ld -m elf_x86_64) supports shared libraries... yes\r\nchecking dynamic linker characteristics... (cached) GNU\/Linux ld.so\r\nchecking how to hardcode library paths into programs... immediate\r\nchecking whether byte ordering is bigendian... no\r\nchecking if compiling with clang... no\r\nchecking whether compiler supports C++11... yes\r\nchecking for snprintf... yes\r\nchecking for library containing sem_init... -lpthread\r\nchecking for ANSI C header files... (cached) yes\r\nchecking whether time.h and sys\/time.h may both be included... yes\r\nchecking for sys\/wait.h that is POSIX.1 compatible... yes\r\nchecking sys\/ipc.h usability... yes\r\nchecking sys\/ipc.h presence... yes\r\nchecking for sys\/ipc.h... yes\r\nchecking sys\/shm.h usability... yes\r\nchecking sys\/shm.h presence... yes\r\nchecking for sys\/shm.h... yes\r\nchecking limits.h usability... yes\r\nchecking limits.h presence... yes\r\nchecking for limits.h... yes\r\nchecking malloc.h usability... yes\r\nchecking malloc.h presence... yes\r\nchecking for malloc.h... yes\r\nchecking for stdbool.h that conforms to C99... yes\r\nchecking for _Bool... no\r\nchecking whether #! works in shell scripts... yes\r\nchecking for special C compiler options needed for large files... no\r\nchecking for _FILE_OFFSET_BITS value needed for large files... no\r\nchecking for getline... yes\r\nchecking for wchar_t... yes\r\nchecking for long long int... yes\r\nchecking for off_t... yes\r\nchecking for mbstate_t... yes\r\nchecking for pkg-config... \/usr\/bin\/pkg-config\r\nchecking pkg-config is at least version 0.9.0... yes\r\nchecking for LEPTONICA... yes\r\nchecking for ICU_UC... yes\r\nchecking for ICU_I18N... yes\r\nchecking for pango... yes\r\nchecking for cairo... yes\r\nchecking that generated files are newer than configure... done\r\nconfigure: creating .\/config.status\r\nconfig.status: creating Makefile\r\nconfig.status: creating tesseract.pc\r\nconfig.status: creating api\/Makefile\r\nconfig.status: creating arch\/Makefile\r\nconfig.status: creating ccmain\/Makefile\r\nconfig.status: creating opencl\/Makefile\r\nconfig.status: creating ccstruct\/Makefile\r\nconfig.status: creating ccutil\/Makefile\r\nconfig.status: creating classify\/Makefile\r\nconfig.status: creating cutil\/Makefile\r\nconfig.status: creating dict\/Makefile\r\nconfig.status: creating lstm\/Makefile\r\nconfig.status: creating textord\/Makefile\r\nconfig.status: creating viewer\/Makefile\r\nconfig.status: creating wordrec\/Makefile\r\nconfig.status: creating tessdata\/Makefile\r\nconfig.status: creating tessdata\/configs\/Makefile\r\nconfig.status: creating tessdata\/tessconfigs\/Makefile\r\nconfig.status: creating testing\/Makefile\r\nconfig.status: creating java\/Makefile\r\nconfig.status: creating java\/com\/Makefile\r\nconfig.status: creating java\/com\/google\/Makefile\r\nconfig.status: creating java\/com\/google\/scrollview\/Makefile\r\nconfig.status: creating java\/com\/google\/scrollview\/events\/Makefile\r\nconfig.status: creating java\/com\/google\/scrollview\/ui\/Makefile\r\nconfig.status: creating doc\/Makefile\r\nconfig.status: creating training\/Makefile\r\nconfig.status: creating config_auto.h\r\nconfig.status: executing depfiles commands\r\nconfig.status: executing libtool commands\r\n\r\nConfiguration is done.\r\nYou can now build and install tesseract by running:\r\n\r\n$ make\r\n$ sudo make install\r\n\r\nTraining tools can be build and installed (after building of tesseract) with:\r\n\r\n$ make training\r\n$ sudo make training-install<\/pre>\n<p>&nbsp;<\/li>\n<li>Since we have to compile leptonica to use version 1.74, we should use LDFLAGS=&#8221;-L\/usr\/local\/lib&#8221; CFLAGS=&#8221;-I\/usr\/local\/include&#8221; make instead of make for Tesseract.\n<pre class=\"lang:default decode:true \">teddy@teddy-K43SJ:~\/Documents\/cpp\/tesseract$ LDFLAGS=\"-L\/usr\/local\/lib\" CFLAGS=\"-I\/usr\/local\/include\" make\r\n...\r\ng++ -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.cpp\r\nmv -f .deps\/tesseract-tesseractmain.Tpo .deps\/tesseract-tesseractmain.Po\r\n\/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 -lpthread \r\nlibtool: 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 -fopenmp\r\nmake[2]: Leaving directory `\/home\/teddy\/Documents\/cpp\/tesseract\/api'\r\nMaking all in .\r\nmake[2]: Entering directory `\/home\/teddy\/Documents\/cpp\/tesseract'\r\nmake[2]: Leaving directory `\/home\/teddy\/Documents\/cpp\/tesseract'\r\nMaking all in tessdata\r\nmake[2]: Entering directory `\/home\/teddy\/Documents\/cpp\/tesseract\/tessdata'\r\nMaking all in configs\r\nmake[3]: Entering directory `\/home\/teddy\/Documents\/cpp\/tesseract\/tessdata\/configs'\r\nmake[3]: Nothing to be done for `all'.\r\nmake[3]: Leaving directory `\/home\/teddy\/Documents\/cpp\/tesseract\/tessdata\/configs'\r\nMaking all in tessconfigs\r\nmake[3]: Entering directory `\/home\/teddy\/Documents\/cpp\/tesseract\/tessdata\/tessconfigs'\r\nmake[3]: Nothing to be done for `all'.\r\nmake[3]: Leaving directory `\/home\/teddy\/Documents\/cpp\/tesseract\/tessdata\/tessconfigs'\r\nmake[3]: Entering directory `\/home\/teddy\/Documents\/cpp\/tesseract\/tessdata'\r\nmake[3]: Nothing to be done for `all-am'.\r\nmake[3]: Leaving directory `\/home\/teddy\/Documents\/cpp\/tesseract\/tessdata'\r\nmake[2]: Leaving directory `\/home\/teddy\/Documents\/cpp\/tesseract\/tessdata'\r\nMaking all in doc\r\nmake[2]: Entering directory `\/home\/teddy\/Documents\/cpp\/tesseract\/doc'\r\nmake[2]: Nothing to be done for `all'.\r\nmake[2]: Leaving directory `\/home\/teddy\/Documents\/cpp\/tesseract\/doc'\r\nmake[1]: Leaving directory `\/home\/teddy\/Documents\/cpp\/tesseract'<\/pre>\n<p>&nbsp;<\/li>\n<li>make install\n<pre class=\"lang:default decode:true \">teddy@teddy-K43SJ:~\/Documents\/cpp\/tesseract$ sudo make install\r\n...\r\nlibtool: install: \/usr\/bin\/install -c .libs\/libtesseract.lai \/usr\/local\/lib\/libtesseract.la\r\nlibtool: install: \/usr\/bin\/install -c .libs\/libtesseract.a \/usr\/local\/lib\/libtesseract.a\r\nlibtool: install: chmod 644 \/usr\/local\/lib\/libtesseract.a\r\nlibtool: install: ranlib \/usr\/local\/lib\/libtesseract.a\r\nlibtool: finish: PATH=\"\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin:\/snap\/bin:\/sbin\" ldconfig -n \/usr\/local\/lib\r\n----------------------------------------------------------------------\r\nLibraries have been installed in:\r\n   \/usr\/local\/lib\r\n\r\nIf you ever happen to want to link against installed libraries\r\nin a given directory, LIBDIR, you must either use libtool, and\r\nspecify the full pathname of the library, or use the `-LLIBDIR'\r\nflag during linking and do at least one of the following:\r\n   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable\r\n     during execution\r\n   - add LIBDIR to the `LD_RUN_PATH' environment variable\r\n     during linking\r\n   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag\r\n   - have your system administrator add LIBDIR to `\/etc\/ld.so.conf'\r\n\r\nSee any operating system documentation about shared libraries for\r\nmore information, such as the ld(1) and ld.so(8) manual pages.\r\n----------------------------------------------------------------------\r\n \/bin\/mkdir -p '\/usr\/local\/bin'\r\n  \/bin\/bash ..\/libtool   --mode=install \/usr\/bin\/install -c tesseract '\/usr\/local\/bin'\r\nlibtool: install: \/usr\/bin\/install -c .libs\/tesseract \/usr\/local\/bin\/tesseract\r\n \/bin\/mkdir -p '\/usr\/local\/include\/tesseract'\r\n \/usr\/bin\/install -c -m 644 apitypes.h baseapi.h capi.h renderer.h '\/usr\/local\/include\/tesseract'\r\nmake[2]: Leaving directory `\/home\/teddy\/Documents\/cpp\/tesseract\/api'\r\nmake[1]: Leaving directory `\/home\/teddy\/Documents\/cpp\/tesseract\/api'\r\nMaking install in .\r\nmake[1]: Entering directory `\/home\/teddy\/Documents\/cpp\/tesseract'\r\nmake[2]: Entering directory `\/home\/teddy\/Documents\/cpp\/tesseract'\r\nmake[2]: Nothing to be done for `install-exec-am'.\r\n \/bin\/mkdir -p '\/usr\/local\/lib\/pkgconfig'\r\n \/usr\/bin\/install -c -m 644 tesseract.pc '\/usr\/local\/lib\/pkgconfig'\r\nmake[2]: Leaving directory `\/home\/teddy\/Documents\/cpp\/tesseract'\r\nmake[1]: Leaving directory `\/home\/teddy\/Documents\/cpp\/tesseract'\r\nMaking install in tessdata\r\nmake[1]: Entering directory `\/home\/teddy\/Documents\/cpp\/tesseract\/tessdata'\r\nMaking install in configs\r\nmake[2]: Entering directory `\/home\/teddy\/Documents\/cpp\/tesseract\/tessdata\/configs'\r\nmake[3]: Entering directory `\/home\/teddy\/Documents\/cpp\/tesseract\/tessdata\/configs'\r\nmake[3]: Nothing to be done for `install-exec-am'.\r\n \/bin\/mkdir -p '\/usr\/local\/share\/tessdata\/configs'\r\n \/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'\r\nmake[3]: Leaving directory `\/home\/teddy\/Documents\/cpp\/tesseract\/tessdata\/configs'\r\nmake[2]: Leaving directory `\/home\/teddy\/Documents\/cpp\/tesseract\/tessdata\/configs'\r\nMaking install in tessconfigs\r\nmake[2]: Entering directory `\/home\/teddy\/Documents\/cpp\/tesseract\/tessdata\/tessconfigs'\r\nmake[3]: Entering directory `\/home\/teddy\/Documents\/cpp\/tesseract\/tessdata\/tessconfigs'\r\nmake[3]: Nothing to be done for `install-exec-am'.\r\n \/bin\/mkdir -p '\/usr\/local\/share\/tessdata\/tessconfigs'\r\n \/usr\/bin\/install -c -m 644 batch batch.nochop nobatch matdemo segdemo msdemo '\/usr\/local\/share\/tessdata\/tessconfigs'\r\nmake[3]: Leaving directory `\/home\/teddy\/Documents\/cpp\/tesseract\/tessdata\/tessconfigs'\r\nmake[2]: Leaving directory `\/home\/teddy\/Documents\/cpp\/tesseract\/tessdata\/tessconfigs'\r\nmake[2]: Entering directory `\/home\/teddy\/Documents\/cpp\/tesseract\/tessdata'\r\nmake[3]: Entering directory `\/home\/teddy\/Documents\/cpp\/tesseract\/tessdata'\r\nmake[3]: Nothing to be done for `install-exec-am'.\r\n \/bin\/mkdir -p '\/usr\/local\/share\/tessdata'\r\n \/usr\/bin\/install -c -m 644 pdf.ttf '\/usr\/local\/share\/tessdata'\r\nmake[3]: Leaving directory `\/home\/teddy\/Documents\/cpp\/tesseract\/tessdata'\r\nmake[2]: Leaving directory `\/home\/teddy\/Documents\/cpp\/tesseract\/tessdata'\r\nmake[1]: Leaving directory `\/home\/teddy\/Documents\/cpp\/tesseract\/tessdata'\r\nMaking install in doc\r\nmake[1]: Entering directory `\/home\/teddy\/Documents\/cpp\/tesseract\/doc'\r\nmake[2]: Entering directory `\/home\/teddy\/Documents\/cpp\/tesseract\/doc'\r\nmake[2]: Nothing to be done for `install-exec-am'.\r\n \/bin\/mkdir -p '\/usr\/local\/share\/man\/man1'\r\n \/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'\r\n \/bin\/mkdir -p '\/usr\/local\/share\/man\/man5'\r\n \/usr\/bin\/install -c -m 644 unicharambigs.5 unicharset.5 '\/usr\/local\/share\/man\/man5'\r\nmake[2]: Leaving directory `\/home\/teddy\/Documents\/cpp\/tesseract\/doc'\r\nmake[1]: Leaving directory `\/home\/teddy\/Documents\/cpp\/tesseract\/doc'<\/pre>\n<p>&nbsp;<\/li>\n<li>sudo ldconfig\n<pre class=\"lang:default decode:true \">teddy@teddy-K43SJ:~\/Documents\/cpp\/tesseract$ sudo ldconfig<\/pre>\n<p>&nbsp;<\/li>\n<li>Make training\n<pre class=\"lang:default decode:true \">teddy@teddy-K43SJ:~\/Documents\/cpp\/tesseract$ make training\r\nmake\r\nmake[1]: Entering directory `\/home\/teddy\/Documents\/cpp\/tesseract'\r\nmake  all-recursive\r\nmake[2]: Entering directory `\/home\/teddy\/Documents\/cpp\/tesseract'\r\nMaking all in arch\r\nmake[3]: Entering directory `\/home\/teddy\/Documents\/cpp\/tesseract\/arch'\r\nmake[4]: Entering directory `\/home\/teddy\/Documents\/cpp\/tesseract\/arch'\r\nmake[4]: Nothing to be done for `all-am'.\r\nmake[4]: Leaving directory `\/home\/teddy\/Documents\/cpp\/tesseract\/arch'\r\nmake[3]: Leaving directory `\/home\/teddy\/Documents\/cpp\/tesseract\/arch'\r\nMaking all in ccutil\r\nmake[3]: Entering directory `\/home\/teddy\/Documents\/cpp\/tesseract\/ccutil'\r\nmake[4]: Entering directory `\/home\/teddy\/Documents\/cpp\/tesseract\/ccutil'\r\nmake[4]: Nothing to be done for `all-am'.\r\nmake[4]: Leaving directory `\/home\/teddy\/Documents\/cpp\/tesseract\/ccutil'\r\nmake[3]: Leaving directory `\/home\/teddy\/Documents\/cpp\/tesseract\/ccutil'\r\nMaking all in viewer\r\nmake[3]: Entering directory `\/home\/teddy\/Documents\/cpp\/tesseract\/viewer'\r\nmake[3]: Nothing to be done for `all'.\r\nmake[3]: Leaving directory `\/home\/teddy\/Documents\/cpp\/tesseract\/viewer'\r\nMaking all in cutil\r\nmake[3]: Entering directory `\/home\/teddy\/Documents\/cpp\/tesseract\/cutil'\r\nmake[3]: Nothing to be done for `all'.\r\nmake[3]: Leaving directory `\/home\/teddy\/Documents\/cpp\/tesseract\/cutil'\r\nMaking all in opencl\r\nmake[3]: Entering directory `\/home\/teddy\/Documents\/cpp\/tesseract\/opencl'\r\nmake[3]: Nothing to be done for `all'.\r\nmake[3]: Leaving directory `\/home\/teddy\/Documents\/cpp\/tesseract\/opencl'\r\nMaking all in ccstruct\r\nmake[3]: Entering directory `\/home\/teddy\/Documents\/cpp\/tesseract\/ccstruct'\r\nmake[3]: Nothing to be done for `all'.\r\nmake[3]: Leaving directory `\/home\/teddy\/Documents\/cpp\/tesseract\/ccstruct'\r\nMaking all in dict\r\nmake[3]: Entering directory `\/home\/teddy\/Documents\/cpp\/tesseract\/dict'\r\nmake[3]: Nothing to be done for `all'.\r\nmake[3]: Leaving directory `\/home\/teddy\/Documents\/cpp\/tesseract\/dict'\r\nMaking all in classify\r\nmake[3]: Entering directory `\/home\/teddy\/Documents\/cpp\/tesseract\/classify'\r\nmake[3]: Nothing to be done for `all'.\r\nmake[3]: Leaving directory `\/home\/teddy\/Documents\/cpp\/tesseract\/classify'\r\nMaking all in wordrec\r\nmake[3]: Entering directory `\/home\/teddy\/Documents\/cpp\/tesseract\/wordrec'\r\nmake[3]: Nothing to be done for `all'.\r\nmake[3]: Leaving directory `\/home\/teddy\/Documents\/cpp\/tesseract\/wordrec'\r\nMaking all in textord\r\nmake[3]: Entering directory `\/home\/teddy\/Documents\/cpp\/tesseract\/textord'\r\nmake[3]: Nothing to be done for `all'.\r\nmake[3]: Leaving directory `\/home\/teddy\/Documents\/cpp\/tesseract\/textord'\r\nMaking all in lstm\r\nmake[3]: Entering directory `\/home\/teddy\/Documents\/cpp\/tesseract\/lstm'\r\nmake[4]: Entering directory `\/home\/teddy\/Documents\/cpp\/tesseract\/lstm'\r\nmake[4]: Nothing to be done for `all-am'.\r\nmake[4]: Leaving directory `\/home\/teddy\/Documents\/cpp\/tesseract\/lstm'\r\nmake[3]: Leaving directory `\/home\/teddy\/Documents\/cpp\/tesseract\/lstm'\r\nMaking all in ccmain\r\nmake[3]: Entering directory `\/home\/teddy\/Documents\/cpp\/tesseract\/ccmain'\r\nmake[3]: Nothing to be done for `all'.\r\nmake[3]: Leaving directory `\/home\/teddy\/Documents\/cpp\/tesseract\/ccmain'\r\nMaking all in api\r\nmake[3]: Entering directory `\/home\/teddy\/Documents\/cpp\/tesseract\/api'\r\nmake[3]: Nothing to be done for `all'.\r\nmake[3]: Leaving directory `\/home\/teddy\/Documents\/cpp\/tesseract\/api'\r\nMaking all in .\r\nmake[3]: Entering directory `\/home\/teddy\/Documents\/cpp\/tesseract'\r\nmake[3]: Leaving directory `\/home\/teddy\/Documents\/cpp\/tesseract'\r\nMaking all in tessdata\r\nmake[3]: Entering directory `\/home\/teddy\/Documents\/cpp\/tesseract\/tessdata'\r\nMaking all in configs\r\nmake[4]: Entering directory `\/home\/teddy\/Documents\/cpp\/tesseract\/tessdata\/configs'\r\nmake[4]: Nothing to be done for `all'.\r\nmake[4]: Leaving directory `\/home\/teddy\/Documents\/cpp\/tesseract\/tessdata\/configs'\r\nMaking all in tessconfigs\r\nmake[4]: Entering directory `\/home\/teddy\/Documents\/cpp\/tesseract\/tessdata\/tessconfigs'\r\nmake[4]: Nothing to be done for `all'.\r\nmake[4]: Leaving directory `\/home\/teddy\/Documents\/cpp\/tesseract\/tessdata\/tessconfigs'\r\nmake[4]: Entering directory `\/home\/teddy\/Documents\/cpp\/tesseract\/tessdata'\r\nmake[4]: Nothing to be done for `all-am'.\r\nmake[4]: Leaving directory `\/home\/teddy\/Documents\/cpp\/tesseract\/tessdata'\r\nmake[3]: Leaving directory `\/home\/teddy\/Documents\/cpp\/tesseract\/tessdata'\r\nMaking all in doc\r\nmake[3]: Entering directory `\/home\/teddy\/Documents\/cpp\/tesseract\/doc'\r\nmake[3]: Nothing to be done for `all'.\r\nmake[3]: Leaving directory `\/home\/teddy\/Documents\/cpp\/tesseract\/doc'\r\nmake[2]: Leaving directory `\/home\/teddy\/Documents\/cpp\/tesseract'\r\nmake[1]: Leaving directory `\/home\/teddy\/Documents\/cpp\/tesseract'\r\nmake[1]: Entering directory `\/home\/teddy\/Documents\/cpp\/tesseract\/training'\r\ndepbase=`echo boxchar.lo | sed 's|[^\/]*$|.deps\/&amp;|;s|\\.lo$||'`;\\\r\n\t\/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 &amp;&amp;\\\r\n\tmv -f $depbase.Tpo $depbase.Plo\r\nlibtool: 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.o\r\nboxchar.cpp: In static member function 'static void tesseract::BoxChar::TranslateBoxes(int, int, std::vector&lt;tesseract::BoxChar*&gt;*)':\r\nboxchar.cpp:54:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n   for (int i = 0; i &lt; boxes-&gt;size(); ++i) {\r\n                                   ^\r\nboxchar.cpp: In static member function 'static void tesseract::BoxChar::PrepareToWrite(std::vector&lt;tesseract::BoxChar*&gt;*)':\r\nboxchar.cpp:71:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n   for (int i = 0; i &lt; boxes-&gt;size(); ++i) {\r\n                                   ^\r\nboxchar.cpp: In static member function 'static void tesseract::BoxChar::InsertNewlines(bool, bool, std::vector&lt;tesseract::BoxChar*&gt;*)':\r\nboxchar.cpp:85:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n   for (int i = 0; i &lt; boxes-&gt;size(); ++i) {\r\n                                   ^\r\nboxchar.cpp:88:64: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n       if (prev_i &lt; 0 || prev_i &lt; i - 1 || i + 1 == boxes-&gt;size()) {\r\n                                                                ^\r\nboxchar.cpp:94:49: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n         } while (i &gt;= 0 &amp;&amp; i + 1 == boxes-&gt;size() &amp;&amp;\r\n                                                 ^\r\nboxchar.cpp: In static member function 'static void tesseract::BoxChar::InsertSpaces(bool, bool, std::vector&lt;tesseract::BoxChar*&gt;*)':\r\nboxchar.cpp:149:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n   for (int i = 1; i + 1 &lt; boxes-&gt;size(); ++i) {\r\n                                       ^\r\nboxchar.cpp:181:45: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n         for (int j = i + 2; j &lt; boxes-&gt;size() &amp;&amp; (*boxes)[j]-&gt;box_ != nullptr &amp;&amp;\r\n                                             ^\r\nboxchar.cpp: In static member function 'static void tesseract::BoxChar::ReorderRTLText(std::vector&lt;tesseract::BoxChar*&gt;*)':\r\nboxchar.cpp:207:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n   for (int start = 0; start &lt; boxes-&gt;size(); start = end + 1) {\r\n                                           ^\r\nboxchar.cpp:209:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n     while (end &lt; boxes-&gt;size() &amp;&amp; (*boxes)[end]-&gt;ch_ != \"\\t\") ++end;\r\n                              ^\r\nboxchar.cpp: In static member function 'static bool tesseract::BoxChar::ContainsMostlyRTL(const std::vector&lt;tesseract::BoxChar*&gt;&amp;)':\r\nboxchar.cpp:218:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n   for (int i = 0; i &lt; boxes.size(); ++i) {\r\n                                  ^\r\nboxchar.cpp:224:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n       for (int c = 0; c &lt; boxes[i]-&gt;ch_.size(); ++c) {\r\n                                              ^\r\nboxchar.cpp: In static member function 'static bool tesseract::BoxChar::MostlyVertical(const std::vector&lt;tesseract::BoxChar*&gt;&amp;)':\r\nboxchar.cpp:247:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n   for (int i = 1; i &lt; boxes.size(); ++i) {\r\n                                  ^\r\nboxchar.cpp: In static member function 'static int tesseract::BoxChar::TotalByteLength(const std::vector&lt;tesseract::BoxChar*&gt;&amp;)':\r\nboxchar.cpp:266:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n   for (int i = 0; i &lt; boxes.size(); ++i) total_length += boxes[i]-&gt;ch_.size();\r\n                                  ^\r\nboxchar.cpp: In static member function 'static std::string tesseract::BoxChar::GetTesseractBoxStr(int, const std::vector&lt;tesseract::BoxChar*&gt;&amp;)':\r\nboxchar.cpp:305:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n   for (int i = 0; i &lt; boxes.size(); ++i) {\r\n                                  ^\r\nlibtool: 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 &gt;\/dev\/null 2&gt;&amp;1\r\ndepbase=`echo commandlineflags.lo | sed 's|[^\/]*$|.deps\/&amp;|;s|\\.lo$||'`;\\\r\n\t\/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 &amp;&amp;\\\r\n\tmv -f $depbase.Tpo $depbase.Plo\r\nlibtool: 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.o\r\ncommandlineflags.cpp: In function 'void tesseract::ParseCommandLineFlags(const char*, int*, char***, bool)':\r\ncommandlineflags.cpp:163:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n   for (i = 1; i &lt; *argc; ++i) {\r\n                    ^\r\ncommandlineflags.cpp:217:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n         if (i + 1 &gt;= *argc) {\r\n                       ^\r\ncommandlineflags.cpp:249:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n         if (i + 1 &gt;= *argc) {\r\n                       ^\r\ncommandlineflags.cpp:298:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n         if (i + 1 &gt;= *argc) {\r\n                       ^\r\nlibtool: 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 &gt;\/dev\/null 2&gt;&amp;1\r\ndepbase=`echo commontraining.lo | sed 's|[^\/]*$|.deps\/&amp;|;s|\\.lo$||'`;\\\r\n\t\/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 &amp;&amp;\\\r\n\tmv -f $depbase.Tpo $depbase.Plo\r\nlibtool: 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.o\r\ncommontraining.cpp: In function 'void ReadTrainingSamples(const FEATURE_DEFS_STRUCT&amp;, const char*, int, UNICHARSET*, FILE*, list_rec**)':\r\ncommontraining.cpp:430:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n     for (i = 0; i &lt; char_desc-&gt;NumFeatureSets; i++) {\r\n                                ^\r\nlibtool: 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 &gt;\/dev\/null 2&gt;&amp;1\r\ndepbase=`echo degradeimage.lo | sed 's|[^\/]*$|.deps\/&amp;|;s|\\.lo$||'`;\\\r\n\t\/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 &amp;&amp;\\\r\n\tmv -f $depbase.Tpo $depbase.Plo\r\nlibtool: 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.o\r\nlibtool: 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 &gt;\/dev\/null 2&gt;&amp;1\r\ndepbase=`echo fileio.lo | sed 's|[^\/]*$|.deps\/&amp;|;s|\\.lo$||'`;\\\r\n\t\/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 &amp;&amp;\\\r\n\tmv -f $depbase.Tpo $depbase.Plo\r\nlibtool: 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.o\r\nlibtool: 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 &gt;\/dev\/null 2&gt;&amp;1\r\ndepbase=`echo ligature_table.lo | sed 's|[^\/]*$|.deps\/&amp;|;s|\\.lo$||'`;\\\r\n\t\/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 &amp;&amp;\\\r\n\tmv -f $depbase.Tpo $depbase.Plo\r\nlibtool: 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.o\r\nlibtool: 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 &gt;\/dev\/null 2&gt;&amp;1\r\ndepbase=`echo lstmtester.lo | sed 's|[^\/]*$|.deps\/&amp;|;s|\\.lo$||'`;\\\r\n\t\/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 &amp;&amp;\\\r\n\tmv -f $depbase.Tpo $depbase.Plo\r\nlibtool: 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.o\r\nlibtool: 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 &gt;\/dev\/null 2&gt;&amp;1\r\ndepbase=`echo normstrngs.lo | sed 's|[^\/]*$|.deps\/&amp;|;s|\\.lo$||'`;\\\r\n\t\/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 &amp;&amp;\\\r\n\tmv -f $depbase.Tpo $depbase.Plo\r\nlibtool: 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.o\r\nnormstrngs.cpp: In function 'bool tesseract::IsUTF8Whitespace(const char*)':\r\nnormstrngs.cpp:184:49: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n   return SpanUTF8Whitespace(text) == strlen(text);\r\n                                                 ^\r\nlibtool: 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 &gt;\/dev\/null 2&gt;&amp;1\r\ndepbase=`echo pango_font_info.lo | sed 's|[^\/]*$|.deps\/&amp;|;s|\\.lo$||'`;\\\r\n\t\/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 &amp;&amp;\\\r\n\tmv -f $depbase.Tpo $depbase.Plo\r\nlibtool: 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.o\r\npango_font_info.cpp: In static member function 'static void tesseract::FontUtils::GetAllRenderableCharacters(const std::vector&lt;std::basic_string&lt;char&gt; &gt;&amp;, std::vector&lt;bool&gt;*)':\r\npango_font_info.cpp:677:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n   for (int i = 0; i &lt; fonts.size(); ++i) {\r\n                                  ^\r\npango_font_info.cpp: In static member function 'static std::string tesseract::FontUtils::BestFonts(const std::unordered_map&lt;int, long int&gt;&amp;, std::vector&lt;std::pair&lt;const char*, std::vector&lt;bool&gt; &gt; &gt;*)':\r\npango_font_info.cpp:740:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n   for (int i = 0; i &lt; font_names.size(); ++i) {\r\n                                       ^\r\npango_font_info.cpp:765:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n   for (int i = 0; i &lt; font_names.size(); ++i) {\r\n                                       ^\r\npango_font_info.cpp: In static member function 'static bool tesseract::FontUtils::SelectFont(const char*, int, const std::vector&lt;std::basic_string&lt;char&gt; &gt;&amp;, std::string*, std::vector&lt;std::basic_string&lt;char&gt; &gt;*)':\r\npango_font_info.cpp:800:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n   for (int i = 0; i &lt; all_fonts.size(); ++i) {\r\n                                      ^\r\nlibtool: 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 &gt;\/dev\/null 2&gt;&amp;1\r\ndepbase=`echo stringrenderer.lo | sed 's|[^\/]*$|.deps\/&amp;|;s|\\.lo$||'`;\\\r\n\t\/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 &amp;&amp;\\\r\n\tmv -f $depbase.Tpo $depbase.Plo\r\nlibtool: 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.o\r\nstringrenderer.cpp: In member function 'void tesseract::StringRenderer::SetWordUnderlineAttributes(const string&amp;)':\r\nstringrenderer.cpp:249:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n   while (offset &lt; page_text.length()) {\r\n                                    ^\r\nstringrenderer.cpp:251:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n     if (offset == page_text.length()) break;\r\n                                    ^\r\nstringrenderer.cpp: In member function 'void tesseract::StringRenderer::ClearBoxes()':\r\nstringrenderer.cpp:344:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n   for (int i = 0; i &lt; boxchars_.size(); ++i)\r\n                                      ^\r\nstringrenderer.cpp: In function 'void tesseract::MergeBoxCharsToWords(std::vector&lt;tesseract::BoxChar*&gt;*)':\r\nstringrenderer.cpp:419:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n   for (int i = 0; i &lt; boxchars-&gt;size(); ++i) {\r\n                                      ^\r\nstringrenderer.cpp: In member function 'void tesseract::StringRenderer::ComputeClusterBoxes()':\r\nstringrenderer.cpp:483:54: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n   for (int i = 0; i &lt; cluster_start_indices.size() - 1; ++i) {\r\n                                                      ^\r\nstringrenderer.cpp:595:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n   for (int i = 0; i &lt; page_boxchars.size(); ++i) {\r\n                                          ^\r\nstringrenderer.cpp: In member function 'int tesseract::StringRenderer::StripUnrenderableWords(std::string*) const':\r\nstringrenderer.cpp:626:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n   while (offset &lt; utf8_text-&gt;length()) {\r\n                                     ^\r\nstringrenderer.cpp:630:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n     if (offset == utf8_text-&gt;length()) break;\r\n                                     ^\r\nstringrenderer.cpp: In member function 'int tesseract::StringRenderer::RenderAllFontsToImage(double, const char*, int, std::string*, Pix**)':\r\nstringrenderer.cpp:868:48: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n   for (int i = font_index_; i &lt; all_fonts.size(); ++i) {\r\n                                                ^\r\nlibtool: 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 &gt;\/dev\/null 2&gt;&amp;1\r\ndepbase=`echo tlog.lo | sed 's|[^\/]*$|.deps\/&amp;|;s|\\.lo$||'`;\\\r\n\t\/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 &amp;&amp;\\\r\n\tmv -f $depbase.Tpo $depbase.Plo\r\nlibtool: 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.o\r\nlibtool: 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 &gt;\/dev\/null 2&gt;&amp;1\r\ndepbase=`echo unicharset_training_utils.lo | sed 's|[^\/]*$|.deps\/&amp;|;s|\\.lo$||'`;\\\r\n\t\/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 &amp;&amp;\\\r\n\tmv -f $depbase.Tpo $depbase.Plo\r\nlibtool: 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.o\r\nlibtool: 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 &gt;\/dev\/null 2&gt;&amp;1\r\n\/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  -lpthread \r\nlibtool: link: (cd .libs\/libtesseract_training.lax\/libtesseract_cutil.a &amp;&amp; ar x \"\/home\/teddy\/Documents\/cpp\/tesseract\/training\/..\/cutil\/.libs\/libtesseract_cutil.a\")\r\nlibtool: 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.o \r\nlibtool: link: ranlib .libs\/libtesseract_training.a\r\nlibtool: link: rm -fr .libs\/libtesseract_training.lax\r\nlibtool: link: ( cd \".libs\" &amp;&amp; rm -f \"libtesseract_training.la\" &amp;&amp; ln -s \"..\/libtesseract_training.la\" \"libtesseract_training.la\" )\r\ndepbase=`echo tessopt.lo | sed 's|[^\/]*$|.deps\/&amp;|;s|\\.lo$||'`;\\\r\n\t\/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 &amp;&amp;\\\r\n\tmv -f $depbase.Tpo $depbase.Plo\r\nlibtool: 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.o\r\nlibtool: 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 &gt;\/dev\/null 2&gt;&amp;1\r\n\/bin\/bash ..\/libtool  --tag=CXX   --mode=link g++  -g -O2 -std=c++11   -o libtesseract_tessopt.la  tessopt.lo  -lpthread \r\nlibtool: link: ar cru .libs\/libtesseract_tessopt.a .libs\/tessopt.o \r\nlibtool: link: ranlib .libs\/libtesseract_tessopt.a\r\nlibtool: link: ( cd \".libs\" &amp;&amp; rm -f \"libtesseract_tessopt.la\" &amp;&amp; ln -s \"..\/libtesseract_tessopt.la\" \"libtesseract_tessopt.la\" )\r\ndepbase=`echo ambiguous_words.o | sed 's|[^\/]*$|.deps\/&amp;|;s|\\.o$||'`;\\\r\n\tg++ -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 &amp;&amp;\\\r\n\tmv -f $depbase.Tpo $depbase.Po\r\n\/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   -lpthread \r\nlibtool: 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 -fopenmp\r\ndepbase=`echo classifier_tester.o | sed 's|[^\/]*$|.deps\/&amp;|;s|\\.o$||'`;\\\r\n\tg++ -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 &amp;&amp;\\\r\n\tmv -f $depbase.Tpo $depbase.Po\r\n\/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   -lpthread \r\nlibtool: 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 -fopenmp\r\ndepbase=`echo cntraining.o | sed 's|[^\/]*$|.deps\/&amp;|;s|\\.o$||'`;\\\r\n\tg++ -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 &amp;&amp;\\\r\n\tmv -f $depbase.Tpo $depbase.Po\r\n\/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   -lpthread \r\nlibtool: 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 -fopenmp\r\ndepbase=`echo combine_tessdata.o | sed 's|[^\/]*$|.deps\/&amp;|;s|\\.o$||'`;\\\r\n\tg++ -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 &amp;&amp;\\\r\n\tmv -f $depbase.Tpo $depbase.Po\r\n\/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   -lpthread \r\nlibtool: 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 -fopenmp\r\ndepbase=`echo dawg2wordlist.o | sed 's|[^\/]*$|.deps\/&amp;|;s|\\.o$||'`;\\\r\n\tg++ -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 &amp;&amp;\\\r\n\tmv -f $depbase.Tpo $depbase.Po\r\n\/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   -lpthread \r\nlibtool: 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 -fopenmp\r\ndepbase=`echo lstmeval.o | sed 's|[^\/]*$|.deps\/&amp;|;s|\\.o$||'`;\\\r\n\tg++ -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 &amp;&amp;\\\r\n\tmv -f $depbase.Tpo $depbase.Po\r\n\/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   -lpthread \r\nlibtool: 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 -fopenmp\r\ndepbase=`echo lstmtraining.o | sed 's|[^\/]*$|.deps\/&amp;|;s|\\.o$||'`;\\\r\n\tg++ -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 &amp;&amp;\\\r\n\tmv -f $depbase.Tpo $depbase.Po\r\nlstmtraining.cpp: In function \u2018int main(int, char**)\u2019:\r\nlstmtraining.cpp:176:8: warning: unused variable \u2018best_dumped\u2019 [-Wunused-variable]\r\n   bool best_dumped = true;\r\n        ^\r\nlstmtraining.cpp:177:9: warning: unused variable \u2018best_model_dump\u2019 [-Wunused-variable]\r\n   char* best_model_dump = nullptr;\r\n         ^\r\nlstmtraining.cpp:178:10: warning: unused variable \u2018best_model_size\u2019 [-Wunused-variable]\r\n   size_t best_model_size = 0;\r\n          ^\r\n\/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   -lpthread \r\nlibtool: 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 -fopenmp\r\ndepbase=`echo mftraining.o | sed 's|[^\/]*$|.deps\/&amp;|;s|\\.o$||'`;\\\r\n\tg++ -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 &amp;&amp;\\\r\n\tmv -f $depbase.Tpo $depbase.Po\r\ndepbase=`echo mergenf.o | sed 's|[^\/]*$|.deps\/&amp;|;s|\\.o$||'`;\\\r\n\tg++ -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 &amp;&amp;\\\r\n\tmv -f $depbase.Tpo $depbase.Po\r\n\/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   -lpthread \r\nlibtool: 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 -fopenmp\r\ndepbase=`echo set_unicharset_properties.o | sed 's|[^\/]*$|.deps\/&amp;|;s|\\.o$||'`;\\\r\n\tg++ -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 &amp;&amp;\\\r\n\tmv -f $depbase.Tpo $depbase.Po\r\n\/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   -lpthread \r\nlibtool: 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 -fopenmp\r\ndepbase=`echo shapeclustering.o | sed 's|[^\/]*$|.deps\/&amp;|;s|\\.o$||'`;\\\r\n\tg++ -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 &amp;&amp;\\\r\n\tmv -f $depbase.Tpo $depbase.Po\r\n\/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   -lpthread \r\nlibtool: 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 -fopenmp\r\ndepbase=`echo text2image.o | sed 's|[^\/]*$|.deps\/&amp;|;s|\\.o$||'`;\\\r\n\tg++ -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 &amp;&amp;\\\r\n\tmv -f $depbase.Tpo $depbase.Po\r\ntext2image.cpp: In function \u2018std::string tesseract::StringReplace(const string&amp;, const string&amp;, const string&amp;)\u2019:\r\ntext2image.cpp:196:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n     if (pos == string::npos) break;\r\n                        ^\r\ntext2image.cpp: In function \u2018void tesseract::ExtractFontProperties(const string&amp;, tesseract::StringRenderer*, const string&amp;)\u2019:\r\ntext2image.cpp:242:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n     for (int b = 0; b &lt; boxes.size(); b += 2) {\r\n                                    ^\r\ntext2image.cpp:243:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n       while (b &lt; boxes.size() &amp;&amp; IsWhitespaceBox(boxes[b])) ++b;\r\n                             ^\r\ntext2image.cpp:244:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n       if (b + 1 &gt;= boxes.size()) break;\r\n                               ^\r\ntext2image.cpp: In function \u2018int main(int, char**)\u2019:\r\ntext2image.cpp:425:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n     for (int i = 0; i &lt; all_fonts.size(); ++i) {\r\n                                        ^\r\ntext2image.cpp:550:48: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n     for (int i = 0, line = 1; i &lt; offsets.size(); ++i) {\r\n                                                ^\r\ntext2image.cpp:559:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n       if (rand_utf8.length() &gt; line * kCharsPerLine) {\r\n                                       ^\r\ntext2image.cpp:591:56: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n     for (int offset = 0; offset &lt; strlen(to_render_utf8); ++im, ++page_num) {\r\n                                                        ^\r\ntext2image.cpp:667:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]\r\n       for (int i = 0; i &lt; font_names.size(); ++i) {\r\n                                           ^\r\n\/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   -lpthread \r\nlibtool: 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 -fopenmp\r\ndepbase=`echo unicharset_extractor.o | sed 's|[^\/]*$|.deps\/&amp;|;s|\\.o$||'`;\\\r\n\tg++ -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 &amp;&amp;\\\r\n\tmv -f $depbase.Tpo $depbase.Po\r\n\/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  -lpthread \r\nlibtool: 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 -fopenmp\r\ndepbase=`echo wordlist2dawg.o | sed 's|[^\/]*$|.deps\/&amp;|;s|\\.o$||'`;\\\r\n\tg++ -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 &amp;&amp;\\\r\n\tmv -f $depbase.Tpo $depbase.Po\r\n\/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   -lpthread \r\nlibtool: 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 -fopenmp\r\nmake[1]: Leaving directory `\/home\/teddy\/Documents\/cpp\/tesseract\/training'<\/pre>\n<p>&nbsp;<\/li>\n<li>Install the training\n<pre class=\"lang:default decode:true \">teddy@teddy-K43SJ:~\/Documents\/cpp\/tesseract$ sudo make training-install\r\n[sudo] password for teddy: \r\nmake[1]: Entering directory `\/home\/teddy\/Documents\/cpp\/tesseract\/training'\r\nmake[2]: Entering directory `\/home\/teddy\/Documents\/cpp\/tesseract\/training'\r\n \/bin\/mkdir -p '\/usr\/local\/bin'\r\n  \/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'\r\nlibtool: install: \/usr\/bin\/install -c .libs\/ambiguous_words \/usr\/local\/bin\/ambiguous_words\r\nlibtool: install: \/usr\/bin\/install -c .libs\/classifier_tester \/usr\/local\/bin\/classifier_tester\r\nlibtool: install: \/usr\/bin\/install -c .libs\/cntraining \/usr\/local\/bin\/cntraining\r\nlibtool: install: \/usr\/bin\/install -c .libs\/combine_tessdata \/usr\/local\/bin\/combine_tessdata\r\nlibtool: install: \/usr\/bin\/install -c .libs\/dawg2wordlist \/usr\/local\/bin\/dawg2wordlist\r\nlibtool: install: \/usr\/bin\/install -c .libs\/lstmeval \/usr\/local\/bin\/lstmeval\r\nlibtool: install: \/usr\/bin\/install -c .libs\/lstmtraining \/usr\/local\/bin\/lstmtraining\r\nlibtool: install: \/usr\/bin\/install -c .libs\/mftraining \/usr\/local\/bin\/mftraining\r\nlibtool: install: \/usr\/bin\/install -c .libs\/set_unicharset_properties \/usr\/local\/bin\/set_unicharset_properties\r\nlibtool: install: \/usr\/bin\/install -c .libs\/shapeclustering \/usr\/local\/bin\/shapeclustering\r\nlibtool: install: \/usr\/bin\/install -c .libs\/text2image \/usr\/local\/bin\/text2image\r\nlibtool: install: \/usr\/bin\/install -c .libs\/unicharset_extractor \/usr\/local\/bin\/unicharset_extractor\r\nlibtool: install: \/usr\/bin\/install -c .libs\/wordlist2dawg \/usr\/local\/bin\/wordlist2dawg\r\nmake[2]: Nothing to be done for `install-data-am'.\r\nmake[2]: Leaving directory `\/home\/teddy\/Documents\/cpp\/tesseract\/training'\r\nmake[1]: Leaving directory `\/home\/teddy\/Documents\/cpp\/tesseract\/training'<\/pre>\n<p>For the training tutorial, pls read: <a href=\"https:\/\/github.com\/tesseract-ocr\/tesseract\/wiki\/TrainingTesseract-4.00\">https:\/\/github.com\/tesseract-ocr\/tesseract\/wiki\/TrainingTesseract-4.00<\/a>\u00a0(OR <a href=\"https:\/\/github.com\/tesseract-ocr\/tesseract\/wiki\/Training-Tesseract\">https:\/\/github.com\/tesseract-ocr\/tesseract\/wiki\/Training-Tesseract<\/a> for older tesseract version). It says it use\u00a0neural network-based recognition engine. ALSO &#8220;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.&#8221;. IT&#8217;D TAKE A FEW DAYS &#8211; WEEKS??? IT SEEMS SAME WITH TRAINING OPENCV. IF I HAVE PLENTY OF TIME I CAN DO THAT. ACTUALLY IT&#8217;S INTERESTING!<\/li>\n<li>For visual debugging, build ScrollView.jar\n<pre class=\"lang:default decode:true \">teddy@teddy-K43SJ:~\/Documents\/cpp\/tesseract$ make ScrollView.jar\r\nmake[1]: Entering directory `\/home\/teddy\/Documents\/cpp\/tesseract\/java'\r\ncurl -L http:\/\/search.maven.org\/remotecontent?filepath=org\/piccolo2d\/piccolo2d-core\/3.0\/piccolo2d-core-3.0.jar &gt; piccolo2d-core-3.0.jar\r\n  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\r\n                                 Dload  Upload   Total   Spent    Left  Speed\r\n100   161  100   161    0     0    194      0 --:--:-- --:--:-- --:--:--   193\r\n100  121k  100  121k    0     0  48064      0  0:00:02  0:00:02 --:--:--  139k\r\ncurl -L http:\/\/search.maven.org\/remotecontent?filepath=org\/piccolo2d\/piccolo2d-extras\/3.0\/piccolo2d-extras-3.0.jar &gt; piccolo2d-extras-3.0.jar\r\n  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\r\n                                 Dload  Upload   Total   Spent    Left  Speed\r\n100   161  100   161    0     0    280      0 --:--:-- --:--:-- --:--:--   280\r\n100  145k  100  145k    0     0  69142      0  0:00:02  0:00:02 --:--:--  153k\r\njavac -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 .\r\njar cfm ScrollView.jar .\/Manifest.txt com\/google\/scrollview\/*.class \\\r\n           com\/google\/scrollview\/events\/*.class com\/google\/scrollview\/ui\/*.class\r\nmake[1]: Leaving directory `\/home\/teddy\/Documents\/cpp\/tesseract\/java'<\/pre>\n<p>Export &#8216;SCROLLVIEW_PATH&#8217;:<\/p>\n<pre class=\"lang:default decode:true\">teddy@teddy-K43SJ:~\/Documents\/cpp\/tesseract$ export SCROLLVIEW_PATH=$PWD\/java<\/pre>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/li>\n<li>Install Language<br \/>\nFor example to install english and many other files, pls see <a href=\"https:\/\/github.com\/tesseract-ocr\/tesseract\/wiki\/Data-Files\">https:\/\/github.com\/tesseract-ocr\/tesseract\/wiki\/Data-Files<\/a>. I downloaded english language\u00a0<a href=\"https:\/\/sourceforge.net\/projects\/tesseract-ocr-alt\/files\/tesseract-ocr-3.02.eng.tar.gz\/download\">https:\/\/sourceforge.net\/projects\/tesseract-ocr-alt\/files\/tesseract-ocr-3.02.eng.tar.gz\/download<\/a>.<br \/>\n&lt;OLD&gt;Then extract the zip file &#8216;tesseract-ocr-3.02.eng.tar.gz&#8217;. then move all files in \/tesseract-ocr\/tessdata\/ to \/tesseract\/tessdata\/<br \/>\nDONT FORGET TO POINT OUT &#8216;TESSDATA_PREFIX&#8217;!<\/p>\n<pre class=\"lang:default decode:true\">teddy@teddy-K43SJ:~\/Documents\/cpp\/tesseract$ export TESSDATA_PREFIX='\/home\/teddy\/Documents\/cpp\/tesseract\/tessdata\/'<\/pre>\n<p>&lt;\/OLD&gt;<br \/>\n&lt;NEW&gt;It&#8217;d be much better to copy\/move the &#8216;tessdata&#8217; directory into \/usr\/local\/share\/tessdata\/ than copy\/move them into \/cpp\/tesseract\/tessdata\/ above (the OLD&gt; because we dont have to type &#8216;export TESSDATA_PREFIX&#8230;&#8217; everytime we need to scan an image. I did this after did the old one<\/p>\n<pre class=\"lang:default decode:true \">teddy@teddy-K43SJ:~\/Documents\/cpp\/tesseract$ sudo cp tessdata\/* \/usr\/local\/share\/tessdata\/<\/pre>\n<p>&lt;\/NEW&gt;<br \/>\nAT FIRST I FORGOT ABOUT THIS. WHEN I DID A TEST, HERE IS THE MESSAGE<\/p>\n<pre class=\"lang:default decode:true\">teddy@teddy-K43SJ:~\/Documents\/cpp\/tesseract$ tesseract testing\/phototest.tif output\r\nInfo in bmfCreate: Generating pixa of bitmap fonts from string\r\nError opening data file \/usr\/local\/share\/tessdata\/eng.traineddata\r\nPlease make sure the TESSDATA_PREFIX environment variable is set to the parent directory of your \"tessdata\" directory.\r\nFailed loading language 'eng'\r\nTesseract couldn't load any languages!\r\nCould not initialize tesseract.<\/pre>\n<\/li>\n<li>Check tesseract version (with -v or &#8211;version)\n<pre class=\"lang:default decode:true \">teddy@teddy-K43SJ:~\/Documents\/cpp\/tesseract$ tesseract --version\r\ntesseract bd45b3a\r\n leptonica-1.74.1\r\n  libgif 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.4\r\n\r\n Found AVX\r\n Found SSE<\/pre>\n<p>&nbsp;<\/li>\n<li>Test!\n<pre class=\"lang:default decode:true \">teddy@teddy-K43SJ:~\/Documents\/cpp\/tesseract$ tesseract testing\/phototest.tif output\r\nInfo in bmfCreate: Generating pixa of bitmap fonts from string\r\nTesseract Open Source OCR Engine vbd45b3a with Leptonica\r\nPage 1<\/pre>\n<p>Here is the image source (&#8216;phototest.tif&#8217;)<a href=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/02\/phototest.tif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-1698\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/02\/phototest.tif\" alt=\"\" width=\"1\" height=\"1\" \/><\/a> And here is the result in \/tesseract\/output.txt<\/p>\n<pre class=\"lang:default decode:true \">This is a lot of 12 point text to test the\r\nocr code and see if it works on all types\r\nof file format.\r\n\r\nThe quick brown dog jumped over the\r\nlazy fox. The quick brown dog jumped\r\nover the lazy fox. The quick brown dog\r\njumped over the lazy fox. The quick\r\nbrown dog jumped over the lazy fox.<\/pre>\n<p>NOTE : IT BETTER TO NOT USE FILENAME WITH HAS SPACE BECAUSE TESSERACT CAN&#8217;T FIND IT!<br \/>\nALSO USE IMAGE WITH HIGH RESOLUTION! OR WE CAN DO THE TRAINING STUFF (IF WE HAVE PLENTY OF TIME!!!)<br \/>\nOTHER TESTS<\/p>\n<pre class=\"lang:default decode:true \">teddy@teddy-K43SJ:~\/Documents\/cpp\/tesseract$ tesseract testing\/Screenshot.png output\r\nInfo in bmfCreate: Generating pixa of bitmap fonts from string\r\nTesseract Open Source OCR Engine vbd45b3a with Leptonica\r\nWarning. Invalid resolution 0 dpi. Using 70 instead.\r\nteddy@teddy-K43SJ:~\/Documents\/cpp\/tesseract$ tesseract testing\/Screen2.png output2\r\nInfo in bmfCreate: Generating pixa of bitmap fonts from string\r\nTesseract Open Source OCR Engine vbd45b3a with Leptonica\r\nWarning. Invalid resolution 0 dpi. Using 70 instead.\r\nteddy@teddy-K43SJ:~\/Documents\/cpp\/tesseract$ tesseract testing\/Screen3.png output3\r\nInfo in bmfCreate: Generating pixa of bitmap fonts from string\r\nTesseract Open Source OCR Engine vbd45b3a with Leptonica\r\nWarning. Invalid resolution 0 dpi. Using 70 instead.\r\nDetected 61 diacritics<\/pre>\n<p>BUT I FOUND THE RESULT STILL NOT GOOD!!! MANY WEIRD CHARS, SPELLING MISTAKES,ETC<br \/>\nANOTHER TEST WITH COMMAND TERMINAL:<\/p>\n<pre class=\"lang:default decode:true \">teddy@teddy-K43SJ:~\/Documents\/cpp\/tesseract\/testing$ tesseract eurotext.tif out -l eng\r\nInfo in bmfCreate: Generating pixa of bitmap fonts from string\r\nTesseract Open Source OCR Engine vbd45b3a with Leptonica\r\nPage 1<\/pre>\n<p>Display the result in the terminal:<\/p>\n<pre class=\"lang:default decode:true \">teddy@teddy-K43SJ:~\/Documents\/cpp\/tesseract\/testing$ cat out.txt \r\nThe (quick) [brown] {fox} jumps!\r\nOver the $43,456.78 &lt;lazy&gt; #90 dog\r\n&amp; duck\/goose, as 12.5% of E-mail\r\nfrom aspammer@website.com is spam.\r\nDer ,,schnelle\u201d braune Fuchs springt\r\n\ufb01ber den faulen Hund. Le renard brun\r\n\u00abrapide\u00bb saute par-dessus le chien\r\nparesseux. La volpe marrone rapida\r\nsalta sopra i] cane pigro. El zorro\r\nmarr\u00e9n r\u00e9pido salta sobre el perro\r\nperezoso. A raposa marrom r\u00e9pida\r\nsalta sobre 0 C50 preguieoso.<\/pre>\n<p>open the original image so we can compare it<\/p>\n<pre class=\"lang:default decode:true \">teddy@teddy-K43SJ:~\/Documents\/cpp\/tesseract\/testing$ display eurotext.tif<\/pre>\n<p>&nbsp;<\/li>\n<li>Question: Can we use tesseract to read\/scan pdf file?<br \/>\npls read:\u00a0<a href=\"http:\/\/kiirani.com\/2013\/03\/22\/tesseract-pdf.html\">http:\/\/kiirani.com\/2013\/03\/22\/tesseract-pdf.html<\/a><br \/>\n<a href=\"http:\/\/www.barryhubbard.com\/linux\/converting-pdf-to-text-using-tesseract\/\">http:\/\/www.barryhubbard.com\/linux\/converting-pdf-to-text-using-tesseract\/<\/a><br \/>\n<a href=\"http:\/\/stackoverflow.com\/questions\/30925218\/converting-a-pdf-to-text-using-tesseract-ocr\">http:\/\/stackoverflow.com\/questions\/30925218\/converting-a-pdf-to-text-using-tesseract-ocr<\/a><br \/>\nTESSERACT CAN&#8217;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\u00a0TIFF FILES! READ <a href=\"http:\/\/www.barryhubbard.com\/linux\/converting-pdf-to-text-using-tesseract\/\">http:\/\/www.barryhubbard.com\/linux\/converting-pdf-to-text-using-tesseract\/<\/a>\u00a0TO SEE THE SCRIPT TO DO THAT!<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>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 git clone &#8211;depth 1 https:\/\/github.com\/tesseract-ocr\/tesseract.git Go to the new dir cd tesseract autogen .\/autogen.sh configure .\/configure &#8211;enable-debug Here i can&#8217;t configure it correctly because it always complained about leptonica 1.74 checking pkg-config is at least version 0.9.0&#8230; yes checking for LEPTONICA&#8230; no configure: error: Leptonica 1.74 &hellip; <a href=\"https:\/\/myprojects.advchaweb.com\/index.php\/2017\/02\/02\/installing-tesseract-ocr-on-ubuntu-14-04\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Installing Tesseract OCR on Ubuntu 14.04&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22,58,18],"tags":[],"class_list":["post-1691","post","type-post","status-publish","format-standard","hentry","category-c-2","category-tesseract","category-ubuntu-14-04"],"_links":{"self":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts\/1691","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/comments?post=1691"}],"version-history":[{"count":16,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts\/1691\/revisions"}],"predecessor-version":[{"id":1743,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts\/1691\/revisions\/1743"}],"wp:attachment":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/media?parent=1691"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/categories?post=1691"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/tags?post=1691"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}