Ask Your Question

Revision history [back]

Thank you, the obvious was right in front of my eyes, where 'include' was asking for a directory I thought the same for the lib directory, what was needed was just one library (or actually two as I made the same error with another path). The files were 'libtesseract###.lib' and 'liblept###.lib'. Problem solved, I will write a clear answer with correct example when I get home.

Thank you, you Berak, the obvious was right in front of my eyes, where 'include' was asking for a directory I thought the same for the lib directory, what was needed was just one specific library (or actually two file.

Unlike the CMake configuration value for the 'Include' path that points to a directory, the path for the 'Tesseract Library' and Lept Library' must point to specific .lib files as I made the same error below;

Tesseract_INCLUDE_DIR = C:\Program Files\Tesseract-OCR\include\

Lept_LIBRARY = C:\Program Files\Tesseract-OCR\lib\liblept168.lib

Tesseract_LIBRARY = C:\Program Files\Tesseract-OCR\lib\libtesseract302.lib

You may need to change the path if you have not used the default installation location for Tesseract, you may also need to change the version number part of the .lib files if you have installed a different version.

If you are unable to find the .lib files you may need to install Tesseract with another path). The files were 'libtesseract###.lib' and 'liblept###.lib'. Problem solved, I will write a clear answer with correct example when I get home.

the 'Developer files' option selected, or download them separately.

Ensuring these three paths are populated in the configuration may also help resolve the 'Tesseract = NO' issue that can occur if any one of these three paths are not populated.

/Mike