2017-07-08 3 views
0

Ich versuche, den Quellcode der Tesseract Open Source OCR Engine zu kompilieren (https://github.com/tesseract-ocr/tesseract).Tesseract kompilieren Problem: leptonica_OUTPUT_NAME ist nicht gesetzt

Aber wenn Cmake läuft, ich folgende Fehlermeldung immer erhalten:

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

Ich habe bereits den Quellcode leptonica heruntergeladen (http://www.leptonica.com/download.html) und installiert es.

Ich frage mich, welchen Wert ich auf leptonica_OUTPUT_NAME setzen sollte.

+2

Es gibt eine Abhilfe, die: alle leptonica_OUTPUT_NAME-NOTFOUND ersetzt für Datei CMakeCache.txt leptonica – camino

Antwort

2

Ich stieß auf das gleiche Problem. Es scheint, dass

find_package(PkgConfig REQUIRED) 
pkg_check_modules(Leptonica REQUIRED lept>=${MINIMUM_LEPTONICA_VERSION}) 

in CMakeLists.txt Probleme zu finden leptonica hat während Cmake des find_package nur funktioniert gut:

if(NOT EXISTS ${PROJECT_SOURCE_DIR}/.cppan) 
# if (NOT Leptonica_DIR AND NOT MSVC) 
#  find_package(PkgConfig REQUIRED) 
#  pkg_check_modules(Leptonica REQUIRED lept>=${MINIMUM_LEPTONICA_VERSION}) 
# else() 
     find_package(Leptonica ${MINIMUM_LEPTONICA_VERSION} REQUIRED CONFIG) 
# endif() 
else() 

Der Vollständigkeit (beide aus Quellen zusammengestellt):

  • Tesserakts 4.00.00alpha
  • leptonica-1.74.4
Verwandte Themen