tesseract编译错误:fatal error: allheaders.h: No such file or directory

错误描述:

globaloc.cpp:25:33: fatal error: allheaders.h: No such file or directory  

#include          "allheaders.h"

解决办法:

1、确认是否安装了leptonica

2、配置环境变量

vi /etc/profile

添加:
CPLUS_INCLUDE_PATH=$CPLUS_INCLUDE_PATH:/usr/local/leptonica/include/leptonica
export CPLUS_INCLUDE_PATH
C_INCLUDE_PATH=$C_INCLUDE_PATH:/usr/local/leptonica/include/leptonica
export C_INCLUDE_PATH
 
source /etc/profile 

 

如果仍然无法解决,参考以下文章重新安装:

http://www.cnblogs.com/rouge/p/7275391.html

 

posted @ 2017-08-02 18:41  牛肉哥  阅读(4001)  评论(0编辑  收藏  举报