Hi,
I'm curious to know how do you install tesseract and leptonica for opencv on windows.
Do you use cppan ?
Can you build leptonica with cmake and use it after in tesseract and opencv ? --> If yes without changed the cmakelists I'm very interested
Install vcpkg (MS packager to install windows based open source projects) and use powershell command like so.vcpkg install tesseract:x64-windows-static. Dependency libraries like Leptonicawill be auto installed for you. The tesseract can be auto integrated to your VS project using.vcpkg integrate install. Environment Tesseract Version: 5.0.0 alfa Commit Number: a1a177f Platform:Windows 10 64 bit Current Behavior: I can not build from source i had download SW client and save it at 'D:EssamSoftwareSW' the add to Path and i can run SW in. Environment Tesseract Version: 5.0.0 alfa Commit Number: a1a177f Platform:Windows 10 64 bit Current Behavior: I can not build from source i had download SW client and save it at 'D: Essam Software SW' the add to Path and i can run SW in.
Thanks for your answer

Comments
i tried to explain my experience before later i found this repo i used it for building leptonica's dependencies
if you want to build leptonica using opencv source you have to modify cmakelists.txt and then use this
| File Info | Description |
|---|---|
| File Size: | 2.2 MB |
| File Modification Date/Time: | 2020:01:10 12:07:25+00:00 |
| File Type: | Win32 EXE |
| MIME Type: | application/octet-stream |
| Machine Type: | Intel 386 or later, and compatibles |
| Time Stamp: | 2012:10:26 19:23:23+00:00 |
| PE Type: | PE32 |
| Linker Version: | 9.0 |
| Code Size: | 1807360 |
| Initialized Data Size: | 542720 |
| Uninitialized Data Size: | 0 |
| Entry Point: | 0x12efb8 |
| OS Version: | 5.0 |
| Image Version: | 0.0 |
| Subsystem Version: | 5.0 |
| Subsystem: | Windows command line |
| File Version Number: | 3.2.0.0 |
| Product Version Number: | 3.2.0.0 |
| File Flags Mask: | 0x0017 |
| File Flags: | (none) |
| File OS: | Win32 |
| Object File Type: | Executable application |
| File Subtype: | 0 |
| Language Code: | English (U.S.) |
| Character Set: | Unicode |
| File Description: | Tesseract command-line OCR engine |
| File Version: | 3,2,0,0 |
| Internal Name: | tesseract |
| Legal Copyright: | Copyright (C) 2012 Google, Inc. Licensed under the Apache License, Version 2.0 |
| Product Name: | Tesseract-OCR |
| Product Version: | 3.02 |
Tesseract Ocr For Windows
✻ Portions of file data provided by Exiftool (Phil Harvey) distributed under the Perl Artistic License.