tesseract 编译问题:leptonica_OUTPUT_NAME 未设置
tesseract compile issue: leptonica_OUTPUT_NAME is not set
我正在尝试编译 Tesseract 开源 OCR 引擎 (https://github.com/tesseract-ocr/tesseract) 的源代码。
但是当运行 cmake 时,我总是得到以下错误:
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
我已经下载了leptonica的源代码(http://www.leptonica.com/download.html)并安装了
我想知道应该将哪个值设置为 leptonica_OUTPUT_NAME。
我运行陷入同样的问题。好像
find_package(PkgConfig REQUIRED)
pkg_check_modules(Leptonica REQUIRED lept>=${MINIMUM_LEPTONICA_VERSION})
在 CMakeLists.txt
中发现 leptonica 有问题,而 cmake 的 find_package
工作正常:
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()
为了完整性(均从源代码编译):
- 超正方体 4.00.00alpha
- leptonica-1.74.4
我正在尝试编译 Tesseract 开源 OCR 引擎 (https://github.com/tesseract-ocr/tesseract) 的源代码。
但是当运行 cmake 时,我总是得到以下错误:
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
我已经下载了leptonica的源代码(http://www.leptonica.com/download.html)并安装了
我想知道应该将哪个值设置为 leptonica_OUTPUT_NAME。
我运行陷入同样的问题。好像
find_package(PkgConfig REQUIRED)
pkg_check_modules(Leptonica REQUIRED lept>=${MINIMUM_LEPTONICA_VERSION})
在 CMakeLists.txt
中发现 leptonica 有问题,而 cmake 的 find_package
工作正常:
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()
为了完整性(均从源代码编译):
- 超正方体 4.00.00alpha
- leptonica-1.74.4