照着 https://github.com/tesseract-ocr/tesseract/wiki/Compiling#macos 官方 wiki 来的,用 Homebrew 方式安装的依赖,然鹅,执行
make training
的时候提示
Need to reconfigure project, so there are no errors
这是麻意思啊???
Mac 10.15
官方的命令(g++-8 那里我通不过,所以我改成 g++了):
git clone https://github.com/tesseract-ocr/tesseract/
cd tesseract
./autogen.sh
./configure CXX=g++-8 CPPFLAGS=-I/usr/local/opt/icu4c/include LDFLAGS=-L/usr/local/opt/icu4c/lib
make -j
sudo make install # if desired
make training # if installed with training dependencies
1
sadfQED2 OP 至今没找到怎么解决,最终用 docker 了,docker 真香
|