I am trying to compile the source code of Tesseract Open Source OCR Engine (https://github.com/tesseract-ocr/tesseract).
But when running cmake, I always get the following error:
CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: leptonica_OUTPUT_NAME linked by target "libtesseract" in directory /home/test/github/tesseract
I have already downloaded the source code of leptonica (http://www.leptonica.com/download.html) and installed it.
I am wondering which value should I set to leptonica_OUTPUT_NAME.
I ran into the same problem. It seems that
in
CMakeLists.txt
has problems finding leptonica whereas cmake'sfind_package
just works fine:For completeness (both compiled from sources):