Dn(a 24.05.2010 21:39, Lars Aronsson  wrote / napísal(a):
> Jimmy O'Regan wrote:
>>>>> ‘ScrollView::Image(Pix*&, inT32&, int)’
>>>>> ../viewer/scrollview.h:266: note: candidates are: void
>>>>> ScrollView::Image(const char*, int, int)
>
>> Weird. It's there:
>>    337 theraysmith #ifdef HAVE_LIBLEPT
>>    149 theraysmith // Draw a Pix on (x,y).
>>    149 theraysmith   void Image(struct Pix* image, int x_pos, int
>> y_pos);
>>    337 theraysmith #endif
>>
>> The only thing I can think of is that you might need to make clean
>> before running make.
>
> I should add that I have an AMD Athlon 64 bit CPU.
> The bug report filed by Zdenko also says
> "tesseract-ocr r354
> <http://code.google.com/p/tesseract-ocr/source/detail?r=354>,
> Mandrivalinux 2010.1 64bit",
> but the compiler error message is full of "inT32"
> and the prototype above says "int".
>
>
I think I find workaround:
1. Add "PIX *pix;" to line 225 in api/tesseractmain.cpp
2. Than configure&compile tesseract with these commands:

    ./runautoconf
    CPPFLAGS="-DHAVE_LIBLEPT"./configure ; make
    make install
      

Can you confirm if it works for you?

Than I run:

    /usr/local/bin/tesseract eurotext.tif output2


It will produce error message:

    Tesseract Open Source OCR Engine with Leptonica

    Warning in pixReadStreamTiff: tiff page 1 not found

    Error in pixReadTiff: pix not read


But also output (output2.txt) :-[

Zd.


      

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to