deepin安装tesseract出错,tesserocr.cpp:653:10: fatal error: leptonica/allheaders.h: 没有那个文件或目录

错误:

tesserocr.cpp:653:10: fatal error: leptonica/allheaders.h: 没有那个文件或目录
#include "leptonica/allheaders.h"
^~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

 

 

解决办法: sudo apt install libleptonica-dev

      sudo apt install libtesseract-dev

 

 

 

 

 

 

 

 

原文:https://blog.csdn.net/u011148366/article/details/75674845

posted @ 2019-01-05 18:14  #忘乎所以#  阅读(2521)  评论(0编辑  收藏  举报