Showimage.exe says png is 'unsupported image type'

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,
After getting SDL_image to build and solving my win32 exception error,
I figured I’d better test some other image types to make sure there
were no other surprises. My test program was able to load up bmp, jpg,
and gif files from Eclipse, but png files will not load. I tested
loading a png file using showimage.exe from SDL_image, and the error
message says ‘unsupported type’. I ran the SDL_image configure script
again, and it looks like it found the png libraries. and the make
output showed no errors when linking with png. Not sure yet if I
missed something in the configuration or not. I did a quick search for
png.dll, and libpng* and found only those that I downloaded and copied
into the Mingw directories.

My first thought is that the png library I downloaded must not be
compatible. So I went to the http://www.libpng.org/pub/png/libpng.html
web site and downloaded the latest png source, compiled successfully,
and made sure I removed the old png libraries before installing the
new ones. Then I re-ran the SDL_image configure and make. But still
showimage.exe says ‘unsupported type’. I’m guessing there is
something I simple overlooked.

I’m hoping this sounds familiar to someone, but if not I can include
my configure and make outputs. (They’re on another computer at the moment)

Thank you for your consideration,

Jim

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGmPOoQuDJiZ/QrH0RAlEiAKCTf4Jk+BzO0tPXsOw1PW7apC+ztgCfUQ5N
36n5GNfywCFI1iHt4rQGyLQ=
=MUzn
-----END PGP SIGNATURE-----

Hello !

With MinGW it is the easiest to use
the image libraries from :

http://gnuwin32.sourceforge.net/

They have static and shared versions
of the image libs. Compiling a dynamic version
from jpeg or libpng with MinGW can be very hard.

One thing you need to care about, is the names of the
DLL files. SDL_image for example searches for jpeg.dll,
but the archive contains a jpeg62.dll.

CU

I figured it out. It was looking for libpng13.dll, not png.dll, or
libpng.dll.

JimOn 7/14/07, Torsten Giebl wrote:

Hello !

With MinGW it is the easiest to use
the image libraries from :

http://gnuwin32.sourceforge.net/

They have static and shared versions
of the image libs. Compiling a dynamic version
from jpeg or libpng with MinGW can be very hard.

One thing you need to care about, is the names of the
DLL files. SDL_image for example searches for jpeg.dll,
but the archive contains a jpeg62.dll.