tesseract編譯錯誤:fatal error: allheaders.h: No such file or directory

錯誤描述:html

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

#include          "allheaders.h"

解決辦法:spa

一、確認是否安裝了leptonicacode

二、配置環境變量xml

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 

 

若是仍然沒法解決,參考如下文章從新安裝:htm

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

相關文章
相關標籤/搜索