Listen, I can't be an expert on everything.  Just because I can use 
pytesseract to OCR some images does not mean I know the first thing about 
image processing.  My specialty is Latin, metaphysics and logic.  I don't 
have time to know all of these details about software.  I can't know 
everything.  So if you would be kind enough to explain some things to me on 
my level and help me out rather than insulting me because I committed the 
unforgiveable sin of not understanding tesseract I would appreciate it.  I 
tried to compile the tesseract not in a python environment but I basically 
got the same result. 

I had to start out in the virtual environment because that junk software 
google drive storage is messing up my files such that i can't cd into them. 

(venv3) Admins-MacBook-Pro-4:pcode kylefoley$ cd tesseract
(venv3) Admins-MacBook-Pro-4:tesseract kylefoley$ de

now i'm out of the virtual environment.

Admins-MacBook-Pro-4:tesseract kylefoley$ ./autogen.sh
Running aclocal
Running /opt/local/bin/glibtoolize
glibtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'config'.
glibtoolize: copying file 'config/ltmain.sh'
glibtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
glibtoolize: copying file 'm4/libtool.m4'
glibtoolize: copying file 'm4/ltoptions.m4'
glibtoolize: copying file 'm4/ltsugar.m4'
glibtoolize: copying file 'm4/ltversion.m4'
glibtoolize: copying file 'm4/lt~obsolete.m4'
Running aclocal
Running autoconf
Running autoheader
Running automake --add-missing --copy
configure.ac:407: installing 'config/compile'
configure.ac:27: installing 'config/missing'
Makefile.am: installing 'config/depcomp'

All done.
To build the software now, do something like:

$ ./configure [--enable-debug] [...other options]
Admins-MacBook-Pro-4:tesseract kylefoley$ mkdir build
mkdir: build: File exists
Admins-MacBook-Pro-4:tesseract kylefoley$ cd build
Admins-MacBook-Pro-4:build kylefoley$ make -j
make: *** No targets specified and no makefile found.  Stop.
Admins-MacBook-Pro-4:build kylefoley$ make training
make: *** No rule to make target `training'.  Stop.
Admins-MacBook-Pro-4:build kylefoley$ sudo make training-install
Password:
make: *** No rule to make target `training-install'.  Stop.

I have tesseract 4.0 installed and working but I installed it years ago and 
have no idea how I did it back then. What I would really like to know is 
what folder I should be when I run.

git clone https://github.com/tesseract-ocr/tesseract/

as for 
>If you are really interested in help you should not ignore advice you 
received - 
https://github.com/tesseract-ocr/tessdoc/issues/69#issuecomment-1016133236

you cannot ignore advice you don't understand.  If I were to tell you in an 
obscure American indian language 'ju mani tank owachi' and you failed to 
carry out my advice, you would not be ignoring me.  When he wrote: "You 
should not install gcc, but use the default compiler on macOS."  he really 
wrongly assumed that I know how to do that.  You don't have to compile 
things in Pythong which is the only language that I really understand so I 
don't know what that means, nor what to do with it.  Like more than 90% of 
software writers he wrongly understands that everyone understands computers 
just like he does. 

as for 
>our 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.

again, I don't know what that means.  I can't be an expert on everything.  
If you're really here to help people then please do not assume that they 
understand everything as well as you do, otherwise they wouldn't be here 
asking for help. 




On Thursday, January 20, 2022 at 1:16:09 AM UTC-5 zdenop wrote:

> 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 <[email protected]> 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 [email protected].
>> 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/401811e0-bae0-47ae-864b-9a07dd64fc17n%40googlegroups.com.

Reply via email to