0

I am using cygwin to compile the Tesseract 3.03 source code.

The following error is encountered when I run make after configure. I have no knowledge to modify the Tesseract source code. Anyone saw this error before? Or is there any prebuilt version of Tessearct 3.03? I need this very version because it contains the training tools text2image and they claim it can be built with make training.

enter image description here

ADD 1

Below is the code snippet in trouble.

enter image description here

It seems to me the select function is a C++ library function. Maybe some library is missing on my Cygwin installation. But I am not sure which one.

ADD 2

Following rubenvb's suggestion on this thread:Error during making "xz-5.2.1" with MinGW/MSYS

I start to use MSYS2 + MinGW-w64 to compile Tesseract 3.03. After fighting through all the dependencies and pre-requisites. I finally successfully configure the Tesseract 3.03 source. And then encountered the following error during make:

enter image description here

I found a similar thread: fatal error: strtok_r.h: No such file or directory (while compiling tesseract-ocr-3.01 in MinGW)

It seems I need to manually add some file to the tesseract source. But I am not sure where to place it.

For now I need to take some sleep.

Hope someone could shed some light on this issue. I will continue with it tomorrow...

Reference

Compile Tesseract 3.03 with vs2013

http://vorba.ch/2014/tesseract-3.03-vs2013.html

Compile Tesseract 3.02 with Cygwin

http://vorba.ch/2014/tesseract-cygwin.html

Community
  • 1
  • 1
smwikipedia
  • 61,609
  • 92
  • 309
  • 482

2 Answers2

0

Found a tutorial here. As said in the comments:

Try to replace "c++11" with "gnu++11" in the file "configure", then rerun this script.

Thronghar
  • 457
  • 2
  • 10
0

I finally complete the compilation in a full Linux environment.

smwikipedia
  • 61,609
  • 92
  • 309
  • 482