Hi Zdenko, ./ confusing for me :-)
I tried yesterday with mingw and msys but process was hanging while compiling leptonica, so tried today with cygwin. Here is the version info under cygwin gcc version 4.8.3 (GCC) automake 1.14 autoheader 2.69 autoconf 2.69 Shree Devi Kumar ____________________________________________________________ भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com On Thu, Aug 21, 2014 at 1:20 PM, zdenko podobny <[email protected]> wrote: > I was able to build current tesseract code with mingw&msys (but in xp mode > on windows 7 and was not clear install). I will have a look on this later. > In meantime can you provided version information about autotools, gcc etc? > > BTW: "/autogen.sh" did exists in your instalation. But "./autogen.sh" yes > ;-) > > Zdenko > > > On Thu, Aug 21, 2014 at 9:04 AM, Shree Devi Kumar <[email protected]> > wrote: > >> zdenko, >> >> yes, but the file is there and I was able to run by >> giving >> sh autogen.sh >> >> Please see the messages below. >> >> Shree Devi Kumar >> ____________________________________________________________ >> भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com >> >> >> On Thu, Aug 21, 2014 at 12:28 PM, zdenko podobny <[email protected]> >> wrote: >> >>> >>> On Thu, Aug 21, 2014 at 8:31 AM, shree <[email protected]> wrote: >>> >>>> hi, >>>> >>>> I tried compiling the current version downloaded using git with >>>> leptonica 1.71 on cygwin and am getting the following error. >>>> >>>> Please let me know what I need to do to fix this. >>>> >>>> Thanks, >>>> >>>> ------------- >>>> User@HP /opt/src >>>> $ git clone https://code.google.com/p/tesseract-ocr/ >>>> Cloning into 'tesseract-ocr'... >>>> remote: Counting objects: 9894, done. >>>> Receiving objects: 100% (9894/9894), 29.83 MiB | 1.29 MiB/s, done. >>>> Resolving deltas: 100% (8200/8200), done. >>>> ---------------- >>>> User@HP /opt/src >>>> $ cd tesseract-ocr >>>> >>>> User@HP /opt/src/tesseract-ocr >>>> $ /autogen.sh >>>> -bash: /autogen.sh: No such file or directory >>>> >>>> Did you read this? >>> >>> Zdenko >>> >>> >>>> User@HP /opt/src/tesseract-ocr >>>> $ 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:241: installing 'config/compile' >>>> configure.ac:76: installing 'config/config.guess' >>>> configure.ac:76: installing 'config/config.sub' >>>> configure.ac:60: installing 'config/install-sh' >>>> configure.ac:60: installing 'config/missing' >>>> api/Makefile.am:69: warning: source file >>>> '$(top_srcdir)/api/tesseractmain.cpp' i >>>> >>>> s in a subdirectory, >>>> api/Makefile.am:69: but option 'subdir-objects' is disabled >>>> automake-1.14: warning: possible forward-incompatibility. >>>> automake-1.14: At least a source file is in a subdirectory, but the >>>> 'subdir-obje >>>> >>>> cts' >>>> automake-1.14: automake option hasn't been enabled. For now, the >>>> corresponding >>>> >>>> output >>>> automake-1.14: object file(s) will be placed in the top-level >>>> directory. Howeve >>>> >>>> r, >>>> automake-1.14: this behaviour will change in future Automake versions: >>>> they will >>>> automake-1.14: unconditionally cause object files to be placed in the >>>> same subdi >>>> >>>> rectory >>>> automake-1.14: of the corresponding sources. >>>> automake-1.14: You are advised to start using 'subdir-objects' option >>>> throughout >>>> >>>> your >>>> automake-1.14: project, to avoid future incompatibilities. >>>> api/Makefile.am: installing 'config/depcomp' >>>> ccutil/Makefile.am:47: warning: source file >>>> '../vs2010/port/strtok_r.cpp' is in >>>> >>>> a subdirectory, >>>> ccutil/Makefile.am:47: but option 'subdir-objects' is disabled >>>> training/Makefile.am:297: warning: source file >>>> '../vs2010/port/strcasestr.cpp' i >>>> >>>> s in a subdirectory, >>>> training/Makefile.am:297: but option 'subdir-objects' is disabled >>>> Running autoconf >>>> >>>> All done. >>>> To build the software now, do something like: >>>> >>>> $ ./configure [--enable-debug] [...other options] >>>> >>>> User@HP /opt/src/tesseract-ocr >>>> $ ./configure LDFLAGS=-L/usr/local/lib >>>> 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 for gawk... gawk >>>> checking whether make sets $(MAKE)... yes >>>> checking whether make supports nested variables... yes >>>> checking whether to enable maintainer-specific portions of Makefiles... >>>> no >>>> checking build system type... i686-pc-cygwin >>>> checking host system type... i686-pc-cygwin >>>> checking --enable-graphics argument... yes >>>> checking --enable-embedded argument... no >>>> checking --enable-opencl argument... no >>>> checking --enable-visibility argument... no >>>> checking --enable-multiple-libraries argument... no >>>> checking whether to use tessdata-prefix... yes >>>> checking whether to enable debugging... 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 for style of include used by make... GNU >>>> checking dependency style of g++... gcc3 >>>> 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 whether gcc understands -c and -o together... yes >>>> checking dependency style of gcc... gcc3 >>>> 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... func_convert_file_noop >>>> checking how to convert i686-pc-cygwin file names to toolchain >>>> format... func_convert_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_implib >>>> checking for ar... ar >>>> checking for archiver @FILE support... @ >>>> checking for strip... strip >>>> checking for ranlib... ranlib >>>> checking command to parse /usr/bin/nm -B output from gcc object... ok >>>> checking for sysroot... no >>>> checking for mt... no >>>> checking if : 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 whether -lc should be explicitly linked in... 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... yes >>>> 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 whether byte ordering is bigendian... no >>>> checking if compiling with clang... no >>>> checking whether compiler supports C++11... yes >>>> checking for snprintf... yes >>>> checking for library containing sem_init... none required >>>> 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 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 getline... yes >>>> checking for wchar_t... yes >>>> checking for long long int... yes >>>> checking for mbstate_t... yes >>>> checking for leptonica... yes >>>> checking for pixCreate in -llept... yes >>>> checking leptonica version >= 1.71... yes >>>> checking unicode/uchar.h usability... yes >>>> checking unicode/uchar.h presence... yes >>>> checking for unicode/uchar.h... yes >>>> checking pango-1.0/pango/pango-features.h usability... yes >>>> checking pango-1.0/pango/pango-features.h presence... yes >>>> checking for pango-1.0/pango/pango-features.h... yes >>>> checking cairo/cairo-version.h usability... yes >>>> checking cairo/cairo-version.h presence... yes >>>> checking for cairo/cairo-version.h... yes >>>> checking that generated files are newer than configure... done >>>> configure: creating ./config.status >>>> config.status: creating Makefile >>>> config.status: creating tesseract.pc >>>> config.status: creating api/Makefile >>>> config.status: creating ccmain/Makefile >>>> config.status: creating opencl/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 neural_networks/runtime/Makefile >>>> config.status: creating textord/Makefile >>>> config.status: creating viewer/Makefile >>>> config.status: creating wordrec/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 training/Makefile >>>> config.status: creating config_auto.h >>>> config.status: executing depfiles commands >>>> config.status: executing libtool commands >>>> >>>> Configuration is done. >>>> You can now build and install tesseract by running: >>>> >>>> $ make >>>> $ sudo make install >>>> >>>> Training tools can be build and installed (after building of tesseract) >>>> with: >>>> >>>> $ make training >>>> $ sudo make training-install >>>> >>>> >>>> User@HP /opt/src/tesseract-ocr >>>> $ 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' >>>> /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. >>>> -I.. -O2 -DNDEBUG -I/usr/local/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/include/pixman-1 >>>> -I/usr/include/freetype2 -I/usr/include/libpng15 -I/usr/include/freetype2 >>>> -I/usr/include/libpng15 -DTESSDATA_PREFIX=/usr/local/share/ -std=c++11 >>>> -MT ambigs.lo -MD -MP -MF .deps/ambigs.Tpo -c -o ambigs.lo ambigs.cpp >>>> libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -O2 -DNDEBUG >>>> -I/usr/local/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/include/pixman-1 >>>> -I/usr/include/freetype2 -I/usr/include/libpng15 -I/usr/include/freetype2 >>>> -I/usr/include/libpng15 -DTESSDATA_PREFIX=/usr/local/share/ -std=c++11 -MT >>>> ambigs.lo -MD -MP -MF .deps/ambigs.Tpo -c ambigs.cpp -DDLL_EXPORT -DPIC -o >>>> .libs/ambigs.o >>>> ambigs.cpp: In member function 'bool >>>> tesseract::UnicharAmbigs::ParseAmbiguityLine(int, int, int, const >>>> UNICHARSET&, char*, int*, UNICHAR_ID*, int*, char*, int*)': >>>> ambigs.cpp:273:63: error: 'strtok_r' was not declared in this scope >>>> if (!(token = strtok_r(buffer, kAmbigDelimiters, &next_token)) || >>>> ^ >>>> ambigs.cpp:285:63: error: 'strtok_r' was not declared in this scope >>>> if (!(token = strtok_r(NULL, kAmbigDelimiters, &next_token))) >>>> break; >>>> ^ >>>> ambigs.cpp:295:61: error: 'strtok_r' was not declared in this scope >>>> !(token = strtok_r(NULL, kAmbigDelimiters, &next_token)) || >>>> ^ >>>> ambigs.cpp:308:63: error: 'strtok_r' was not declared in this scope >>>> if (!(token = strtok_r(NULL, kAmbigDelimiters, &next_token))) >>>> break; >>>> ^ >>>> ambigs.cpp:329:63: error: 'strtok_r' was not declared in this scope >>>> if (!(token = strtok_r(NULL, kAmbigDelimiters, &next_token)) || >>>> ^ >>>> Makefile:553: recipe for target 'ambigs.lo' failed >>>> make[3]: *** [ambigs.lo] Error 1 >>>> make[3]: Leaving directory '/opt/src/tesseract-ocr/ccutil' >>>> Makefile:600: recipe for target 'all-recursive' failed >>>> make[2]: *** [all-recursive] Error 1 >>>> make[2]: Leaving directory '/opt/src/tesseract-ocr/ccutil' >>>> Makefile:464: recipe for target 'all-recursive' failed >>>> make[1]: *** [all-recursive] Error 1 >>>> make[1]: Leaving directory '/opt/src/tesseract-ocr' >>>> Makefile:372: recipe for target 'all' failed >>>> make: *** [all] Error 2 >>>> >>>> -- >>>> 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 http://groups.google.com/group/tesseract-ocr. >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/tesseract-ocr/2a00b16f-7be4-4bd1-80e8-a259654ae9c4%40googlegroups.com >>>> <https://groups.google.com/d/msgid/tesseract-ocr/2a00b16f-7be4-4bd1-80e8-a259654ae9c4%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 [email protected]. >>> To post to this group, send email to [email protected]. >>> 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/CAJbzG8weUJ%3DLfWeMHaT-_Dzq3G92WwinoPaVEi5NnLqDSQvAnw%40mail.gmail.com >>> <https://groups.google.com/d/msgid/tesseract-ocr/CAJbzG8weUJ%3DLfWeMHaT-_Dzq3G92WwinoPaVEi5NnLqDSQvAnw%40mail.gmail.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 [email protected]. >> To post to this group, send email to [email protected]. >> 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/CAG2NduXScyq9iQqxhnaexVPnw5impBzDaZ1K3T5kdNa%2BpRewUQ%40mail.gmail.com >> <https://groups.google.com/d/msgid/tesseract-ocr/CAG2NduXScyq9iQqxhnaexVPnw5impBzDaZ1K3T5kdNa%2BpRewUQ%40mail.gmail.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 [email protected]. > To post to this group, send email to [email protected]. > 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/CAJbzG8zrFXm1_rWBtC7SbfK19bLnE%2BPQ2_47smFDRf_XdsLBpQ%40mail.gmail.com > <https://groups.google.com/d/msgid/tesseract-ocr/CAJbzG8zrFXm1_rWBtC7SbfK19bLnE%2BPQ2_47smFDRf_XdsLBpQ%40mail.gmail.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 [email protected]. To post to this group, send email to [email protected]. 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/CAG2NduVJG36h0XvyXa3Ff7%2BHB5QpRX39dEYbH%2B7xSa5AgsA6AQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

