|
List Info
Thread: libpng (or zlib?) runtime errors
|
|
| libpng (or zlib?) runtime errors |

|
2007-02-05 10:27:02 |
|
I've compiled the zlib (version 1.2.3) and libpng (version 1.2.15) libraries for a PowerPC platform that I'm developing for (not the Mac). I'm having trouble loading PNGs. Some images load fine, but others consistently cause the program to abort with one of the following errors:
"libpng error: invalid literal/lengths set" "libpng error: IDAT: CRC
error"
(It appears that the "invalid literal/lengths set" error is originating in zlib, and the CRC error is coming from a CRC check that libpng is performing.)
The images that are causing these errors load and display correctly in a Windows application that uses libpng, so I know it's not the images that are at fault. Images that *don't* cause my PNG loading code to break tend to be very simple (long runs of color).
I don't have the ability to run the .configure script on the platform I'm compiling for, so I have to configure third-party libraries by hand. I'm compiling libpng with the following flag set in pngconf.h
:
#define PNG_READ_BIG_ENDIAN_SUPPORTED
and I haven't changed anything in zlib's zconf.h.
I'm using my own memory allocation/deallocation and file reading functions, and I've been careful to supply them to libpng. They've been tested and are used extensively in other areas of my code, so I'm assuming that they're not causing these problems.
Any ideas on what might be happening here?
Thanks, Tim
|
[1]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|