vermaneerajin / leptonica

Automatically exported from code.google.com/p/leptonica
0 stars 0 forks source link

Problems with building Leptonica with only TIFF & ZLIB support turned on #44

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Build leptonlib with only TIFF and ZLIB support turned on in environ.h.

What is the expected output? What do you see instead?
Lots of warnings about "unreferenced local variables" in pixaReadStream() and 
pixaWriteStream().
Lots of error messages when running ioformats_reg.

What version of the product are you using? On what operating system?
leptonlib-1.67
Microsoft Visual Studio 2008 SP1 with latest updates also applied.
Windows XP Pro SP3.

Please provide any additional information below.
A message I just read on the tesseract-dev list implies that they only need 
TIFF support in Leptonica so I decided I'd try to build it with only TIFF & 
ZLIB support turned on.

This gave a bunch of warning messages for the unreferenced local variables in 
pixaReadStream() and pixaWriteStream(). In looking at the code I see that those 
two functions are only useful if PNG support is enabled. Is that limitation 
documented anywhere?

Also I get the lots of error messages when running ioformats_reg.

Original issue reported on code.google.com by tomp2...@gmail.com on 13 Nov 2010 at 4:10

GoogleCodeExporter commented 8 years ago
This will be fixed in 1.68.  It requires using the HAVE_LIB* guards
throughout.  The tests in ioformats_reg will be refactored for
separate I/O libraries so that each library that is available will
be tested, and no tests will be run for unavailable libraries.

ioformats_reg will continue to the be program/script used to test all
I/O library functions.

Original comment by dan.bloo...@gmail.com on 20 Nov 2010 at 6:28

GoogleCodeExporter commented 8 years ago
fixed in 1.68

Original comment by dan.bloo...@gmail.com on 16 Mar 2011 at 12:05