Building Tesseract V4 - Problems

136 views
Skip to first unread message

Mark77

unread,
Nov 9, 2017, 3:37:32 PM11/9/17
to tesseract-ocr
I'm trying to build version 4 to run with VS2017 with C++ redist 2017.

Following the steps posted on this forum:
cd \petri
mkdir
Win64
cd
Win64
git clone
https://github.com/tesseract-ocr/tesseract tesseract
cd tesseract
cppan  
(I assume this wasn't necessary, but I'm trying to avoid improvising)
mkdir
Win64 && cd Win64
cppan
..
cmake
.. -G "Visual Studio 15 2017 Win64"

and other similar variations to the steps.

Everything appears to go correct right up to 'cmake' at this point i get the failure 'Leptonica_DIR-NOTFOUND'.

Now for the daft question - Do i need to simply include the Leptonica dll files in the Leptonica directory, or a complete new build, or the source? And if so what versions should be used?

Can anyone who has managed this please give me a pointer.


I know there is a version here (https://github.com/tdhintz/tesseract4win64) for c++ redist 2015 but I need to create one for 2017.

Thanks


THintz

unread,
Nov 9, 2017, 5:06:39 PM11/9/17
to tesseract-ocr
In my experience all of the dependencies are downloaded automatically.  I did custom builds to statically link everything into just 2 DLLs.  Which cmake did you use?

cmake --version
cmake version 3.8.0

CMake suite maintained and supported by Kitware (kitware.com/cmake). 

Mark77

unread,
Nov 10, 2017, 1:56:25 AM11/10/17
to tesseract-ocr
Hi THintz,

Im using  CMake 3.10.0-rc4. A few things are downloaded but not leptonica.

ShreeDevi Kumar

unread,
Nov 10, 2017, 3:08:20 AM11/10/17
to tesser...@googlegroups.com
Have you tried the cppan option as given in wiki

--
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-ocr+unsubscribe@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/b61ba47a-4594-474b-b178-968f4a5f6203%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

THintz

unread,
Nov 10, 2017, 12:14:38 PM11/10/17
to tesseract-ocr
I ran the procedure a week ago as described and had no trouble generating an SLN.  The procedure described in the wiki is the same as far as I can tell.  

Actually building the SLN in release mode had a problem unrelated to leptonica and other references.  There is a post here about that.

Check your cppan and cmake output for more clues.

Daniel Roller

unread,
Nov 12, 2017, 8:27:51 AM11/12/17
to tesseract-ocr
Worked for me after adding cppan, git, and cmake paths
Reply all
Reply to author
Forward
0 new messages