“ Make”文件中的Tesseract安装错误

时间:2019-02-15 10:55:27

标签: ocr tesseract python-tesseract

我正在使用以下系统     * Tesseract版本:4.0.0-324-gb67f     * 平台:Ubuntu16.04 64位 我想重新训练tesseract,我指的是original stackblitz code上的Google文档。这是我要遵循的步骤

1. git pull https://github.com/tesseract-ocr/tesseract.git

2. cd tesseract/

3. ./autogen.sh

4. ./configure

5. make

6. make check

进行make检查后,我发现此错误:

make[1]: Entering directory '/home/ajinkya/Documents/tesseract/doc'
make[1]: Nothing to be done for 'check'.
make[1]: Leaving directory '/home/ajinkya/Documents/tesseract/doc'
Making check in unittest
make[1]: Entering directory '/home/ajinkya/Documents/tesseract/unittest'
make  libgtest.la libgtest_main.la libgmock.la libgmock_main.la libabseil.la apiexample_test applybox_test baseapi_test bitvector_test cleanapi_test colpartition_test dawg_test denorm_test fileio_test heap_test imagedata_test indexmapbidi_test intfeaturemap_test intsimdmatrix_test lang_model_test layout_test linlsq_test loadlang_test mastertrainer_test matrix_test nthitem_test osd_test paragraphs_test progress_test qrsequence_test recodebeam_test rect_test resultiterator_test shapetable_test stats_test stringrenderer_test tablefind_test tablerecog_test tabvector_test tfile_test commandlineflags_test lstm_recode_test lstm_squashed_test lstm_test lstmtrainer_test unichar_test unicharcompress_test unicharset_test validate_grapheme_test validate_indic_test validate_khmer_test validate_myanmar_test validator_test
make[2]: Entering directory '/home/ajinkya/Documents/tesseract/unittest'
make[2]: *** No rule to make target '../googletest/googletest/src/gtest-all.cc', needed by '../googletest/googletest/src/libgtest_la-gtest-all.lo'.  Stop.
make[2]: Leaving directory '/home/ajinkya/Documents/tesseract/unittest'
Makefile:2207: recipe for target 'check-am' failed
make[1]: *** [check-am] Error 2
make[1]: Leaving directory '/home/ajinkya/Documents/tesseract/unittest'
Makefile:495: recipe for target 'check-recursive' failed
make: *** [check-recursive] Error 1

如何解决此错误?

1 个答案:

答案 0 :(得分:-1)

您从git运行版本,必须遵循https://github.com/tesseract-ocr/tesseract/blob/master/INSTALL.GIT.md指令。

您为什么还要运行make check?你知道你在做什么吗?甚至您上面发布的说明都将其标记为可选 ...