Hi,

I have been able to build latest source of tesseract on cygwin.

ra@Shree ~/tesseract-ocr/tesseract
$ tesseract -v
tesseract 3.05.00dev-296-g60176fc
 leptonica-1.73
  libgif 4.1.6(?) : libjpeg 8d (libjpeg-turbo 1.4.2) : libpng 1.6.20 :
libtiff 4.0.6 : zlib 1.2.8 : libwebp 0.4.3

However, make training is failing with the following error:

libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -g -Wall -Wno-uninitialized
-O0 -DDEBUG -DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE -I../ccmain -I../api
-I../ccutil -I../ccstruct -I../viewer -I../textord -I../dict -I../classify
-I../display -I../wordrec -I../cutil -I../vs2010/port
-I/usr/local/include/leptonica -I/usr/include/leptonica
-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/include/pixman-1
-I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2
-I/usr/include/libpng16 -g -O2 -std=gnu++11 -MT pango_font_info.lo -MD -MP
-MF .deps/pango_font_info.Tpo -c pango_font_info.cpp  -DDLL_EXPORT -DPIC -o
.libs/pango_font_info.o
In file included from /usr/include/stdlib.h:11:0,
                 from pango_font_info.cpp:30:
*/usr/include/string.h:76:7: error: conflicting declaration of ‘char*
strcasestr(const char*, const char*)’ with ‘C’ linkage*
* char *_EXFUN(strcasestr,(const char *, const char *));*
       ^
In file included from pango_font_info.cpp:28:0:
../vs2010/port/strcasestr.h:57:7: note: previous declaration with ‘C++’
linkage
 char *strcasestr(const char *haystack, const char *needle);

This is with source as of latest commit:

commit 60176fc5ae5e7f6bdef60c926a4b5ea03de2bfa7
    replace __CYGWIN32__ with __CYGWIN__

Has anyone else built the latest version on cygwin? What dependencies and
versions did you use?

Thanks!

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/CAG2NduXZOhgfrHbRh8niBOTk6hXe06TTp6_W-a%3DJM%3DtvJ9ZrmA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to