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/CAJbzG8wZ8%3DAWRNe-_Rqc235NYGnVPiujrSOqCPJwJLf_0n0Zog%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

