-
Notifications
You must be signed in to change notification settings - Fork 9.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Binaries for windows #209
Comments
That might be caused by missing permissions: all but the very latest version try to create temporary files in the root directory c:. You will need a Tesseract build with a very new version of Leptonica to fix this problem, see DanBloomberg/leptonica@3038a70. |
Leptonica can be built on windows. But by default it is built without any image libraries (i.e. cannot load/save images). So, no png,gif,tiff,... functions available. |
OK, thanks for the replies. Can I download a version somewhere that On https://github.com/tesseract-ocr/tesseract/wiki/Downloads it says "Currently, there is no official Windows installer for newer versions." :-( |
Try these binaries compiled by me. |
|
Hi, I made a step by step guide how to compile Tesseract on Windows.. You can check my guide's here: http://gensanblog.com/2016/01/28/how-to-compile-tesseract-git-project-on-windows/ You can also download the compiled version.. |
@bantilan: please add it https://github.com/tesseract-ocr/tesseract/wiki/Compiling#windows (every github used can modify it) |
It's a bad guide. Do not add it anywhere.
|
I uploaded my local branch with almost all leptonica's deps sources to https://github.com/egorpugin/leptonica/tree/with_libs. You can find them in /dep. Most of those were taken from opencv distribution. They can be somewhere misconfigured etc. Also that branch is following master branch of leptonica, so probably it's not so stable as release. |
Hi Egor, thank you for correcting.. I am new to this and I made lots of edit's on the guide.. I will edit my post and focus on cygwin, I also added dll's so that it can run without cygwin.. I'll create a new guide for MSVC.. |
@egorpugin : Could you also build the training program - text2image for windows |
No, I can't. |
@egorpugin: OK. @zdenop : There are a number of older requests/issues for windows build. I'll add a comment to refer to this issue and you could close them. Thanks! |
@egorpugin - Are the windows binaries at Thanks! |
They are from master branch. Probably on this commit ec44221 |
Thanks for clarifying, @egorpugin . I was confused after seeing the following on the releases page:
|
This build does not create PDFs, but the cygwin from http://3.onj.me/tesseract/ build does. |
@egorpugin, can you confirm this? |
Did not run tests on my binaries, so it's possible. |
@nickbe, one more (unofficial) option for Windows: |
The installers (made with MinGW-w64) are at https://github.com/UB-Mannheim/tesseract/wiki. |
Yeah. For some reason I omitted the 'wiki' part from the link. |
https://github.com/UB-Mannheim/tesseract doesn't seem to provide binaries right now. |
@nickbe, just add |
But these do not seem to be the VC binaries, or are they? There's only a problem with generating PDFs with the VC runtimes. |
That's right, the UB Mannheim executables are built with Mingw-w64. |
What is this business about certain builds not supporting PDF output? There is nothing special or weird with that section of code. Are they just old builds from before the feature was created, or is there something else going on? |
Is there a simple command to check pdf generation? |
The discussion about the PDF issue in egor's build should be continued in #338 |
Latest VC binaries by @egorpugin with PDF generation are at following link, as per #338: https://www.dropbox.com/s/pxu2hp6mg1a64zj/tesseract-3.05.00dev-win32-vc19-2016-jun-03.zip?dl=1 |
Great. Thanks ! |
Hi! I'd like to share one more way of building tesseract(+leptonica+other_image_libraries) on Windows. Linux probably will work too.
So, the build should be pretty straightforward and available for everyone with installed Visual Studio. You can try it on any version supported by tesseract. If you like the way of building tesseract with CPPAN, I could implement such easy way of integration of tesseract into user (your) apps. Sorry for the noise. |
@egorpugin: thanks! I tried it in VS2010 and I face one problem: |
During normal workflow this is not possible. Because of the following: So you cannot control leptonica's dependencies. But now it's possible to introduce some changes to demo giflib itself. I've added some ifdefs to control usage of stdbool.h, so you can check if it works. Just re-run cppan command in tesseract dir and try to build a VS solution. |
@egorpugin I follow the instructions. However CPPAN returns
Is that any configuration I am missing? |
Usually it means that you don't have a letsencrypt certificate installed on your system (old ubuntu etc.). I've added an option ('-k' or '--ignore-ssl-checks') to skip strict ssl checks. Please, re-download the client and run 'cppan -k'. For more info see 'cppan -h'. On windows you can upgrade the client with 'cppan --self-upgrade' (only if this option is available, check 'cppan -h'). |
FYI I've added simple guide on how to build tesseract on Windows https://github.com/tesseract-ocr/tesseract/wiki/Compiling#master-branch-305-and-later |
@egorpugin I tried your way for getting static lib with -DSTATIC=1
I built && installed it w/o any issues but linking my app with it failed with two issues:
please advise if it is correct |
This guide is quite old. I think it's about tesseract building, not linking to your app. It's quite different or might have additional steps. |
Where can I download Tesseract for Windows?
All Links point to code.google.com, but since Tesseract has moved here all links are dead.
Also I would like to downoad different versions (2.x, 3.x) to see if any of them works.
The version I have right now (3.05 Setup) does not read any images but produces errors instead.
The text was updated successfully, but these errors were encountered: