I had the same problem, and looks like it originates from the fact
that defined TESSDATA_PREFIX macro switches off runtime datapath
definition.
I solved it by compiling with
./configure --prefix=/Users/admin/Projects/OCR/install/ CXXFLAGS=-
UTESSDATA_PREFIX
where -U undefines TESSDATA_PREFIX and something like
_isTesseractEnabled = !(_tessInst.Init("FillipokReader.app/Contents/
share/", "eng"));
works perfectly fine.
This looks like a hack, but I do not know a better way. Maybe this
should be put as a bug request.
On Oct 13, 9:38 pm, Christian Hedin <
christian.hedin.jay...@gmail.com>
wrote:
> Hi,
>
> I have compiled Tesseract for iPhone OS and it seems to link and run
> fine until I do:
>
> TessBaseAPI::Init(dataPath, NULL, NULL, false, 0, NULL);
>
> According to the API documentation this would usedataPathto locate
> the datafiles, right?
>
> WhateverdataPathI use the result is always at runtime: