"Unsupported image format" with PNG on MAC OS X w/ g++

I’m using g++ with SDL 1.2.5. I receive the message from
IMG_Load(). The application works fine under linux and this is
my first attempt to compile on a MAC. Any clues are greatly
appreciated, thanks.

I compile the program like this:
g++ -c -o drivedraw_mac.o -I/sw/include/SDL -D_THREAD_SAFE drivedraw.cxx
g++ -o drivedraw_mac drivedraw_mac.o -L/sw/lib -lSDL_image -L/sw/lib -lSDLmain -lSDL -framework Cocoa -framework OpenGL–
@Chris_Cera http://www.cs.drexel.edu/~cera

Just to make sure, do you have libpng installed on OSX? Does the
configure script in SDL_image see the png library? I get the following
line during configure:

checking for png_create_read_struct in -lpng... yes

Maybe png support is not compiled in?

I don’t use g++ (I use gcc) and I have no problems with png files in OS
10.2.6 with SDL 1.2.5 and SDL_image 1.2.3.On Saturday, August 2, 2003, at 09:04 PM, Chris Cera wrote:

I’m using g++ with SDL 1.2.5. I receive the message from
IMG_Load(). The application works fine under linux and this is
my first attempt to compile on a MAC. Any clues are greatly
appreciated, thanks.

I compile the program like this:
g++ -c -o drivedraw_mac.o -I/sw/include/SDL -D_THREAD_SAFE
drivedraw.cxx
g++ -o drivedraw_mac drivedraw_mac.o -L/sw/lib -lSDL_image
-L/sw/lib -lSDLmain -lSDL -framework Cocoa -framework OpenGL


cera at cs.drexel.edu http://www.cs.drexel.edu/~cera


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl