compiling tesseract on cygwin

146 views
Skip to first unread message

simon.ei...@vol.at

unread,
Oct 1, 2014, 4:53:40 AM10/1/14
to tesser...@googlegroups.com
hi all,

maybe someone could help me with this?

Can someone give me full instructions how to compile tesseract from
the git repo under cygwin?
has someone tested that recently?

i also saw the language data isn't available on the git repo.

greetings and thanks,
simon

--
Simon Eigeldinger
simon.ei...@vol.at

Wes Fowlks

unread,
Oct 1, 2014, 10:32:43 AM10/1/14
to tesser...@googlegroups.com
I was able to build it. Do you need it to be from the git repo?

to get the language data, you can use curl and download it from the google code site: 


I have included a shell script that I have used to build it recently. 
build.sh

Simon Eigeldinger

unread,
Oct 1, 2014, 3:03:52 PM10/1/14
to tesser...@googlegroups.com
hi,

thanks.
interesting. just compiled a static build and got 1 dll
(cygtesseract-3.dll size around 3592 kb) and tesseract.exe (around 84 kb).
last time in 2012 i kind of got a nearly 27 mb large exe (tesseract.exe).
without actually the other dlls.
but it seems to run without any problem.


i used the following script today:

--- script begin ---

# building tesseract script

# cd to c

cd /cygdrive/c/

# remove tesseract and tesseractsrc directories

rm -r tesseractsrc
rm -r tesseract

# get tesseract from git and drop it to tesseractsrc

git clone https://code.google.com/p/tesseract-ocr/ tesseractsrc

# create the tesseract dir

mkdir tesseract

# cd to the source dir

cd tesseractsrc

# create the configure script

./autogen.sh --prefix=/cygdrive/c/tesseract

# execute the configure script

./configure --prefix=/cygdrive/c/tesseract --disable-tessdata-prefix
--disable-shared

# build and install tesseract

make install

---script end---

before in 2012 i used to do a

make -j 4

before i did

make install

after make install i did make training but it seems the training tools
seem to have some compilation issues.

greetings,
simon
>> simon.ei...@vol.at <javascript:>
>>
>

--
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

---
Diese E-Mail ist frei von Viren und Malware, denn der avast! Antivirus Schutz ist aktiv.
http://www.avast.com

Reply all
Reply to author
Forward
0 new messages