Libpng error: decompression error

I would guess here:
http://sourceforge.net/tracker/?atid=105624&group_id=5624&func=browse

http://sourceforge.net/tracker/?atid=105624&group_id=5624&func=browseJonny
DOn Wed, Jul 21, 2010 at 11:58 AM, mike <scrat_is_here at yahoo.com> wrote:

Where should I file a bug report?


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

HI
basically I only want to do something alike:

SDL_Surface *cristal = IMG_Load(“Images/cristal.png”);

but it fails with a shared lib or dll. Why? What could I be doing wrong?
Many thanks
Michael

Did you try checking IMG_GetError()? It might tell you the problem, like if
you’re using an incompatible or missing dll.

Jonny DOn Fri, Jul 30, 2010 at 4:37 AM, mike <scrat_is_here at yahoo.com> wrote:

HI
basically I only want to do something alike:

SDL_Surface *cristal = IMG_Load(“Images/cristal.png”);

but it fails with a shared lib or dll. Why? What could I be doing wrong?
Many thanks
Michael


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

thanks but i only get:

Error reading the PNG file.

This worked only some months ago perfectly!
Any help is much appreciated
Michael

Hi Mike,

How does it fail exactly? Does a white box show-up where there should
be something, or do you get a segfault. Probably not it, but check the
case of the file you are loading, as well as make sure you are running
the application from the appropriate directory (namely, the one that
has “Images” as a sub-directory).

Hope that helps,

JohnOn Sat, Jul 31, 2010 at 2:06 AM, mike <scrat_is_here at yahoo.com> wrote:

thanks but i only get:

Error reading the PNG file.

This worked only some months ago perfectly!
Any help is much appreciated
Michael


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org