Hello Marco, here come the deserved 2 attachments.
Without setting the Windows environment variable TESSDATA_PREFIX to C:\DEV\cygwin64\usr\share\tessdata I get: $ tesseract --list-langs Error opening data file C:\DEV\tesseract\Tesseract-OCR\tessdata/eng.traineddata Please make sure the TESSDATA_PREFIX environment variable is set to the parent directory of your "tessdata" directory. Failed loading language 'eng' Tesseract couldn't load any languages! Could not initialize tesseract. This I put into cygcheck-without-windows-environment-variable-set.out. ---------------------------------------------------------------------------------------------------------------------------------------------------- Then I set TESSDATA_PREFIX to C:\DEV\cygwin64\usr\share\tessdata and restart cygwin. I get: $ tesseract --list-langs List of available languages (13): arbeitsunfaehigkeit deu deu_frak eng fra ita ita_old nld osd por spa spa_old vie This I put into cygcheck-with-windows-environment-variable-set.out. Gretings, Marco Schmitz -----Ursprüngliche Nachricht----- Von: Marco Atzeri [mailto:marco.atz...@gmail.com] Gesendet: Dienstag, 22. September 2015 18:15 An: Schmitz, Marco <marco.schm...@adesso-mobile.de>; cygwin@cygwin.com Betreff: Re: AW: Tesseract 3.04 - Cygwin64 - Windows 8.1 - Can't open makebox On 22/09/2015 14:18, Schmitz, Marco wrote: > Okay, my shell script problem "not finding makebox" was a line ending problem > (CR+LF). > > But how about TESSDATA_PREFIX ? > > -----Ursprüngliche Nachricht----- > Von: cygwin-ow...@cygwin.com [mailto:cygwin-ow...@cygwin.com] Im > Auftrag von Schmitz, Marco > Gesendet: Dienstag, 22. September 2015 13:23 > An: Marco Atzeri <marco.atz...@gmail.com>; cygwin@cygwin.com > Betreff: AW: Tesseract 3.04 - Cygwin64 - Windows 8.1 - Can't open > makebox > > Hi Marco, > > without setting TESSDATA_PREFIX (neither Windows environment variables nor > .bash_profile) I get: > > $ tesseract --list-langs > Error opening data file > C:\DEV\tesseract\Tesseract-OCR\tessdata/eng.traineddata This file path is surely not coming from cygwin tesseract default. have you another version around in the path ? $ which tesseract /usr/bin/tesseract $ tesseract --version tesseract 3.04.00 leptonica-1.72 libgif 4.1.6(?) : libjpeg 8d (libjpeg-turbo 1.3.1) : libpng 1.6.17 : libtiff 4.0.3 : zlib 1.2.8 : libwebp 0.4.3 As reported on https://www.cygwin.com/problems.html please Run cygcheck -s -v -r > cygcheck.out and include that file as an attachment in your report. Please do not compress or otherwise encode the output. Just attach it as a straight text file so that it can be easily viewed. Regards Marco
cygcheck-without-windows-environment-variable-set.out
Description: cygcheck-without-windows-environment-variable-set.out
cygcheck-with-windows-environment-variable-set.out
Description: cygcheck-with-windows-environment-variable-set.out
-- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple