You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(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 also tried the solution mentioned here to no avail:
I'm also a little nervous about where tesseract was cloned. I'm using pytesseract. How is pytesseract going to find out where I put tesseract. According to the above instructions, it made me put tesseract in a strange place. Shouldn't I put it in the same place that I put tesseract 4.0? I knew where that was earlier today but I cannot find that now.
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 also tried the solution mentioned here to no avail:
#65
The text was updated successfully, but these errors were encountered: