tesseract-ocr / tesstrain

Train Tesseract LSTM with make
Apache License 2.0
641 stars 191 forks source link

Error while compiling tesseract within tesstrain #363

Closed akash-akya closed 11 months ago

akash-akya commented 11 months ago

I am trying to compile tesseract and leptonica within tessetrain using make leptonica tesseract and the compilation is failing at the end with following error

....
make[4]: Nothing to be done for `install-exec-am'.
 /usr/local/bin/gmkdir -p '/Users/akash/repo/digitization/tesstrain/usr/share/tessdata/configs'
 /usr/local/bin/ginstall -c -m 644 inter makebox box.train unlv ambigs.train lstm.train lstmdebug api_config kannada box.train.stderr quiet logfile digits get.images lstmbox wordstrbox alto hocr pdf tsv txt linebox rebox strokewidth bigram '/Users/akash/repo/digitization/tesstrain/usr/share/tessdata/configs'
Making install in tessconfigs
make[4]: Nothing to be done for `install-exec-am'.
 /usr/local/bin/gmkdir -p '/Users/akash/repo/digitization/tesstrain/usr/share/tessdata/tessconfigs'
 /usr/local/bin/ginstall -c -m 644 batch batch.nochop nobatch matdemo segdemo msdemo '/Users/akash/repo/digitization/tesstrain/usr/share/tessdata/tessconfigs'
make[4]: Nothing to be done for `install-exec-am'.
 /usr/local/bin/gmkdir -p '/Users/akash/repo/digitization/tesstrain/usr/share/tessdata'
 /usr/local/bin/ginstall -c -m 644 pdf.ttf '/Users/akash/repo/digitization/tesstrain/usr/share/tessdata'
make[1]: *** No rule to make target `training-install'.  Stop.
make: *** [tesseract.built] Error 2
stweil commented 11 months ago

Don't use that compilation. I'd like to remove it, because it's always a source of frustration, and there is no real need for it.

Use a pre-built Tesseract for your operating system.

akash-akya commented 11 months ago

I see. I wanted to have a reproducible setup with explicit version tracking. Anyway, that is not that important now. Thanks!