I was able to go through all of the steps installing tesseract 5.0 with 
Homebrew as listed here

# Packages which are always needed.
brew install automake autoconf libtool
brew install pkgconfig
brew install icu4c
brew install leptonica
# Packages required for training tools.
brew install pango
# Optional packages for extra features.
brew install libarchive
# Optional package for builds using g++.
brew install gcc

I then completed the following steps:

git clone https://github.com/tesseract-ocr/tesseract/
cd tesseract
./autogen.sh
mkdir build
cd build

I then ran into problems:

(venv3) Admins-MacBook-Pro-4:build kylefoley$ sudo make install
make: *** No rule to make target `install'.  Stop.
(venv3) Admins-MacBook-Pro-4:build kylefoley$ make training
make: *** No rule to make target `training'.  Stop.
(venv3) Admins-MacBook-Pro-4:build kylefoley$ sudo make training-install
make: *** No rule to make target `training-install'.  Stop.
(venv3) Admins-MacBook-Pro-4:build kylefoley$ ../configure 
PKG_CONFIG_PATH=/usr/local/opt/icu4c/lib/pkgconfig:/usr/local/opt/libarchive/lib/pkgconfig
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... configure: error: in 
`/volumes/googledrive/my drive/laptop/documents/pcode/tesseract/build':
configure: error: cannot run C++ compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
(venv3) Admins-MacBook-Pro-4:build kylefoley$ configure --disable-shared 
'CXXFLAGS=-g -O2 -Wall' PKG_CONFIG_PATH=$(brew 
--prefix)/opt/icu4c/lib/pkgconfig:$(brew 
--prefix)/opt/libarchive/lib/pkgconfig:$(brew 
--prefix)/Library/Homebrew/os/mac/pkgconfig/11
-bash: configure: command not found
(venv3) Admins-MacBook-Pro-4:build kylefoley$ ../configure --disable-shared 
'CXXFLAGS=-g -O2 -Wall' PKG_CONFIG_PATH=$(brew 
--prefix)/opt/icu4c/lib/pkgconfig:$(brew 
--prefix)/opt/libarchive/lib/pkgconfig:$(brew 
--prefix)/Library/Homebrew/os/mac/pkgconfig/11
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... configure: error: in 
`/volumes/googledrive/my drive/laptop/documents/pcode/tesseract/build':
configure: error: cannot run C++ compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details

In the above I used a different order but that was after I had tried them 
in the recommended order.

I was also told "You should not install gcc, but use the default compiler 
on macOS."  but I don't know what this means.

-- 
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-ocr+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/d34b6aee-5a78-492d-a99e-495b36021879n%40googlegroups.com.

Reply via email to