I solved the problem by rewriting the source code of Tesseract (im using SVN 597). As nguyenq said, Tesseract is trying to find data on the path given by the TESSDATA_PREFIX environment variable. If this is not found, then this makes some tricks that I do not understand :). Therefore, if someone needs a portable version of Tesseract (which does not depend on the installation of Tesseract), edit mainblk.cpp around line 60, this is my version:
// remove the stuff that Tesseract does to find the installation path /* if (!getenv("TESSDATA_PREFIX")) {
Now you can pack things in the folder "tesseract executable location" \ tessdata p>
sydd
source share