AmitGorvadiya / tesseract-ocr

Automatically exported from code.google.com/p/tesseract-ocr
Other
0 stars 0 forks source link

make fails on Mac OS10.6 snow leopard #252

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download the Source
2. Run ./configure
3. Run make

What is the expected output? What do you see instead?
Should build the source instead:

Making all in ccstruct
source='blobbox.cpp' object='blobbox.o' libtool=no \
    DEPDIR=.deps depmode=none /bin/sh ../config/depcomp \
    g++ -DHAVE_CONFIG_H -I. -I..  -I../ccutil -I../cutil -I../image -I../viewer   -g -O2 -c -o 
blobbox.o blobbox.cpp
/bin/sh: ../config/depcomp: No such file or directory

What version of the product are you using? On what operating system?
Tesseract 2.04, MacOS X 10.6.1

Please provide any additional information below.
gcc 4.2 apple, compiled  (on 10.4) lib is hosed on snow leopard as well.

Any help appreciated
Cheers Bill

Original issue reported on code.google.com by marinerc...@gmail.com on 2 Oct 2009 at 12:59

GoogleCodeExporter commented 9 years ago
After running ./configure try running autoreconf.  It generated config/depcomp 
for me.

Original comment by ryan.fai...@gmail.com on 17 Oct 2009 at 5:26

GoogleCodeExporter commented 9 years ago
Sorry I was wrong I had that working for a different scenario.  

I did automake --add-missing after configure

Original comment by ryan.fai...@gmail.com on 17 Oct 2009 at 5:35

GoogleCodeExporter commented 9 years ago
I saw this on FreeBSD 6 as well. I'm installing from svn, and it turns out the 
INSTALL.SVN 
file instructs one to run runautoconf before running configure:

    http://code.google.com/p/tesseract-ocr/source/browse/trunk/INSTALL.SVN

Here is what that does on my system:

    prompt$ ./runautoconf
    Running aclocal
    Running autoheader
    Running autoconf
    Running automake --add-missing --copy
    All done.
    To build the software now, do something like:

    $ ./configure [--with-debug] [...other options]
    $ make
    prompt$

I'm not sure whether this script is included in 2.04, but I would guess that 
the 'automake 
--add-missing' call is what matters, as Ryan suggests. It would be nice not to 
require that 
step on OS X/FreeBSD in released versions.

Original comment by whit537@gmail.com on 10 Nov 2009 at 8:10

GoogleCodeExporter commented 9 years ago
On a Macbook Air running 10.6.2, the following worked for me on the first try:

Downloaded tesseract-2.04 and placed it at the root of my boot dirve (/).
In the directory /tesseract-2.04 I issues thee following standard commands:

./configure
make
sudo make install

I used all of the defaults so that the executable is at 
/usr/local/bin/tesseract.

In my haste I neglected to but the contents of tessdata (from 
tesseract-2.00.eng.tar) into the tessdata 
subdirectory of /tesseract-2.04, so I copied them into 
/usr/local/share/tessdata after the install.  Also had to 
change permissions.  Avoid this by following the README!

Original comment by rhhues...@gmail.com on 17 Nov 2009 at 9:11

GoogleCodeExporter commented 9 years ago
Thank you, I had the same problem with Ubuntu 9.04. 
After ./configure I did autoreconf, then it suggested me to do automake 
--add-missing.
That works. 

Original comment by zanni.an...@gmail.com on 26 Nov 2009 at 2:24

GoogleCodeExporter commented 9 years ago
Fixed

Original comment by theraysm...@gmail.com on 20 May 2010 at 12:55