tesseract on cygwin: training tools seem not to build

48 views
Skip to first unread message

Simon Eigeldinger

unread,
Jul 23, 2015, 2:02:45 PM7/23/15
to tesser...@googlegroups.com
Hi all,

this is what make produces when it should make the training tools:
sorry for sending all the stuff but maybe it might be interesting.


$ make training
make[1]: Entering directory '/home/Besitzer/tesseractsrc/training'
depbase=`echo boxchar.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
-I.. -O2
-DNDEBUG -DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE -I../ccmain
-I../api -I../cc
util -I../ccstruct -I../viewer -I../textord -I../dict -I../classify
-I../display
-I../wordrec -I../cutil -I../vs2010/port -I/usr/include/leptonica
-D_REENTRANT
-I/usr/include/pango-1.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I
/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/in
clude/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16
-I/usr/include/f
reetype2 -I/usr/include/libpng16 -std=gnu++11 -MT boxchar.lo -MD -MP
-MF $depb
ase.Tpo -c -o boxchar.lo boxchar.cpp &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -O2 -DNDEBUG
-DUSE_STD_NAMESPACE
-DPANGO_ENABLE_ENGINE -I../ccmain -I../api -I../ccutil -I../ccstruct
-I../viewe
r -I../textord -I../dict -I../classify -I../display -I../wordrec
-I../cutil -I..
/vs2010/port -I/usr/include/leptonica -D_REENTRANT
-I/usr/include/pango-1.0 -I/u
sr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cairo
-I/usr/incl
ude/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1
-I/usr/include/
freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2
-I/usr/include/libpng
16 -std=gnu++11 -MT boxchar.lo -MD -MP -MF .deps/boxchar.Tpo -c
boxchar.cpp -o b
oxchar.o
depbase=`echo commandlineflags.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
-I.. -O2
-DNDEBUG -DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE -I../ccmain
-I../api -I../cc
util -I../ccstruct -I../viewer -I../textord -I../dict -I../classify
-I../display
-I../wordrec -I../cutil -I../vs2010/port -I/usr/include/leptonica
-D_REENTRANT
-I/usr/include/pango-1.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I
/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/in
clude/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16
-I/usr/include/f
reetype2 -I/usr/include/libpng16 -std=gnu++11 -MT commandlineflags.lo
-MD -MP
-MF $depbase.Tpo -c -o commandlineflags.lo commandlineflags.cpp &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -O2 -DNDEBUG
-DUSE_STD_NAMESPACE
-DPANGO_ENABLE_ENGINE -I../ccmain -I../api -I../ccutil -I../ccstruct
-I../viewe
r -I../textord -I../dict -I../classify -I../display -I../wordrec
-I../cutil -I..
/vs2010/port -I/usr/include/leptonica -D_REENTRANT
-I/usr/include/pango-1.0 -I/u
sr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cairo
-I/usr/incl
ude/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1
-I/usr/include/
freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2
-I/usr/include/libpng
16 -std=gnu++11 -MT commandlineflags.lo -MD -MP -MF
.deps/commandlineflags.Tpo -
c commandlineflags.cpp -o commandlineflags.o
depbase=`echo commontraining.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
-I.. -O2
-DNDEBUG -DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE -I../ccmain
-I../api -I../cc
util -I../ccstruct -I../viewer -I../textord -I../dict -I../classify
-I../display
-I../wordrec -I../cutil -I../vs2010/port -I/usr/include/leptonica
-D_REENTRANT
-I/usr/include/pango-1.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I
/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/in
clude/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16
-I/usr/include/f
reetype2 -I/usr/include/libpng16 -std=gnu++11 -MT commontraining.lo
-MD -MP -M
F $depbase.Tpo -c -o commontraining.lo commontraining.cpp &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -O2 -DNDEBUG
-DUSE_STD_NAMESPACE
-DPANGO_ENABLE_ENGINE -I../ccmain -I../api -I../ccutil -I../ccstruct
-I../viewe
r -I../textord -I../dict -I../classify -I../display -I../wordrec
-I../cutil -I..
/vs2010/port -I/usr/include/leptonica -D_REENTRANT
-I/usr/include/pango-1.0 -I/u
sr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cairo
-I/usr/incl
ude/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1
-I/usr/include/
freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2
-I/usr/include/libpng
16 -std=gnu++11 -MT commontraining.lo -MD -MP -MF
.deps/commontraining.Tpo -c co
mmontraining.cpp -o commontraining.o
depbase=`echo degradeimage.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
-I.. -O2
-DNDEBUG -DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE -I../ccmain
-I../api -I../cc
util -I../ccstruct -I../viewer -I../textord -I../dict -I../classify
-I../display
-I../wordrec -I../cutil -I../vs2010/port -I/usr/include/leptonica
-D_REENTRANT
-I/usr/include/pango-1.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I
/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/in
clude/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16
-I/usr/include/f
reetype2 -I/usr/include/libpng16 -std=gnu++11 -MT degradeimage.lo -MD
-MP -MF
$depbase.Tpo -c -o degradeimage.lo degradeimage.cpp &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -O2 -DNDEBUG
-DUSE_STD_NAMESPACE
-DPANGO_ENABLE_ENGINE -I../ccmain -I../api -I../ccutil -I../ccstruct
-I../viewe
r -I../textord -I../dict -I../classify -I../display -I../wordrec
-I../cutil -I..
/vs2010/port -I/usr/include/leptonica -D_REENTRANT
-I/usr/include/pango-1.0 -I/u
sr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cairo
-I/usr/incl
ude/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1
-I/usr/include/
freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2
-I/usr/include/libpng
16 -std=gnu++11 -MT degradeimage.lo -MD -MP -MF .deps/degradeimage.Tpo
-c degrad
eimage.cpp -o degradeimage.o
depbase=`echo fileio.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
-I.. -O2
-DNDEBUG -DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE -I../ccmain
-I../api -I../cc
util -I../ccstruct -I../viewer -I../textord -I../dict -I../classify
-I../display
-I../wordrec -I../cutil -I../vs2010/port -I/usr/include/leptonica
-D_REENTRANT
-I/usr/include/pango-1.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I
/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/in
clude/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16
-I/usr/include/f
reetype2 -I/usr/include/libpng16 -std=gnu++11 -MT fileio.lo -MD -MP
-MF $depba
se.Tpo -c -o fileio.lo fileio.cpp &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -O2 -DNDEBUG
-DUSE_STD_NAMESPACE
-DPANGO_ENABLE_ENGINE -I../ccmain -I../api -I../ccutil -I../ccstruct
-I../viewe
r -I../textord -I../dict -I../classify -I../display -I../wordrec
-I../cutil -I..
/vs2010/port -I/usr/include/leptonica -D_REENTRANT
-I/usr/include/pango-1.0 -I/u
sr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cairo
-I/usr/incl
ude/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1
-I/usr/include/
freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2
-I/usr/include/libpng
16 -std=gnu++11 -MT fileio.lo -MD -MP -MF .deps/fileio.Tpo -c fileio.cpp
-o file
io.o
depbase=`echo ligature_table.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
-I.. -O2
-DNDEBUG -DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE -I../ccmain
-I../api -I../cc
util -I../ccstruct -I../viewer -I../textord -I../dict -I../classify
-I../display
-I../wordrec -I../cutil -I../vs2010/port -I/usr/include/leptonica
-D_REENTRANT
-I/usr/include/pango-1.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I
/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/in
clude/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16
-I/usr/include/f
reetype2 -I/usr/include/libpng16 -std=gnu++11 -MT ligature_table.lo
-MD -MP -M
F $depbase.Tpo -c -o ligature_table.lo ligature_table.cpp &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -O2 -DNDEBUG
-DUSE_STD_NAMESPACE
-DPANGO_ENABLE_ENGINE -I../ccmain -I../api -I../ccutil -I../ccstruct
-I../viewe
r -I../textord -I../dict -I../classify -I../display -I../wordrec
-I../cutil -I..
/vs2010/port -I/usr/include/leptonica -D_REENTRANT
-I/usr/include/pango-1.0 -I/u
sr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cairo
-I/usr/incl
ude/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1
-I/usr/include/
freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2
-I/usr/include/libpng
16 -std=gnu++11 -MT ligature_table.lo -MD -MP -MF
.deps/ligature_table.Tpo -c li
gature_table.cpp -o ligature_table.o
depbase=`echo normstrngs.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
-I.. -O2
-DNDEBUG -DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE -I../ccmain
-I../api -I../cc
util -I../ccstruct -I../viewer -I../textord -I../dict -I../classify
-I../display
-I../wordrec -I../cutil -I../vs2010/port -I/usr/include/leptonica
-D_REENTRANT
-I/usr/include/pango-1.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I
/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/in
clude/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16
-I/usr/include/f
reetype2 -I/usr/include/libpng16 -std=gnu++11 -MT normstrngs.lo -MD
-MP -MF $d
epbase.Tpo -c -o normstrngs.lo normstrngs.cpp &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -O2 -DNDEBUG
-DUSE_STD_NAMESPACE
-DPANGO_ENABLE_ENGINE -I../ccmain -I../api -I../ccutil -I../ccstruct
-I../viewe
r -I../textord -I../dict -I../classify -I../display -I../wordrec
-I../cutil -I..
/vs2010/port -I/usr/include/leptonica -D_REENTRANT
-I/usr/include/pango-1.0 -I/u
sr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cairo
-I/usr/incl
ude/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1
-I/usr/include/
freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2
-I/usr/include/libpng
16 -std=gnu++11 -MT normstrngs.lo -MD -MP -MF .deps/normstrngs.Tpo -c
normstrngs
.cpp -o normstrngs.o
depbase=`echo pango_font_info.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
-I.. -O2
-DNDEBUG -DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE -I../ccmain
-I../api -I../cc
util -I../ccstruct -I../viewer -I../textord -I../dict -I../classify
-I../display
-I../wordrec -I../cutil -I../vs2010/port -I/usr/include/leptonica
-D_REENTRANT
-I/usr/include/pango-1.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I
/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/in
clude/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16
-I/usr/include/f
reetype2 -I/usr/include/libpng16 -std=gnu++11 -MT pango_font_info.lo
-MD -MP -
MF $depbase.Tpo -c -o pango_font_info.lo pango_font_info.cpp &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -O2 -DNDEBUG
-DUSE_STD_NAMESPACE
-DPANGO_ENABLE_ENGINE -I../ccmain -I../api -I../ccutil -I../ccstruct
-I../viewe
r -I../textord -I../dict -I../classify -I../display -I../wordrec
-I../cutil -I..
/vs2010/port -I/usr/include/leptonica -D_REENTRANT
-I/usr/include/pango-1.0 -I/u
sr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cairo
-I/usr/incl
ude/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1
-I/usr/include/
freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2
-I/usr/include/libpng
16 -std=gnu++11 -MT pango_font_info.lo -MD -MP -MF
.deps/pango_font_info.Tpo -c
pango_font_info.cpp -o pango_font_info.o
pango_font_info.cpp: In member function 'bool
tesseract::PangoFontInfo::ParseFon
tDescription(const PangoFontDescription*)':
pango_font_info.cpp:223:46: error: 'strcasestr' was not declared in this
scope
is_fraktur_ = (strcasestr(family, "Fraktur") != NULL);
^
Makefile:875: recipe for target 'pango_font_info.lo' failed
make[1]: *** [pango_font_info.lo] Error 1
make[1]: Leaving directory '/home/Besitzer/tesseractsrc/training'
Makefile:880: recipe for target 'training' failed
make: *** [training] Error 2

