Win10 + vs2017 编译并配置tesseract-5.0.0-alpha 遇到的问题

使用的cppan安装的依赖

问题1:最大的问题是Leptonica 1.79 cppan出了问题 ,cppan.yml中是空的,导致Leptonica 1.79的依赖没有安装全。

解决方法:这个我是手动下载源码编译的Leptonica ,然后在tesseract 执行后会自动修改 CMakelist.txt 文件加入一下文件的依赖

set(Leptonica_LIBRARIES leptonica)

set(Leptonica_DIR "D:/Program1/leptonica-1.74.3/")

#File LeptonicaTargets.cmake
# Create imported target leptonica
add_library(leptonica SHARED IMPORTED)
# Import target "leptonica" for configuration "Release"
set_property(TARGET leptonica APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
set_target_properties(leptonica PROPERTIES

问题2:

Argument not separated from preceding token by whitespace.
This warning is for project developers.  Use -Wno-dev to suppress it.

这个错误是由于引用刘路径导致的 。

路径要用 / 或者 \\ 而不能是\

正确的写法 C:/Users/administratot/.cppan/storage/lib/6b0ff34a/Release/pvt.cppan.demo.jpeg-9.2.0.lib

错误的写法 C:\Users\administratot\.cppan\storage\lib\6b0ff34a\Release\pvt.cppan.demo.jpeg-9.2.0.lib

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值