I have no Mac but:

   1. If you are really interested in help you should not ignore advice you
   received -
   https://github.com/tesseract-ocr/tessdoc/issues/69#issuecomment-1016133236
   2. Your problem is not tesseract related - as you see you are not able
   to run test procedures of autotools (./configure): error: cannot run C++
   compiled programs.
   3. Do not hide details - provide full information for reproducing
   problems. E.g.  (venv3)  indicates that you are building a tesseract in a
   python virtual environment. Why???  tesseract is not a python package. Did
   you try it in the 'normal' environment?



Zdenko


st 19. 1. 2022 o 8:22 Kyle Foley <kylefoley...@gmail.com> napĂ­sal(a):

> 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
> <https://groups.google.com/d/msgid/tesseract-ocr/d34b6aee-5a78-492d-a99e-495b36021879n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAJbzG8xvLisXGvhCJHwfew2K2eiEGNjV37QG2D9%2BHnbhWuVK2w%40mail.gmail.com.

Reply via email to