Tesseract 3.04 Build Error

1,141 views
Skip to first unread message

supriya Das

unread,
Jun 22, 2015, 9:09:23 AM6/22/15
to tesser...@googlegroups.com
Hello Every Body,

   I have downloaded Tesseract solution from  gitHub. When i trying to build solution i am getting some error like "error C2065: 'L_COMP_DATA' : undeclared identifier".
  So, How to solve this? I think its may be problem of Leptonica version. please suggest me which version of Leptonica is needed?    Thanks in advance.

  With Regards,
  Supriya Das.

Jeff Breidenbach

unread,
Jun 29, 2015, 3:46:53 AM6/29/15
to tesser...@googlegroups.com
You need version 1.71 or later. Current leptonica release is 1.72.

supriya Das

unread,
Jun 29, 2015, 9:30:39 AM6/29/15
to tesser...@googlegroups.com
Hello Jeff,

  Thanks for your reply, I Updated Leptonica version 1.71, after tha i am faceing error like. "LNK1104: cannot open file 'liblept171d.lib'. So, how to get this lib file?  which is not available . Please suggested me.

Kasi Selvam

unread,
Jul 18, 2015, 11:52:42 AM7/18/15
to tesser...@googlegroups.com


On Monday, 29 June 2015 13:16:53 UTC+5:30, Jeff Breidenbach wrote:
You need version 1.71 or later. Current leptonica release is 1.72.

hi,
 getting same error after using leptonica release is 1.72 in VB 2010 plz help to resolve this issue..
 
Error    1    error LNK1104: cannot open file 'liblept171d.lib'    D:\tesseract-master\vs2010\libtesseract\LINK    libtesseract304
Error    2    error LNK1104: cannot open file 'liblept171d.lib'    D:\tesseract-master\vs2010\tesseract\LINK        tesseract

zdenko podobny

unread,
Jul 18, 2015, 12:02:51 PM7/18/15
to tesser...@googlegroups.com
Last official leptonica windows release is 1.68.
So if you build leptonica by yourself, you should change modify tesseract solution based on your leptonica compilation...

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 http://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/841bffe3-d62f-435d-9005-ce3775073191%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Jeff Breidenbach

unread,
Jul 18, 2015, 4:06:22 PM7/18/15
to tesser...@googlegroups.com
Or bake some really delicious cookies for Tom Powers, who is in charge of Leptonica for Windows.

Kasi Selvam

unread,
Jul 18, 2015, 5:08:46 PM7/18/15
to tesser...@googlegroups.com

OK.
So,  ideally we can't able to use tedderact new version. If I want to use, do some changes in build of laptonica 1.72 and then I can use it right? Or migrate to linux box


You received this message because you are subscribed to a topic in the Google Groups "tesseract-ocr" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tesseract-ocr/HEQFaXhK4FQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tesseract-oc...@googlegroups.com.

To post to this group, send email to tesser...@googlegroups.com.
Visit this group at http://groups.google.com/group/tesseract-ocr.

zdenko podobny

unread,
Jul 19, 2015, 10:10:58 AM7/19/15
to tesser...@googlegroups.com
I am not sure if I understand your intentions, but as far as I know it is possible to build leptonica ad tesseract on windows with msys2 (and msys).

Also charlesw[1] provide leptonica and tesseract library and executable build with VS2012 - but IMO does not use the latest code...


Zdenko

Kasi Selvam

unread,
Jul 20, 2015, 12:49:20 PM7/20/15
to tesser...@googlegroups.com
hi,
   Thanks for your help.,But,

we can't able to figure it out ,why we are getting this below error while linking. but, it compiles fine.;

version's : tesseract304 ,

               leptonica-1.72,

               liblept168d.lib + other libs (got it from leptonica-1.68-win32-lib-include-dirs.zip ),

               visual studio 2010.

plz help..

Error details :-
Error 1 error LNK2019: unresolved external symbol __imp__l_CIDataDestroy referenced in function "private: static bool __cdecl tesseract::TessPDFRenderer::imageToPDFObj(struct Pix *,char *,long,char * *,long *)" (?imageToPDFObj@TessPDFRenderer@tesseract@@CA_NPAUPix@@PADJPAPADPAJ@Z) D:\tesseract-master\vs2010\libtesseract\pdfrenderer.obj libtesseract304
Error 2 error LNK2019: unresolved external symbol __imp__l_generateCIDataForPdf referenced in function "private: static bool __cdecl tesseract::TessPDFRenderer::imageToPDFObj(struct Pix *,char *,long,char * *,long *)" (?imageToPDFObj@TessPDFRenderer@tesseract@@CA_NPAUPix@@PADJPAPADPAJ@Z) D:\tesseract-master\vs2010\libtesseract\pdfrenderer.obj libtesseract304
Error 3 error LNK2019: unresolved external symbol __imp__pixGenerateCIData referenced in function "private: static bool __cdecl tesseract::TessPDFRenderer::imageToPDFObj(struct Pix *,char *,long,char * *,long *)" (?imageToPDFObj@TessPDFRenderer@tesseract@@CA_NPAUPix@@PADJPAPADPAJ@Z) D:\tesseract-master\vs2010\libtesseract\pdfrenderer.obj libtesseract304
Error 4 error LNK2019: unresolved external symbol __imp__pixSetSpp referenced in function "private: static bool __cdecl tesseract::TessPDFRenderer::imageToPDFObj(struct Pix *,char *,long,char * *,long *)" (?imageToPDFObj@TessPDFRenderer@tesseract@@CA_NPAUPix@@PADJPAPADPAJ@Z) D:\tesseract-master\vs2010\libtesseract\pdfrenderer.obj libtesseract304
Error 5 error LNK2019: unresolved external symbol __imp__pixGetSpp referenced in function "private: static bool __cdecl tesseract::TessPDFRenderer::imageToPDFObj(struct Pix *,char *,long,char * *,long *)" (?imageToPDFObj@TessPDFRenderer@tesseract@@CA_NPAUPix@@PADJPAPADPAJ@Z) D:\tesseract-master\vs2010\libtesseract\pdfrenderer.obj libtesseract304
Error 6 error LNK2019: unresolved external symbol __imp__pixForegroundFraction referenced in function "protected: float __thiscall tesseract::EquationDetect::ComputeForegroundDensity(class TBOX const &)" (?ComputeForegroundDensity@EquationDetect@tesseract@@IAEMABVTBOX@@@Z) D:\tesseract-master\vs2010\libtesseract\equationdetect.obj libtesseract304
Error 7 error LNK2019: unresolved external symbol __imp__pixaConvertToPdf referenced in function "public: static void __cdecl tesseract::LineFinder::FindAndRemoveLines(int,bool,struct Pix *,int *,int *,struct Pix * *,class tesseract::TabVector_LIST *,class tesseract::TabVector_LIST *)" (?FindAndRemoveLines@LineFinder@tesseract@@SAXH_NPAUPix@@PAH2PAPAU3@PAVTabVector_LIST@2@4@Z) D:\tesseract-master\vs2010\libtesseract\linefind.obj libtesseract304
Error 8 error LNK1120: 7 unresolved externals D:\tesseract-master\vs2010\DLL_Debug\libtesseract304d.dll libtesseract304




For more options, visit https://groups.google.com/d/optout.



--
thanx and regards,
from,

Kasi selvam K
Reply all
Reply to author
Forward
0 new messages