Besitzer@simon ~/tesseractsrc
$ make training-install
make[1]: Entering directory '/home/Besitzer/tesseractsrc/training'
depbase=`echo pango_font_info.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
-I.. -O2
-DNDEBUG -DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE -I../ccmain
-I../api -I../cc
util -I../ccstruct -I../viewer -I../textord -I../dict -I../classify
-I../display
-I../wordrec -I../cutil -I../vs2010/port -I/usr/include/leptonica
-D_REENTRANT
-I/usr/include/pango-1.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I
/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/in
clude/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16
-I/usr/include/f
reetype2 -I/usr/include/libpng16 -std=gnu++11 -MT pango_font_info.lo
-MD -MP -
MF $depbase.Tpo -c -o pango_font_info.lo pango_font_info.cpp &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -O2 -DNDEBUG
-DUSE_STD_NAMESPACE
-DPANGO_ENABLE_ENGINE -I../ccmain -I../api -I../ccutil -I../ccstruct
-I../viewe
r -I../textord -I../dict -I../classify -I../display -I../wordrec
-I../cutil -I..
/vs2010/port -I/usr/include/leptonica -D_REENTRANT
-I/usr/include/pango-1.0 -I/u
sr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cairo
-I/usr/incl
ude/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1
-I/usr/include/
freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2
-I/usr/include/libpng
16 -std=gnu++11 -MT pango_font_info.lo -MD -MP -MF
.deps/pango_font_info.Tpo -c
pango_font_info.cpp -o pango_font_info.o
pango_font_info.cpp: In member function 'bool
tesseract::PangoFontInfo::ParseFon
tDescription(const PangoFontDescription*)':
pango_font_info.cpp:223:46: error: 'strcasestr' was not declared in this
scope
is_fraktur_ = (strcasestr(family, "Fraktur") != NULL);
^
Makefile:875: recipe for target 'pango_font_info.lo' failed
make[1]: *** [pango_font_info.lo] Error 1
make[1]: Leaving directory '/home/Besitzer/tesseractsrc/training'
Makefile:882: recipe for target 'training-install' failed
make: *** [training-install] Error 2


Jim O'Regan

unread,
Jul 23, 2015, 5:23:44 PM7/23/15
to tesser...@googlegroups.com
On 23 July 2015 at 19:02, Simon Eigeldinger <simon.ei...@vol.at> wrote:
> Hi all,
>
> pango_font_info.cpp:223:46: error: 'strcasestr' was not declared in this
> scope
> is_fraktur_ = (strcasestr(family, "Fraktur") != NULL);
> ^

This seems to be the relevant part. I don't have access to a Windows
machine, so I can't test this, but I've opened a pull request:
https://github.com/tesseract-ocr/tesseract/pull/60

--
<Sefam> Are any of the mentors around?
<jimregan> yes, they're the ones trolling you

Simon Eigeldinger

unread,
Jul 23, 2015, 5:31:56 PM7/23/15
to tesser...@googlegroups.com
hi,

and i just opened a ticket:
https://github.com/tesseract-ocr/tesseract/issues/61




greetings,
simon

Am 23.07.2015 um 23:23 schrieb Jim O'Regan:
> On 23 July 2015 at 19:02, Simon Eigeldinger <simon.ei...@vol.at> wrote:
>> Hi all,
>>
>> pango_font_info.cpp:223:46: error: 'strcasestr' was not declared in this
>> scope
>> is_fraktur_ = (strcasestr(family, "Fraktur") != NULL);
>> ^
>
> This seems to be the relevant part. I don't have access to a Windows
> machine, so I can't test this, but I've opened a pull request:
> https://github.com/tesseract-ocr/tesseract/pull/60
>

--
Simon Eigeldinger
Follow me on Twitter: http://www.twitter.com/domasofan/
E-Mail: simon.ei...@vol.at
MSN: simon_ei...@hotmail.com
ICQ: 121823966
Jabber: doma...@andrelouis.com
Reply all
Reply to author
Forward
0 new messages