sonurakpinar / tesseract-ocr

Automatically exported from code.google.com/p/tesseract-ocr
Other
0 stars 0 forks source link

current svn version (r1034) does not compile on Ubuntu 12.04 #1080

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.checkout the svn-Version (r1034)
2.run ./autogen.sh, ./configure
3.make

What is the expected output? What do you see instead?
Error while running make:

pdfrenderer.cpp: In static member function 'static bool 
tesseract::TessPDFRenderer::pixToPDFObj(Pix*, long int, char**, long int*)':
pdfrenderer.cpp:524:7: error: 'cid' was not declared in this scope
pdfrenderer.cpp:558:36: error: 'cid' was not declared in this scope
pdfrenderer.cpp: In member function 'virtual bool 
tesseract::TessPDFRenderer::BeginDocumentHandler()':
pdfrenderer.cpp:380:29: warning: ignoring return value of 'size_t fread(void*, 
size_t, size_t, FILE*)', declared with attribute warn_unused_result 
[-Wunused-result]
make[2]: *** [libtesseract_api_la-pdfrenderer.lo] Fehler 1
make[2]: Verlasse Verzeichnis '/home/.../Tesseract/tesseract-ocr/api'
make[1]: *** [all-recursive] Fehler 1
make[1]: Verlasse Verzeichnis '/home/.../Tesseract/tesseract-ocr'

What version of the product are you using? On what operating system?
tessearct svn r1034, Ubuntu 12.04.3 one 64 bit AMD machine

Please provide any additional information below.
pdfrenderer.cpp was added in r963, there have been some minor changes to it.

Original issue reported on code.google.com by hanksch...@googlemail.com on 30 Jan 2014 at 2:58

GoogleCodeExporter commented 9 years ago
You need to get leptonica 1.70 from leptonica.org.

Original comment by theraysm...@gmail.com on 31 Jan 2014 at 3:13

GoogleCodeExporter commented 9 years ago
Thanks! 

But trying to compile leptonica 1.70 I get

 CCLD   liblept.la
  CC     xtractprotos.o
  CCLD   xtractprotos
./.libs/liblept.so: undefined reference to `WebPEncodeLosslessRGBA'
collect2: ld returned 1 exit status
make[2]: *** [xtractprotos] Fehler 1
make[2]: Verlasse Verzeichnis '/home/.../leptonica-1.70/src'
make[1]: *** [all-recursive] Fehler 1
make[1]: Verlasse Verzeichnis '/home/.../leptonica-1.70'
make: *** [all] Fehler 2

libwebp-dev is installed...

Original comment by hanksch...@googlemail.com on 31 Jan 2014 at 3:33

GoogleCodeExporter commented 9 years ago
1. this is leptonica error and you should report it there
2. It could means that you do not have needed version of libwebp...

Original comment by zde...@gmail.com on 31 Jan 2014 at 4:09

GoogleCodeExporter commented 9 years ago
1. this is leptonica error and you should report it there
2. It could means that you do not have needed version of libwebp...

Original comment by zde...@gmail.com on 31 Jan 2014 at 4:09

GoogleCodeExporter commented 9 years ago
Hi!

Yes, of course your right... I compiled lipwebp-0.4.0, which seemes to be the 
latest stable version, but it didn't change the error. Thanks, anyway

Original comment by hanksch...@googlemail.com on 31 Jan 2014 at 4:33

GoogleCodeExporter commented 9 years ago
For for your information: I have webp 0.3.1 on opensuse and I have no problem 
to compile leptonica 1.70. 

Original comment by zde...@gmail.com on 31 Jan 2014 at 7:11

GoogleCodeExporter commented 9 years ago
Hi!
I managed to install libwebp-0.4.0 (not lipwebp2, that made the difference ;-) 
) , version 0.1.3 (as in ubuntu 12.04) didn't work. Thanks for your support!

Original comment by hanksch...@googlemail.com on 31 Jan 2014 at 9:28

GoogleCodeExporter commented 9 years ago
test for leptonica 1.70 was added to configure (r1035)

Original comment by zde...@gmail.com on 31 Jan 2014 at 11:21