boxchar.cpp:33:10: fatal error: unicode/uchar.h: No such file or directory
#include "unicode/uchar.h" // from libicu
Below might be some helpful information for you to help me figure out what is happening:
when running ./configure CC=gcc-8 CXX=g++-8 CPPFLAGS=-I/usr/local/opt/icu4c/include LDFLAGS=-L/usr/local/opt/icu4c/lib, I got the following result relating to configuration:
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... no
checking for icu-i18n >= 52.1... no
checking for pango >= 1.22.0... yes
checking for cairo... yes
Training tools can be built and installed with:
$ make training
$ sudo make training-install
I'm wondering whether I got the error because icu-uc and icu-i18n are missing? Are these two related to icu4c? I did install icu4c however. I also set:
export PKG_CONFIG_PATH=\ $(brew --prefix)/lib/pkgconfig:\ $(brew --prefix)/opt/libarchive/lib/pkgconfig:\ $(brew --prefix)/opt/icu4c/lib/pkgconfig:\ $(brew --prefix)/opt/libffi/lib/pkgconfig ./configure
Anybody knows why? Thanks in advance for the help.
checking for icu-uc >= 52.1... no
checking for icu-i18n >= 52.1... no
icu4c: stable 64.2 (bottled) [keg-only]
C/C++ and Java libraries for Unicode and globalization
/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!
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!
--
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 tesseract-oc...@googlegroups.com.
To post to this group, send email to tesser...@googlegroups.com.
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.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to tesser...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-oc...@googlegroups.com.
To post to this group, send email to tesser...@googlegroups.com.
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/db5d3c9d-da8e-4168-b401-3ab622037ba7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
sudo make training-install
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
To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-oc...@googlegroups.com.
To post to this group, send email to tesser...@googlegroups.com.
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.
For more options, visit https://groups.google.com/d/optout.