Hi all,
so. now i had time to document this.
please note there is loads of messages and things. tried to get it as
detailed as possible.
Here we go.
I installed the whole cygwin suite and i installed leptonica and webp as
stated in the article on
http://code.google.com/p/python-tesseract/wiki/HowToCompilePythonTesseract
And here are my things i got:
step 1: running autogen.sh
$ ./autogen.sh
Running aclocal
Running libtoolize
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `config'.
libtoolize: copying file `config/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
Running autoheader
Running automake --add-missing --copy
configure.ac:16: installing `config/config.guess'
configure.ac:16: installing `config/config.sub'
configure.ac:156: installing `config/install-sh'
configure.ac:156: installing `config/missing'
api/Makefile.am: installing `config/depcomp'
Running autoconf
All done.
To build the software now, do something like:
$ ./configure [--with-debug] [...other options]
$ make
step 2: running configure:
$ ./configure --prefix=c:/tesseract --disable-shared
cygwin warning:
MS-DOS style path detected: c:/tesseract/share/config.site
Preferred POSIX equivalent is: /cygdrive/c/tesseract/share/config.site
CYGWIN environment variable option "nodosfilewarning" turns off this
warning.
Consult the user's guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
checking build system type... i686-pc-cygwin
checking host system type... i686-pc-cygwin
checking --enable-graphics argument... yes
checking --enable-multiple-libraries argument... no
checking for cl.exe... no
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to print strings... printf
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/i686-pc-cygwin/bin/ld.exe
checking if the linker (/usr/i686-pc-cygwin/bin/ld.exe) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 8192
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert i686-pc-cygwin file names to i686-pc-cygwin
format... fu
nc_convert_file_noop
checking how to convert i686-pc-cygwin file names to toolchain format...
func_co
nvert_file_noop
checking for /usr/i686-pc-cygwin/bin/ld.exe option to reload object
files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... file_magic ^x86 archive
import|
^x86 DLL
checking for dlltool... dlltool
checking how to associate runtime and link libraries...
func_cygming_dll_for_imp
lib
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking for gawk... gawk
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -DDLL_EXPORT -DPIC
checking if gcc PIC flag -DDLL_EXPORT -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/i686-pc-cygwin/bin/ld.exe)
supports shared
libraries... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/i686-pc-cygwin/bin/ld.exe
checking if the linker (/usr/i686-pc-cygwin/bin/ld.exe) is GNU ld... yes
checking whether the g++ linker (/usr/i686-pc-cygwin/bin/ld.exe)
supports shared
libraries... yes
checking for g++ option to produce PIC... -DDLL_EXPORT -DPIC
checking if g++ PIC flag -DDLL_EXPORT -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/i686-pc-cygwin/bin/ld.exe)
supports shared
libraries... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking dependency style of g++... gcc3
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether byte ordering is bigendian... no
checking for sem_init in -lpthread... yes
checking for ANSI C header files... (cached) yes
checking whether time.h and sys/time.h may both be included... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking sys/ipc.h usability... yes
checking sys/ipc.h presence... yes
checking for sys/ipc.h... yes
checking sys/shm.h usability... yes
checking sys/shm.h presence... yes
checking for sys/shm.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking allheaders.h usability... no
checking allheaders.h presence... no
checking for allheaders.h... no
checking for stdbool.h that conforms to C99... yes
checking for _Bool... no
checking whether #! works in shell scripts... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for wchar_t... yes
checking for long long int... yes
checking for mbstate_t... yes
checking for size_t... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... yes
checking for getpagesize... yes
checking for working mmap... yes
checking for pid_t... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for strerror... yes
checking for vsnprintf... yes
checking for gethostname... yes
checking for strchr... yes
checking for memcpy... yes
checking for acos... yes
checking for asin... yes
checking for leptonica... yes
checking for pixCreate in -llept... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating api/Makefile
config.status: creating ccmain/Makefile
config.status: creating ccstruct/Makefile
config.status: creating ccutil/Makefile
config.status: creating classify/Makefile
config.status: creating cube/Makefile
config.status: creating cutil/Makefile
config.status: creating dict/Makefile
config.status: creating image/Makefile
config.status: creating neural_networks/runtime/Makefile
config.status: creating textord/Makefile
config.status: creating viewer/Makefile
config.status: creating wordrec/Makefile
config.status: creating training/Makefile
config.status: creating tessdata/Makefile
config.status: creating tessdata/configs/Makefile
config.status: creating tessdata/tessconfigs/Makefile
config.status: creating testing/Makefile
config.status: creating java/Makefile
config.status: creating java/com/Makefile
config.status: creating java/com/google/Makefile
config.status: creating java/com/google/scrollview/Makefile
config.status: creating java/com/google/scrollview/events/Makefile
config.status: creating java/com/google/scrollview/ui/Makefile
config.status: creating doc/Makefile
config.status: creating config_auto.h
config.status: executing libtool commands
config.status: executing depfiles commands
Configuration is done.
You can now build tesseract by running:
% make
step 3: running make
$ make -j 4
quadratc.Tpo -c quadratc.cpp -o quadratc.o
mv -f .deps/publictypes.Tpo .deps/publictypes.Plo
mv -f .deps/polyblk.Tpo .deps/polyblk.Plo
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
-I.. -I
../ccutil -I../cutil -I../image -I../viewer -I/usr/include/leptonica
-g -O2 -M
T quspline.lo -MD -MP -MF .deps/quspline.Tpo -c -o quspline.lo quspline.cpp
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
-I.. -I
../ccutil -I../cutil -I../image -I../viewer -I/usr/include/leptonica
-g -O2 -M
T ratngs.lo -MD -MP -MF .deps/ratngs.Tpo -c -o ratngs.lo ratngs.cpp
mv -f .deps/quadlsq.Tpo .deps/quadlsq.Plo
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
-I.. -I
../ccutil -I../cutil -I../image -I../viewer -I/usr/include/leptonica
-g -O2 -M
T rect.lo -MD -MP -MF .deps/rect.Tpo -c -o rect.lo rect.cpp
mv -f .deps/quadratc.Tpo .deps/quadratc.Plo
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
-I.. -I
../ccutil -I../cutil -I../image -I../viewer -I/usr/include/leptonica
-g -O2 -M
T rejctmap.lo -MD -MP -MF .deps/rejctmap.Tpo -c -o rejctmap.lo rejctmap.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I../ccutil -I../cutil
-I../imag
e -I../viewer -I/usr/include/leptonica -g -O2 -MT quspline.lo -MD -MP
-MF .deps/
quspline.Tpo -c quspline.cpp -o quspline.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I../ccutil -I../cutil
-I../imag
e -I../viewer -I/usr/include/leptonica -g -O2 -MT ratngs.lo -MD -MP -MF
.deps/ra
tngs.Tpo -c ratngs.cpp -o ratngs.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I../ccutil -I../cutil
-I../imag
e -I../viewer -I/usr/include/leptonica -g -O2 -MT rect.lo -MD -MP -MF
.deps/rect
.Tpo -c rect.cpp -o rect.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I../ccutil -I../cutil
-I../imag
e -I../viewer -I/usr/include/leptonica -g -O2 -MT rejctmap.lo -MD -MP
-MF .deps/
rejctmap.Tpo -c rejctmap.cpp -o rejctmap.o
mv -f .deps/quspline.Tpo .deps/quspline.Plo
mv -f .deps/rect.Tpo .deps/rect.Plo
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
-I.. -I
../ccutil -I../cutil -I../image -I../viewer -I/usr/include/leptonica
-g -O2 -M
T seam.lo -MD -MP -MF .deps/seam.Tpo -c -o seam.lo seam.cpp
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
-I.. -I
../ccutil -I../cutil -I../image -I../viewer -I/usr/include/leptonica
-g -O2 -M
T split.lo -MD -MP -MF .deps/split.Tpo -c -o split.lo split.cpp
mv -f .deps/ratngs.Tpo .deps/ratngs.Plo
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
-I.. -I
../ccutil -I../cutil -I../image -I../viewer -I/usr/include/leptonica
-g -O2 -M
T statistc.lo -MD -MP -MF .deps/statistc.Tpo -c -o statistc.lo statistc.cpp
mv -f .deps/rejctmap.Tpo .deps/rejctmap.Plo
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
-I.. -I
../ccutil -I../cutil -I../image -I../viewer -I/usr/include/leptonica
-g -O2 -M
T stepblob.lo -MD -MP -MF .deps/stepblob.Tpo -c -o stepblob.lo stepblob.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I../ccutil -I../cutil
-I../imag
e -I../viewer -I/usr/include/leptonica -g -O2 -MT split.lo -MD -MP -MF
.deps/spl
it.Tpo -c split.cpp -o split.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I../ccutil -I../cutil
-I../imag
e -I../viewer -I/usr/include/leptonica -g -O2 -MT seam.lo -MD -MP -MF
.deps/seam
.Tpo -c seam.cpp -o seam.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I../ccutil -I../cutil
-I../imag
e -I../viewer -I/usr/include/leptonica -g -O2 -MT statistc.lo -MD -MP
-MF .deps/
statistc.Tpo -c statistc.cpp -o statistc.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I../ccutil -I../cutil
-I../imag
e -I../viewer -I/usr/include/leptonica -g -O2 -MT stepblob.lo -MD -MP
-MF .deps/
stepblob.Tpo -c stepblob.cpp -o stepblob.o
mv -f .deps/split.Tpo .deps/split.Plo
mv -f .deps/seam.Tpo .deps/seam.Plo
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
-I.. -I
../ccutil -I../cutil -I../image -I../viewer -I/usr/include/leptonica
-g -O2 -M
T vecfuncs.lo -MD -MP -MF .deps/vecfuncs.Tpo -c -o vecfuncs.lo vecfuncs.cpp
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
-I.. -I
../ccutil -I../cutil -I../image -I../viewer -I/usr/include/leptonica
-g -O2 -M
T werd.lo -MD -MP -MF .deps/werd.Tpo -c -o werd.lo werd.cpp
mv -f .deps/statistc.Tpo .deps/statistc.Plo
mv -f .deps/stepblob.Tpo .deps/stepblob.Plo
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I../ccutil -I../cutil
-I../imag
e -I../viewer -I/usr/include/leptonica -g -O2 -MT vecfuncs.lo -MD -MP
-MF .deps/
vecfuncs.Tpo -c vecfuncs.cpp -o vecfuncs.olibtool: compile: g++
-DHAVE_CONFIG_H
-I. -I.. -I../ccutil -I../cutil -I../image -I../viewer
-I/usr/include/leptonica
-g -O2 -MT werd.lo -MD -MP -MF .deps/werd.Tpo -c werd.cpp -o werd.o
mv -f .deps/vecfuncs.Tpo .deps/vecfuncs.Plo
mv -f .deps/werd.Tpo .deps/werd.Plo
/bin/sh ../libtool --tag=CXX --mode=link g++ -g -O2 -o
libtesseract_ccst
ruct.la blobbox.lo blobs.lo blread.lo boxread.lo boxword.lo
ccstruct.lo coutln
.lo detlinefit.lo dppoint.lo fontinfo.lo genblob.lo linlsq.lo matrix.lo
mod128
.lo normalis.lo ocrblock.lo ocrpara.lo ocrrow.lo otsuthr.lo pageres.lo
pdblock.
lo points.lo polyaprx.lo polyblk.lo publictypes.lo quadlsq.lo
quadratc.lo quspl
ine.lo ratngs.lo rect.lo rejctmap.lo seam.lo split.lo statistc.lo
stepblob.lo
vecfuncs.lo werd.lo -llept -lpthread
libtool: link: ar cru .libs/libtesseract_ccstruct.a blobbox.o blobs.o
blread.o
boxread.o boxword.o ccstruct.o coutln.o detlinefit.o dppoint.o
fontinfo.o genblo
b.o linlsq.o matrix.o mod128.o normalis.o ocrblock.o ocrpara.o ocrrow.o
otsuthr.
o pageres.o pdblock.o points.o polyaprx.o polyblk.o publictypes.o
quadlsq.o quad
ratc.o quspline.o ratngs.o rect.o rejctmap.o seam.o split.o statistc.o
stepblob.
o vecfuncs.o werd.o
libtool: link: ranlib .libs/libtesseract_ccstruct.a
libtool: link: ( cd ".libs" && rm -f "libtesseract_ccstruct.la" && ln -s
"../lib
tesseract_ccstruct.la" "libtesseract_ccstruct.la" )
make[3]: Leaving directory `/cygdrive/c/tesseractsvn/ccstruct'
make[2]: Leaving directory `/cygdrive/c/tesseractsvn/ccstruct'
Making all in dict
make[2]: Entering directory `/cygdrive/c/tesseractsvn/dict'
make[3]: Entering directory `/cygdrive/c/tesseractsvn/dict'
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
-I.. -I
../cutil -I../ccutil -I../ccstruct -I../viewer -I../image
-I/usr/include/lepton
ica -g -O2 -MT context.lo -MD -MP -MF .deps/context.Tpo -c -o
context.lo contex
t.cpp
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
-I.. -I
../cutil -I../ccutil -I../ccstruct -I../viewer -I../image
-I/usr/include/lepton
ica -g -O2 -MT dawg.lo -MD -MP -MF .deps/dawg.Tpo -c -o dawg.lo dawg.cpp
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
-I.. -I
../cutil -I../ccutil -I../ccstruct -I../viewer -I../image
-I/usr/include/lepton
ica -g -O2 -MT dict.lo -MD -MP -MF .deps/dict.Tpo -c -o dict.lo dict.cpp
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
-I.. -I
../cutil -I../ccutil -I../ccstruct -I../viewer -I../image
-I/usr/include/lepton
ica -g -O2 -MT hyphen.lo -MD -MP -MF .deps/hyphen.Tpo -c -o hyphen.lo
hyphen.cp
p
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I../cutil -I../ccutil
-I../ccst
ruct -I../viewer -I../image -I/usr/include/leptonica -g -O2 -MT
context.lo -MD -
MP -MF .deps/context.Tpo -c context.cpp -o context.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I../cutil -I../ccutil
-I../ccst
ruct -I../viewer -I../image -I/usr/include/leptonica -g -O2 -MT dawg.lo
-MD -MP
-MF .deps/dawg.Tpo -c dawg.cpp -o dawg.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I../cutil -I../ccutil
-I../ccst
ruct -I../viewer -I../image -I/usr/include/leptonica -g -O2 -MT
hyphen.lo -MD -M
P -MF .deps/hyphen.Tpo -c hyphen.cpp -o hyphen.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I../cutil -I../ccutil
-I../ccst
ruct -I../viewer -I../image -I/usr/include/leptonica -g -O2 -MT dict.lo
-MD -MP
-MF .deps/dict.Tpo -c dict.cpp -o dict.o
mv -f .deps/context.Tpo .deps/context.Plo
mv -f .deps/hyphen.Tpo .deps/hyphen.Plo
mv -f .deps/dawg.Tpo .deps/dawg.Plo
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
-I.. -I
../cutil -I../ccutil -I../ccstruct -I../viewer -I../image
-I/usr/include/lepton
ica -g -O2 -MT permdawg.lo -MD -MP -MF .deps/permdawg.Tpo -c -o
permdawg.lo per
mdawg.cpp
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
-I.. -I
../cutil -I../ccutil -I../ccstruct -I../viewer -I../image
-I/usr/include/lepton
ica -g -O2 -MT permute.lo -MD -MP -MF .deps/permute.Tpo -c -o
permute.lo permut
e.cpp
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
-I.. -I
../cutil -I../ccutil -I../ccstruct -I../viewer -I../image
-I/usr/include/lepton
ica -g -O2 -MT states.lo -MD -MP -MF .deps/states.Tpo -c -o states.lo
states.cp
p
mv -f .deps/dict.Tpo .deps/dict.Plo
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
-I.. -I
../cutil -I../ccutil -I../ccstruct -I../viewer -I../image
-I/usr/include/lepton
ica -g -O2 -MT stopper.lo -MD -MP -MF .deps/stopper.Tpo -c -o
stopper.lo stoppe
r.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I../cutil -I../ccutil
-I../ccst
ruct -I../viewer -I../image -I/usr/include/leptonica -g -O2 -MT
permute.lo -MD -
MP -MF .deps/permute.Tpo -c permute.cpp -o permute.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I../cutil -I../ccutil
-I../ccst
ruct -I../viewer -I../image -I/usr/include/leptonica -g -O2 -MT
permdawg.lo -MD
-MP -MF .deps/permdawg.Tpo -c permdawg.cpp -o permdawg.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I../cutil -I../ccutil
-I../ccst
ruct -I../viewer -I../image -I/usr/include/leptonica -g -O2 -MT
states.lo -MD -M
P -MF .deps/states.Tpo -c states.cpp -o states.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I../cutil -I../ccutil
-I../ccst
ruct -I../viewer -I../image -I/usr/include/leptonica -g -O2 -MT
stopper.lo -MD -
MP -MF .deps/stopper.Tpo -c stopper.cpp -o stopper.o
mv -f .deps/states.Tpo .deps/states.Plo
mv -f .deps/permdawg.Tpo .deps/permdawg.Plo
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
-I.. -I
../cutil -I../ccutil -I../ccstruct -I../viewer -I../image
-I/usr/include/lepton
ica -g -O2 -MT trie.lo -MD -MP -MF .deps/trie.Tpo -c -o trie.lo trie.cpp
mv -f .deps/permute.Tpo .deps/permute.Plo
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I../cutil -I../ccutil
-I../ccst
ruct -I../viewer -I../image -I/usr/include/leptonica -g -O2 -MT trie.lo
-MD -MP
-MF .deps/trie.Tpo -c trie.cpp -o trie.o
mv -f .deps/stopper.Tpo .deps/stopper.Plo
mv -f .deps/trie.Tpo .deps/trie.Plo
/bin/sh ../libtool --tag=CXX --mode=link g++ -g -O2 -o
libtesseract_dict.
la context.lo dawg.lo dict.lo hyphen.lo permdawg.lo permute.lo
states.lo stopp
er.lo trie.lo -llept -lpthread
libtool: link: ar cru .libs/libtesseract_dict.a context.o dawg.o dict.o
hyphen.
o permdawg.o permute.o states.o stopper.o trie.o
libtool: link: ranlib .libs/libtesseract_dict.a
libtool: link: ( cd ".libs" && rm -f "libtesseract_dict.la" && ln -s
"../libtess
eract_dict.la" "libtesseract_dict.la" )
make[3]: Leaving directory `/cygdrive/c/tesseractsvn/dict'
make[2]: Leaving directory `/cygdrive/c/tesseractsvn/dict'
Making all in classify
make[2]: Entering directory `/cygdrive/c/tesseractsvn/classify'
make[3]: Entering directory `/cygdrive/c/tesseractsvn/classify'
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
-I.. -I
../cutil -I../ccutil -I../ccstruct -I../dict -I../image -I../viewer
-I/usr/inc
lude/leptonica -g -O2 -MT adaptive.lo -MD -MP -MF .deps/adaptive.Tpo -c
-o adap
tive.lo adaptive.cpp
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
-I.. -I
../cutil -I../ccutil -I../ccstruct -I../dict -I../image -I../viewer
-I/usr/inc
lude/leptonica -g -O2 -MT adaptmatch.lo -MD -MP -MF
.deps/adaptmatch.Tpo -c -o
adaptmatch.lo adaptmatch.cpp
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
-I.. -I
../cutil -I../ccutil -I../ccstruct -I../dict -I../image -I../viewer
-I/usr/inc
lude/leptonica -g -O2 -MT blobclass.lo -MD -MP -MF .deps/blobclass.Tpo
-c -o bl
obclass.lo blobclass.cpp
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
-I.. -I
../cutil -I../ccutil -I../ccstruct -I../dict -I../image -I../viewer
-I/usr/inc
lude/leptonica -g -O2 -MT chartoname.lo -MD -MP -MF
.deps/chartoname.Tpo -c -o
chartoname.lo chartoname.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I../cutil -I../ccutil
-I../ccst
ruct -I../dict -I../image -I../viewer -I/usr/include/leptonica -g -O2
-MT adapti
ve.lo -MD -MP -MF .deps/adaptive.Tpo -c adaptive.cpp -o adaptive.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I../cutil -I../ccutil
-I../ccst
ruct -I../dict -I../image -I../viewer -I/usr/include/leptonica -g -O2
-MT adaptm
atch.lo -MD -MP -MF .deps/adaptmatch.Tpo -c adaptmatch.cpp -o adaptmatch.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I../cutil -I../ccutil
-I../ccst
ruct -I../dict -I../image -I../viewer -I/usr/include/leptonica -g -O2
-MT charto
name.lo -MD -MP -MF .deps/chartoname.Tpo -c chartoname.cpp -o chartoname.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I../cutil -I../ccutil
-I../ccst
ruct -I../dict -I../image -I../viewer -I/usr/include/leptonica -g -O2
-MT blobcl
ass.lo -MD -MP -MF .deps/blobclass.Tpo -c blobclass.cpp -o blobclass.o
mv -f .deps/chartoname.Tpo .deps/chartoname.Plo
adaptmatch.cpp: In member function 'void
tesseract::Classify::AdaptiveClassifier
(TBLOB*, const DENORM&, BLOB_CHOICE_LIST*, CP_RESULT_STRUCT*)':
adaptmatch.cpp:221:68: warning: passing NULL to non-pointer argument 6
of 'BLOB_
CHOICE::BLOB_CHOICE(UNICHAR_ID, float, float, inT16, inT16, int, inT16,
inT16, b
ool)'
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
-I.. -I
../cutil -I../ccutil -I../ccstruct -I../dict -I../image -I../viewer
-I/usr/inc
lude/leptonica -g -O2 -MT classify.lo -MD -MP -MF .deps/classify.Tpo -c
-o clas
sify.lo classify.cpp
mv -f .deps/adaptive.Tpo .deps/adaptive.Plo
mv -f .deps/blobclass.Tpo .deps/blobclass.Plo
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
-I.. -I
../cutil -I../ccutil -I../ccstruct -I../dict -I../image -I../viewer
-I/usr/inc
lude/leptonica -g -O2 -MT cluster.lo -MD -MP -MF .deps/cluster.Tpo -c
-o cluste
r.lo cluster.cpp
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
-I.. -I
../cutil -I../ccutil -I../ccstruct -I../dict -I../image -I../viewer
-I/usr/inc
lude/leptonica -g -O2 -MT clusttool.lo -MD -MP -MF .deps/clusttool.Tpo
-c -o cl
usttool.lo clusttool.cpp
mv -f .deps/adaptmatch.Tpo .deps/adaptmatch.Plo
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
-I.. -I
../cutil -I../ccutil -I../ccstruct -I../dict -I../image -I../viewer
-I/usr/inc
lude/leptonica -g -O2 -MT cutoffs.lo -MD -MP -MF .deps/cutoffs.Tpo -c
-o cutoff
s.lo cutoffs.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I../cutil -I../ccutil
-I../ccst
ruct -I../dict -I../image -I../viewer -I/usr/include/leptonica -g -O2
-MT classi
fy.lo -MD -MP -MF .deps/classify.Tpo -c classify.cpp -o classify.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I../cutil -I../ccutil
-I../ccst
ruct -I../dict -I../image -I../viewer -I/usr/include/leptonica -g -O2
-MT cluste
r.lo -MD -MP -MF .deps/cluster.Tpo -c cluster.cpp -o cluster.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I../cutil -I../ccutil
-I../ccst
ruct -I../dict -I../image -I../viewer -I/usr/include/leptonica -g -O2
-MT clustt
ool.lo -MD -MP -MF .deps/clusttool.Tpo -c clusttool.cpp -o clusttool.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I../cutil -I../ccutil
-I../ccst
ruct -I../dict -I../image -I../viewer -I/usr/include/leptonica -g -O2
-MT cutoff
s.lo -MD -MP -MF .deps/cutoffs.Tpo -c cutoffs.cpp -o cutoffs.o
mv -f .deps/cluster.Tpo .deps/cluster.Plo
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
-I.. -I
../cutil -I../ccutil -I../ccstruct -I../dict -I../image -I../viewer
-I/usr/inc
lude/leptonica -g -O2 -MT errorcounter.lo -MD -MP -MF
.deps/errorcounter.Tpo -c
-o errorcounter.lo errorcounter.cpp
mv -f .deps/classify.Tpo .deps/classify.Plo
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
-I.. -I
../cutil -I../ccutil -I../ccstruct -I../dict -I../image -I../viewer
-I/usr/inc
lude/leptonica -g -O2 -MT extract.lo -MD -MP -MF .deps/extract.Tpo -c
-o extrac
t.lo extract.cpp
mv -f .deps/clusttool.Tpo .deps/clusttool.Plo
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
-I.. -I
../cutil -I../ccutil -I../ccstruct -I../dict -I../image -I../viewer
-I/usr/inc
lude/leptonica -g -O2 -MT featdefs.lo -MD -MP -MF .deps/featdefs.Tpo -c
-o feat
defs.lo featdefs.cpp
mv -f .deps/cutoffs.Tpo .deps/cutoffs.Plo
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
-I.. -I
../cutil -I../ccutil -I../ccstruct -I../dict -I../image -I../viewer
-I/usr/inc
lude/leptonica -g -O2 -MT flexfx.lo -MD -MP -MF .deps/flexfx.Tpo -c -o
flexfx.l
o flexfx.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I../cutil -I../ccutil
-I../ccst
ruct -I../dict -I../image -I../viewer -I/usr/include/leptonica -g -O2
-MT errorc
ounter.lo -MD -MP -MF .deps/errorcounter.Tpo -c errorcounter.cpp -o
errorcounter
.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I../cutil -I../ccutil
-I../ccst
ruct -I../dict -I../image -I../viewer -I/usr/include/leptonica -g -O2
-MT extrac
t.lo -MD -MP -MF .deps/extract.Tpo -c extract.cpp -o extract.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I../cutil -I../ccutil
-I../ccst
ruct -I../dict -I../image -I../viewer -I/usr/include/leptonica -g -O2
-MT featde
fs.lo -MD -MP -MF .deps/featdefs.Tpo -c featdefs.cpp -o featdefs.o
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I../cutil -I../ccutil
-I../ccst
ruct -I../dict -I../image -I../viewer -I/usr/include/leptonica -g -O2
-MT flexfx
.lo -MD -MP -MF .deps/flexfx.Tpo -c flexfx.cpp -o flexfx.o
errorcounter.cpp: In static member function 'static double
tesseract::ErrorCount
er::ComputeErrorRate(tesseract::ShapeClassifier*, int,
tesseract::CountTypes, co
nst UnicityTable<tesseract::FontInfo>&, const GenericVector<Pix*>&,
tesseract::S
ampleIterator*, double*, double*, STRING*)':
errorcounter.cpp:49:25: error: 'clock' was not declared in this scope
errorcounter.cpp:80:49: error: 'CLOCKS_PER_SEC' was not declared in this
scope
Makefile:465: recipe for target `errorcounter.lo' failed
make[3]: *** [errorcounter.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
mv -f .deps/extract.Tpo .deps/extract.Plo
mv -f .deps/featdefs.Tpo .deps/featdefs.Plo
mv -f .deps/flexfx.Tpo .deps/flexfx.Plo
make[3]: Leaving directory `/cygdrive/c/tesseractsvn/classify'
Makefile:504: recipe for target `all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/cygdrive/c/tesseractsvn/classify'
Makefile:314: recipe for target `all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/cygdrive/c/tesseractsvn'
Makefile:243: recipe for target `all' failed
make: *** [all] Error 2
step 4: running make install
$ make install
Making install in ccutil
make[1]: Entering directory `/cygdrive/c/tesseractsvn/ccutil'
make[2]: Entering directory `/cygdrive/c/tesseractsvn/ccutil'
make[3]: Entering directory `/cygdrive/c/tesseractsvn/ccutil'
test -z "c:/tesseract/lib" || /usr/bin/mkdir -p "c:/tesseract/lib"
test -z "c:/tesseract/include/tesseract" || /usr/bin/mkdir -p
"c:/tesseract/incl
ude/tesseract"
/usr/bin/install -c -m 644 ambigs.h basedir.h bits16.h bitvector.h
tesscallback
.h ccutil.h clst.h elst2.h elst.h errcode.h fileerr.h genericvector.h
globaloc.h
hashfn.h helpers.h host.h hosthplb.h indexmapbidi.h lsterr.h memry.h
mfcpch.h n
dminx.h notdll.h nwmain.h ocrclass.h platform.h qrsequence.h secname.h
serialis.
h sorthelper.h stderr.h strngs.h tessdatamanager.h tprintf.h unichar.h
unicharma
p.h unicharset.h unicity_table.h unicodes.h params.h
'c:/tesseract/include/tesse
ract'
make[3]: Leaving directory `/cygdrive/c/tesseractsvn/ccutil'
make[2]: Leaving directory `/cygdrive/c/tesseractsvn/ccutil'
make[1]: Leaving directory `/cygdrive/c/tesseractsvn/ccutil'
Making install in viewer
make[1]: Entering directory `/cygdrive/c/tesseractsvn/viewer'
make[2]: Entering directory `/cygdrive/c/tesseractsvn/viewer'
make[3]: Entering directory `/cygdrive/c/tesseractsvn/viewer'
test -z "c:/tesseract/lib" || /usr/bin/mkdir -p "c:/tesseract/lib"
test -z "c:/tesseract/include/tesseract" || /usr/bin/mkdir -p
"c:/tesseract/incl
ude/tesseract"
/usr/bin/install -c -m 644 scrollview.h svmnode.h svutil.h
'c:/tesseract/includ
e/tesseract'
make[3]: Leaving directory `/cygdrive/c/tesseractsvn/viewer'
make[2]: Leaving directory `/cygdrive/c/tesseractsvn/viewer'
make[1]: Leaving directory `/cygdrive/c/tesseractsvn/viewer'
Making install in cutil
make[1]: Entering directory `/cygdrive/c/tesseractsvn/cutil'
make[2]: Entering directory `/cygdrive/c/tesseractsvn/cutil'
make[3]: Entering directory `/cygdrive/c/tesseractsvn/cutil'
test -z "c:/tesseract/lib" || /usr/bin/mkdir -p "c:/tesseract/lib"
test -z "c:/tesseract/include/tesseract" || /usr/bin/mkdir -p
"c:/tesseract/incl
ude/tesseract"
/usr/bin/install -c -m 644 bitvec.h callcpp.h const.h cutil.h
cutil_class.h dan
error.h efio.h emalloc.h freelist.h globals.h listio.h oldheap.h
oldlist.h struc
tures.h tessarray.h 'c:/tesseract/include/tesseract'
make[3]: Leaving directory `/cygdrive/c/tesseractsvn/cutil'
make[2]: Leaving directory `/cygdrive/c/tesseractsvn/cutil'
make[1]: Leaving directory `/cygdrive/c/tesseractsvn/cutil'
Making install in image
make[1]: Entering directory `/cygdrive/c/tesseractsvn/image'
make[2]: Entering directory `/cygdrive/c/tesseractsvn/image'
make[3]: Entering directory `/cygdrive/c/tesseractsvn/image'
test -z "c:/tesseract/lib" || /usr/bin/mkdir -p "c:/tesseract/lib"
test -z "c:/tesseract/include/tesseract" || /usr/bin/mkdir -p
"c:/tesseract/incl
ude/tesseract"
/usr/bin/install -c -m 644 image.h img.h imgerrs.h imgs.h imgtiff.h
imgunpk.h s
vshowim.h 'c:/tesseract/include/tesseract'
make[3]: Leaving directory `/cygdrive/c/tesseractsvn/image'
make[2]: Leaving directory `/cygdrive/c/tesseractsvn/image'
make[1]: Leaving directory `/cygdrive/c/tesseractsvn/image'
Making install in ccstruct
make[1]: Entering directory `/cygdrive/c/tesseractsvn/ccstruct'
make[2]: Entering directory `/cygdrive/c/tesseractsvn/ccstruct'
make[3]: Entering directory `/cygdrive/c/tesseractsvn/ccstruct'
test -z "c:/tesseract/lib" || /usr/bin/mkdir -p "c:/tesseract/lib"
test -z "c:/tesseract/include/tesseract" || /usr/bin/mkdir -p
"c:/tesseract/incl
ude/tesseract"
/usr/bin/install -c -m 644 blckerr.h blobbox.h blobs.h blread.h
boxread.h boxwo
rd.h ccstruct.h coutln.h crakedge.h detlinefit.h dppoint.h fontinfo.h
genblob.h
hpddef.h hpdsizes.h ipoints.h linlsq.h matrix.h mod128.h normalis.h
ocrblock.h o
crpara.h ocrrow.h otsuthr.h pageres.h params_training_featdef.h
pdblock.h points
.h polyaprx.h polyblk.h publictypes.h quadlsq.h quadratc.h quspline.h
ratngs.h r
ect.h rejctmap.h seam.h split.h statistc.h 'c:/tesseract/include/tesseract'
/usr/bin/install -c -m 644 stepblob.h vecfuncs.h werd.h
'c:/tesseract/include/t
esseract'
make[3]: Leaving directory `/cygdrive/c/tesseractsvn/ccstruct'
make[2]: Leaving directory `/cygdrive/c/tesseractsvn/ccstruct'
make[1]: Leaving directory `/cygdrive/c/tesseractsvn/ccstruct'
Making install in dict
make[1]: Entering directory `/cygdrive/c/tesseractsvn/dict'
make[2]: Entering directory `/cygdrive/c/tesseractsvn/dict'
make[3]: Entering directory `/cygdrive/c/tesseractsvn/dict'
test -z "c:/tesseract/lib" || /usr/bin/mkdir -p "c:/tesseract/lib"
test -z "c:/tesseract/include/tesseract" || /usr/bin/mkdir -p
"c:/tesseract/incl
ude/tesseract"
/usr/bin/install -c -m 644 dawg.h dict.h matchdefs.h permute.h
states.h stopper
.h trie.h 'c:/tesseract/include/tesseract'
make[3]: Leaving directory `/cygdrive/c/tesseractsvn/dict'
make[2]: Leaving directory `/cygdrive/c/tesseractsvn/dict'
make[1]: Leaving directory `/cygdrive/c/tesseractsvn/dict'
Making install in classify
make[1]: Entering directory `/cygdrive/c/tesseractsvn/classify'
make[2]: Entering directory `/cygdrive/c/tesseractsvn/classify'
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
-I.. -I
../cutil -I../ccutil -I../ccstruct -I../dict -I../image -I../viewer
-I/usr/inc
lude/leptonica -g -O2 -MT errorcounter.lo -MD -MP -MF
.deps/errorcounter.Tpo -c
-o errorcounter.lo errorcounter.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I../cutil -I../ccutil
-I../ccst
ruct -I../dict -I../image -I../viewer -I/usr/include/leptonica -g -O2
-MT errorc
ounter.lo -MD -MP -MF .deps/errorcounter.Tpo -c errorcounter.cpp -o
errorcounter
.o
errorcounter.cpp: In static member function 'static double
tesseract::ErrorCount
er::ComputeErrorRate(tesseract::ShapeClassifier*, int,
tesseract::CountTypes, co
nst UnicityTable<tesseract::FontInfo>&, const GenericVector<Pix*>&,
tesseract::S
ampleIterator*, double*, double*, STRING*)':
errorcounter.cpp:49:25: error: 'clock' was not declared in this scope
errorcounter.cpp:80:49: error: 'CLOCKS_PER_SEC' was not declared in this
scope
Makefile:465: recipe for target `errorcounter.lo' failed
make[2]: *** [errorcounter.lo] Error 1
make[2]: Leaving directory `/cygdrive/c/tesseractsvn/classify'
Makefile:504: recipe for target `install-recursive' failed
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/cygdrive/c/tesseractsvn/classify'
Makefile:314: recipe for target `install-recursive' failed
make: *** [install-recursive] Error 1
-----------------------------
Maybe someone could help me there what the issues are.
I compiled the things before but re installed cygwin and recompiled the
2 libs mentioned above.
they seemed to compile pretty well cause i got dlls back.
thanks in advance for helping me here.
maybe soneone also can show me how to make it more portable cause
currently i need to install all files to c:/tesseract
all the time so that it works.
Greetings,
Simon
--
You received this message because you are subscribed to the Google
Groups "tesseract-ocr" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/tesseract-ocr?hl=en