You are probably missing the last step sudo make training-install
Usual Build and Install instructions git clone https://github.com/tesseract-ocr/tesseract/ cd tesseract ./autogen.sh ./configure make sudo make install sudo ldconfig make training sudo make training-install On Wed, Jun 5, 2019 at 6:56 PM Jingjing Lin <[email protected]> wrote: > In my tesseract/src/training folder, all these > > text2image > unicharset_extractor > set_unicharset_properties > combine_lang_model > lstmtraining > lstmeval > > are there. icluding .cpp, .o and without filename extension, three types > of them. > > 在 2019年6月5日星期三 UTC-4上午9:10:43,Jingjing Lin写道: >> >> Actually I found all the following are not there. Am I missing something? >> text2image >> unicharset_extractor >> set_unicharset_properties >> combine_lang_model >> lstmtraining >> lstmeval >> >> 在 2019年6月5日星期三 UTC-4上午7:37:57,Jingjing Lin写道: >>> >>> I think my make training went successfully by manually linking several >>> libraries via "LDFLAGS". The compiling gives no error anymore. But it seems >>> it is still not working because 'text2image' command is not recognized. Is >>> there anything else I need to do after 'make training'? Thanks. >>> Another question is, I installed tesseract via homebrew already. I don't >>> have to uninstall it and reinstall here, right? >>> >>> 在 2019年6月3日星期一 UTC-4下午1:48:51,zdenop写道: >>>> >>>> I am not familiar with Mac, but AFAIK there is no problem with >>>> compiling tesseract on Mac. >>>> >>>> Error mean that linker is not able to find&link text2image against >>>> pango-1.0 library... Try to add path to pango library to LDFLAGS. >>>> >>>> Zdenko >>>> >>>> >>>> po 3. 6. 2019 o 18:36 Jingjing Lin <[email protected]> napísal(a): >>>> >>>>> The above error was fixed with brew reinstall icu4c. >>>>> >>>>> now ./configure CC=gcc-8 CXX=g++-8 >>>>> CPPFLAGS=-I/usr/local/opt/icu4c/include LDFLAGS=-L/usr/local/opt/icu4c/lib >>>>> gives: >>>>> >>>>> checking pkg-config is at least version 0.9.0... yes >>>>> >>>>> checking for lept >= 1.74... yes >>>>> >>>>> checking for libarchive... yes >>>>> >>>>> checking for icu-uc >= 52.1... yes >>>>> >>>>> checking for icu-i18n >= 52.1... yes >>>>> >>>>> checking for pango >= 1.22.0... yes >>>>> >>>>> checking for cairo... yes >>>>> >>>>> >>>>> >>>>> but still running into another error when 'make training': >>>>> >>>>> >>>>> ld: library not found for -lpango-1.0 >>>>> >>>>> collect2: error: ld returned 1 exit status >>>>> >>>>> make[1]: *** [text2image] Error 1 >>>>> >>>>> make: *** [training] Error 2 >>>>> >>>>> >>>>> any idea what is happening? Thanks! >>>>> >>>>> >>>>> >>>>> >>>>> 在 2019年6月3日星期一 UTC-4上午10:35:59,Jingjing Lin写道: >>>>>> >>>>>> Thanks for your reply. >>>>>> Are these two related to icu4c? If yes 'brew info icu4c' gives me: >>>>>> >>>>>> icu4c: stable 64.2 (bottled) [keg-only] >>>>>> >>>>>> C/C++ and Java libraries for Unicode and globalization >>>>>> >>>>>> https://ssl.icu-project.org/ >>>>>> >>>>>> /usr/local/Cellar/icu4c/64.2 (257 files, 69.2MB) >>>>>> >>>>>> Poured from bottle on 2019-05-06 at 17:49:58 >>>>>> >>>>>> From: >>>>>> https://github.com/Homebrew/homebrew-core/blob/master/Formula/icu4c.rb >>>>>> >>>>>> ==> *Caveats* >>>>>> >>>>>> icu4c is keg-only, which means it was not symlinked into /usr/local, >>>>>> >>>>>> because macOS provides libicucore.dylib (but nothing else). >>>>>> >>>>>> >>>>>> If you need to have icu4c first in your PATH run: >>>>>> >>>>>> echo 'export PATH="/usr/local/opt/icu4c/bin:$PATH"' >> >>>>>> ~/.bash_profile >>>>>> >>>>>> echo 'export PATH="/usr/local/opt/icu4c/sbin:$PATH"' >> >>>>>> ~/.bash_profile >>>>>> >>>>>> >>>>>> For compilers to find icu4c you may need to set: >>>>>> >>>>>> export LDFLAGS="-L/usr/local/opt/icu4c/lib" >>>>>> >>>>>> export CPPFLAGS="-I/usr/local/opt/icu4c/include" >>>>>> >>>>>> >>>>>> For pkg-config to find icu4c you may need to set: >>>>>> >>>>>> export PKG_CONFIG_PATH="/usr/local/opt/icu4c/lib/pkgconfig" >>>>>> >>>>>> >>>>>> ==> *Analytics* >>>>>> >>>>>> install: 368,818 (30 days), 986,695 (90 days), 3,236,278 (365 days) >>>>>> >>>>>> install_on_request: 14,492 (30 days), 39,988 (90 days), 134,775 (365 >>>>>> days) >>>>>> >>>>>> build_error: 0 (30 days) >>>>>> >>>>>> >>>>>> Do you have any idea why './configure CC=gcc-8 CXX=g++-8 >>>>>> CPPFLAGS=-I/usr/local/opt/icu4c/include >>>>>> LDFLAGS=-L/usr/local/opt/icu4c/lib' >>>>>> would gives me: >>>>>> >>>>>> >>>>>> checking for icu-uc >= 52.1... no >>>>>> >>>>>> checking for icu-i18n >= 52.1... no >>>>>> >>>>>> Thanks! >>>>>> >>>>>> >>>>>> >>>>>> 在 2019年6月3日星期一 UTC-4上午1:21:10,zdenop写道: >>>>>>> >>>>>>> >>>>>>> po 3. 6. 2019 o 4:10 Jingjing Lin <[email protected]> napísal(a): >>>>>>> >>>>>>>> >>>>>>>> checking for icu-uc >= 52.1... no >>>>>>>> >>>>>>>> checking for icu-i18n >= 52.1... no >>>>>>>> >>>>>>> This is problem - you do now have icu / right version... >>>>>>> >>>>>>> >>>>>> -- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "tesseract-ocr" group. >>>>> To unsubscribe from this group and stop receiving emails from it, send >>>>> an email to [email protected]. >>>>> To post to this group, send email to [email protected]. >>>>> Visit this group at https://groups.google.com/group/tesseract-ocr. >>>>> To view this discussion on the web visit >>>>> https://groups.google.com/d/msgid/tesseract-ocr/d7db4028-7f44-42c5-adce-1e480b5f0089%40googlegroups.com >>>>> <https://groups.google.com/d/msgid/tesseract-ocr/d7db4028-7f44-42c5-adce-1e480b5f0089%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>> . >>>>> For more options, visit https://groups.google.com/d/optout. >>>>> >>>> -- > You received this message because you are subscribed to the Google Groups > "tesseract-ocr" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/tesseract-ocr. > To view this discussion on the web visit > https://groups.google.com/d/msgid/tesseract-ocr/a5bfac96-a114-4eb5-95ea-474d8e99daf1%40googlegroups.com > <https://groups.google.com/d/msgid/tesseract-ocr/a5bfac96-a114-4eb5-95ea-474d8e99daf1%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- ____________________________________________________________ भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com -- You received this message because you are subscribed to the Google Groups "tesseract-ocr" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/tesseract-ocr. To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/CAG2NduUhQ0ctUfrpMm8QLXTdzxm%3DvtEAFA2g5kMfPDVTK8UFgw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

