Linking Error for Tesseract version 3.04 building using opencl

60 views
Skip to first unread message

Supriya Das

unread,
Jun 9, 2016, 10:40:28 AM6/9/16
to tesseract-ocr
Hello All,

     I am trying to build tesseract version 3.04 in opencl version. I have linked intel opencl sdk. and link libtiff library but when i am trying to build it getting some linking error.

    errors are as follow.

    unresolved external symbol _TIFFCleanup referenced in function "public: static struct Pix * __cdecl OpenclDevice::pixReadStreamTiffCl(struct _iobuf *,int)" (?pixReadStreamTiffCl@OpenclDevice@@SAPAUPix@@PAU_iobuf@@H@Z)
unresolved external symbol _TIFFGetField referenced in function "public: static struct Pix * __cdecl OpenclDevice::pixReadFromTiffStreamCl(struct tiff *)" (?pixReadFromTiffStreamCl@OpenclDevice@@SAPAUPix@@PAUtiff@@@Z)
unresolved external symbol _TIFFGetFieldDefaulted referenced in function "public: static struct Pix * __cdecl OpenclDevice::pixReadFromTiffStreamCl(struct tiff *)" (?pixReadFromTiffStreamCl@OpenclDevice@@SAPAUPix@@PAUtiff@@@Z)
unresolved external symbol _TIFFReadDirectory referenced in function "public: static struct Pix * __cdecl OpenclDevice::pixReadStreamTiffCl(struct _iobuf *,int)" (?pixReadStreamTiffCl@OpenclDevice@@SAPAUPix@@PAU_iobuf@@H@Z)
unresolved external symbol _TIFFScanlineSize referenced in function "public: static struct Pix * __cdecl OpenclDevice::pixReadFromTiffStreamCl(struct tiff *)" (?pixReadFromTiffStreamCl@OpenclDevice@@SAPAUPix@@PAUtiff@@@Z)
unresolved external symbol _TIFFReadScanline referenced in function "public: static struct Pix * __cdecl OpenclDevice::pixReadFromTiffStreamCl(struct tiff *)" (?pixReadFromTiffStreamCl@OpenclDevice@@SAPAUPix@@PAUtiff@@@Z)
unresolved external symbol _TIFFReadRGBAImageOriented referenced in function "public: static struct Pix * __cdecl OpenclDevice::pixReadFromTiffStreamCl(struct tiff *)" (?pixReadFromTiffStreamCl@OpenclDevice@@SAPAUPix@@PAUtiff@@@Z)
unresolved external symbol _TIFFFdOpen referenced in function "public: static struct tiff * __cdecl OpenclDevice::fopenTiffCl(struct _iobuf *,char const *)" (?fopenTiffCl@OpenclDevice@@SAPAUtiff@@PAU_iobuf@@PBD@Z)
unresolved external symbol _TIFFClientOpen referenced in function "struct tiff * __cdecl fopenTiffMemstream(char const *,char const *,unsigned char * *,unsigned int *)" (?fopenTiffMemstream@@YAPAUtiff@@PBD0PAPAEPAI@


Environment:
visual studio 2012
os: Windows 8
opencl : intel sdk.


Thanks in advance.

Zdenko Podobný

unread,
Jun 9, 2016, 10:48:58 AM6/9/16
to tesser...@googlegroups.com
Seems like you are missing tiff library in linking...

Anyway OpenCl is experimental feature and there are several issues reported (see issue tracker).

Zdenko

--
You received this message because you are subscribed to the Google Groups "tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-oc...@googlegroups.com.
To post to this group, send email to tesser...@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/178af5a6-66ab-4796-928d-002153626421%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Supriya Das

unread,
Jun 10, 2016, 1:22:39 AM6/10/16
to tesseract-ocr
Thanks for your reply. Can you please help me out from where i can get tiff library which tesseract using. 

Zdenko Podobný

unread,
Jun 10, 2016, 4:30:58 AM6/10/16
to tesser...@googlegroups.com
You should use the same library as in leptonica.

Zdenko

Reply all
Reply to author
Forward
0 new messages