What version of gcc is there? Maybe have a look at this solution on stackoverflow[1]
[1] http://stackoverflow.com/questions/8640689/gcc-4-1-2-error-integer-constant-is-too-large-for-long-type Zdenko On Tue, Feb 17, 2015 at 7:05 PM, Markijan Blaschtschak <mblas...@gmail.com> wrote: > Hi all, > > I need an advise for the "make" script. The script fails, see below... > Any Ideas?? > > If I use the sources of the old RC1 candidate from 2014 > https://tesseract-ocr.googlecode.com/archive/3.03-rc1.tar.gz > the build runs without any problems: > DiskStation> tesseract -v > tesseract 3.03 > leptonica-1.71 > libjpeg 6b : libpng 1.2.44 : libtiff 3.9.5 : zlib 1.2.5 > > > I'd like to use the head version of tesseract. So I followed this > discription here: https://code.google.com/p/tesseract-ocr/wiki/Compiling > for compiling the head version. (git clone > https://code.google.com/p/tesseract-ocr/) > The scripts > DiskStation> ./autogen.sh > and > DiskStation> ./configure > > run without errors. > But the make script fails: > > DiskStation> make > make all-recursive > make[1]: Entering directory `/opt/src/tesseract-ocr' > Making all in ccutil > make[2]: Entering directory `/opt/src/tesseract-ocr/ccutil' > make[3]: Entering directory `/opt/src/tesseract-ocr/ccutil' > depbase=`echo ambigs.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\ > /opt/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H > -I. -I.. -O2 -DNDEBUG -I/usr/local/include/leptonica > -DTESSDATA_PREFIX=/usr/local/share/ -MT ambigs.lo -MD -MP -MF > $depbase.Tpo -c -o ambigs.lo ambigs.cpp &&\ > mv -f $depbase.Tpo $depbase.Plo > libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -O2 -DNDEBUG > -I/usr/local/include/leptonica -DTESSDATA_PREFIX=/usr/local/share/ -MT > ambigs.lo -MD -MP -MF .deps/ambigs.Tpo -c ambigs.cpp -fPIC -DPIC -o > .libs/ambigs.o > In file included from genericvector.h:29, > from params.h:25, > from tprintf.h:23, > from ambigs.h:25, > from ambigs.cpp:21: > helpers.h:64: error: integer constant is too large for 'long' type > helpers.h:65: error: integer constant is too large for 'long' type > make[3]: *** [ambigs.lo] Error 1 > make[3]: Leaving directory `/opt/src/tesseract-ocr/ccutil' > make[2]: *** [all-recursive] Error 1 > make[2]: Leaving directory `/opt/src/tesseract-ocr/ccutil' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/opt/src/tesseract-ocr' > make: *** [all] Error 2 > > > All needed libraries and leptonica are present. And the build of > 3.03-rc1.tar.gz succeded. > > DiskStation> ipkg install libpng > Package libpng (1.2.44-1) installed in root is up to date. > Nothing to be done > Successfully terminated. > > DiskStation> ipkg install libjpeg > Package libjpeg (6b-3) installed in root is up to date. > Nothing to be done > Successfully terminated. > > DiskStation> ipkg install libtiff > Package libtiff (3.9.5-1) installed in root is up to date. > Nothing to be done > Successfully terminated. > > DiskStation> ipkg install zlib > Package zlib (1.2.5-1) installed in root is up to date. > Nothing to be done > Successfully terminated. > > If I use the old RC1 candidate from 2014 > https://tesseract-ocr.googlecode.com/archive/3.03-rc1.tar.gz > the build runs without any problems. > > Any ideas? > > Best regards, > Markijan > > -- > 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 post to this group, send email to tesseract-ocr@googlegroups.com. > Visit this group at http://groups.google.com/group/tesseract-ocr. > To view this discussion on the web visit > https://groups.google.com/d/msgid/tesseract-ocr/a0c7159a-9c9c-4fea-af2d-6d0da5a6b597%40googlegroups.com > <https://groups.google.com/d/msgid/tesseract-ocr/a0c7159a-9c9c-4fea-af2d-6d0da5a6b597%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 post to this group, send email to tesseract-ocr@googlegroups.com. Visit this group at http://groups.google.com/group/tesseract-ocr. To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/CAJbzG8xpCzL%2BM19P4J9j5uKuvaWD2QQVX2BYQUvKjT1EvOQn4g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.