harinath-palavalli / tesseract-ocr

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

Compile failed on Fedora Core 9 - 64 bits #130

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. ./configure succeeded
2. make failed

gcc -v = 
Utilisation des specs internes.
Target: x86_64-redhat-linux
Configuré avec: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla
--enable-bootstrap --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada
--enable-java-awt=gtk --disable-dssi --enable-plugin
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre
--enable-libgcj-multifile --enable-java-maintainer-mode
--with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib
--with-cpu=generic --build=x86_64-redhat-linux
Modèle de thread: posix
gcc version 4.3.0 20080428 (Red Hat 4.3.0-8) (GCC) 

What is the expected output? What do you see instead?
Compile failed in scrollview.cpp.

First because strncpy, strlen, strchar... are undefined.  The solution is
to change the include from #include <string> to #include <string.h>

Second, the build failed because INT_MAX is undefined.  I searched the
files and didn't found any define for this constant.  I found INT_MAX_X and
INT_MAX_Y set to DISPLAY_OFFSET defined in intproto.h
(./classify/intproto.h).  Is there a link between DISPLAY_OFFSET and
INT_MAX?  If not, how to solve the problem?

What version of the product are you using? On what operating system?
- Operating System: Fedora Core 9 64 bits on Intel Celeron Core Duo 2
- Tesseract v-2.03 downloaded from tesseract home page at google (not with
a checkout)

Thanks a lot.

Original issue reported on code.google.com by david.du...@gmail.com on 13 Jun 2008 at 3:34

GoogleCodeExporter commented 9 years ago
Will be fixed in 2.04

Original comment by theraysm...@gmail.com on 16 Jun 2008 at 9:53

GoogleCodeExporter commented 9 years ago
I am having the same problem on Fedora 9 32 bits.  I downloaded the previous 
version,
tesseract-2.01.tar.gz, which compiles but I get a Segmentation fault when I 
attempt
to use it.

Original comment by William....@gmail.com on 1 Jul 2008 at 1:35

GoogleCodeExporter commented 9 years ago
Here is a patch

Original comment by scribe...@gmail.com on 8 Sep 2008 at 11:35

Attachments:

GoogleCodeExporter commented 9 years ago
Same problem, same fix.

Please apply the patch in Comment 3.

Original comment by br...@frogmouth.net on 22 Oct 2008 at 9:59

GoogleCodeExporter commented 9 years ago

Original comment by theraysm...@gmail.com on 14 Nov 2008 at 6:13