我现在真的很挣扎,试图将 leptonica 的 1.74 版本构建为 Visual Studio 项目。我已按照此处http://www.leptonica.com/source/README.html的官方 leptonica 说明进行操作
但是在运行 cmake 时出现以下错误
Could NOT find GIF (missing: GIF_LIBRARY GIF_INCLUDE_DIR)
Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR)
Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
Could NOT find PNG (missing: PNG_LIBRARY PNG_PNG_INCLUDE_DIR)
Could NOT find TIFF (missing: TIFF_LIBRARY TIFF_INCLUDE_DIR)
Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
之后,由于这些错误,我在 Visual Studio 中运行的结果解决方案无法构建:
如果有人告诉我如何解决该问题,或者是否有任何其他方法可以为 leptonica 版本 >=1.74 创建可构建的 Visual Studio 项目,我将不胜感激
谢谢
PS如果重要的话,我有VS2015