我们最初在centos 7中安装了tesseract 3.05,并且知道切换到tesseract 4.0.0 beta。我们能够在Windows中安装tesseract 4.0.0。我们已经在centos中卸载了旧版本,并能够在控制台上成功运行到./configure。
但是,当我们在控制台上运行make时,会出现以下错误:
...
Making all in api
make[2]: Entering directory `/home/hduser/tesseract-4.0.0-beta.1/api'
/bin/sh ../libtool --tag=CXX --mode=link g++ -g -O2 -std=c++11 -o tesseract tesseract-tesseractmain.o libtesseract.la -L/usr/local/lib -llept -fopenmp -lrt -lpthread
libtool: link: g++ -g -O2 -std=c++11 -o .libs/tesseract tesseract-tesseractmain.o -fopenmp ./.libs/libtesseract.so -L/usr/local/lib /usr/local/lib/liblept.so -lm -lz -lpng15 -ljpeg -ltiff -lwebp -lrt -lpthread -fopenmp -Wl,-rpath -Wl,/usr/local/lib
/home/linuxbrew/.linuxbrew/bin/ld: cannot find -lpng15
/home/linuxbrew/.linuxbrew/bin/ld: cannot find -ljpeg
/home/linuxbrew/.linuxbrew/bin/ld: cannot find -ltiff
/home/linuxbrew/.linuxbrew/bin/ld: cannot find -lwebp
collect2: error: ld returned 1 exit status
make[2]: *** [tesseract] Error 1
make[2]: Leaving directory `/home/hduser/tesseract-4.0.0-beta.1/api'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/hduser/tesseract-4.0.0-beta.1'
make: *** [all] Error 2
我们已经将linuxbrew更新为可用的最新版本。但是我们仍然会遇到同样的错误。 需要知道问题出在哪里。