how to compile tesseract on msys2/mingw?

127 views
Skip to first unread message

Simon Eigeldinger

unread,
Mar 4, 2016, 3:17:38 PM3/4/16
to tesser...@googlegroups.com
Hi all,

Now i am back having changed from cygwin to msys2/mingw.
anyone knows how to compile tesseract best on this platform?

i also thought of getting a daily build system to run on linux but i
guess i am a little bit failing with that.
i guess at the moment there is nothing around which builds daily builds
from the source.

greetings,
simon

--
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 wurde von Avast Antivirus-Software auf Viren geprüft.
https://www.avast.com/antivirus

ShreeDevi Kumar

unread,
Mar 4, 2016, 11:10:07 PM3/4/16
to tesser...@googlegroups.com

ShreeDevi
____________________________________________________________
भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com

--
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 tesseract-oc...@googlegroups.com.
To post to this group, send email to tesser...@googlegroups.com.
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/56D9EB33.8090501%40vol.at.
For more options, visit https://groups.google.com/d/optout.

ShreeDevi Kumar

unread,
Mar 5, 2016, 12:06:37 AM3/5/16
to tesser...@googlegroups.com
I had compiled it a couple of years back but do not have all the details now.

The following pages may be helpful:



An example of fetching the mingw{32,64} repository source, building and then installing a package from it is:
 
git clone "https://github.com/Alexpux/MINGW-packages"
cd MINGW-packages/mingw-w64-tesseract-ocr
makepkg-mingw -sLf
pacman -U mingw-w64-*-python3-*-any.pkg.tar.xz

The -sLf passed to makepkg* means:
Flag NameFlag Description
-s--syncdepsInstall missing dependencies with pacman
-L--logLog package build process
-f--forceOverwrite existing package

You will need to update MINGW-packages/mingw-w64-tesseract-ocr/PKGBUILD
and change the source to point to
or whichever release you want to use
before running makepkg



ShreeDevi
____________________________________________________________
भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com

ShreeDevi Kumar

unread,
Mar 5, 2016, 12:13:08 AM3/5/16
to tesser...@googlegroups.com
git clone "https://github.com/Alexpux/MINGW-packages"
cd MINGW-packages/mingw-w64-tesseract-ocr

(change PKGBUILD)

makepkg-mingw -sLf
pacman -U mingw-w64-*-tesseract-ocr-*-any.pkg.tar.xz

(I had copied example of python3 and missed out changing the command for running pacman)

ShreeDevi
____________________________________________________________
भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com

Simon Eigeldinger

unread,
Mar 5, 2016, 1:49:58 PM3/5/16
to tesser...@googlegroups.com
Thanks for the info.
might have a look at this.

greetings,
simon

ShreeDevi Kumar

unread,
Mar 9, 2016, 11:14:42 PM3/9/16
to tesser...@googlegroups.com
Simon,
You can try the attached pkgbuild for building the latest source from git.

ShreeDevi
____________________________________________________________
भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com

PKGBUILD

Sriranga(83yrsold)

unread,
Mar 10, 2016, 12:21:01 AM3/10/16
to tesser...@googlegroups.com
Shree,
I have installed tesseract-ocr dev version 3.5.0 in ubuntu 15.10. It is presumed that version 3.5.00 dev is latest version than 3.04.01 and also no changes effected  on existing traineddata files generated by Ray.
With blessings, sriranga(83+)

Reply all
Reply to author
Forward
0 new messages