We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 401

Summary: Add MNG support (there is something called SDL_mng)
Product: SDL_image Reporter: esigra
Component: miscAssignee: Sam Lantinga <slouken>
Status: RESOLVED WONTFIX QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: dulsi
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://cryptology.org/research/SDL MNG Library/

Description esigra 2007-02-28 04:48:02 UTC
Add MNG support to SDL_image. At [http://cryptology.org/research/SDL MNG Library/] there is SDL_mng-0.1.tar.bz2. I have tested it with the following result:
SDL_mng-0.1> ./autogen.sh
Generating aclocal.m4
/usr/share/aclocal/sdlmm.m4:12: warning: underquoted definition of AM_PATH_SDLMM
/usr/share/aclocal/sdlmm.m4:12:   run info '(automake)Extending aclocal'
/usr/share/aclocal/sdlmm.m4:12:   or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
Generating Makefile.in
configure.ac:6: installing `./config.sub'
configure.ac:10: installing `./missing'
configure.ac:10: installing `./install-sh'
configure.ac:6: installing `./config.guess'
Makefile.am: installing `./depcomp'
configure.ac:14: required file `./ltmain.sh' not found
Generating configure file



I worked around the problem:
SDL_mng-0.1> ln -s /usr/share/libtool/ltmain.sh .
SDL_mng-0.1> ./autogen.sh
Generating aclocal.m4
/usr/share/aclocal/sdlmm.m4:12: warning: underquoted definition of AM_PATH_SDLMM
/usr/share/aclocal/sdlmm.m4:12:   run info '(automake)Extending aclocal'
/usr/share/aclocal/sdlmm.m4:12:   or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
Generating Makefile.in
Generating configure file


Then configure works. But make ends with:
/bin/sh ./libtool --tag=CC   --mode=link gcc  -g -O2 -DLOAD_PNG -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT   -o libSDL_mng.la -rpath /usr/local/lib SDL_mng.lo @IMG_LIBS@ -lpng -lz -lSDL -lpthread
gcc -shared  .libs/SDL_mng.o  /usr/lib/libpng12.so -lz /usr/lib/libSDL.so -L/usr/lib -lpthread  @IMG_LIBS@ -Wl,-soname -Wl,libSDL_mng.so.0 -o .libs/libSDL_mng.so.0.0.0
gcc: @IMG_LIBS@: No such file or directory
make: *** [libSDL_mng.la] Fel 1


I commented out the line "libSDL_mng_la_LIBADD = @IMG_LIBS@" in Makefile.am and did "./autogen.sh;configure;make" again. Then I could run ./mngtest and see the dancing panda.
Comment 1 Dennis Payne 2007-03-05 19:12:48 UTC
I was just looking at SDL_mng and I'm probably going use it.  But I don't think it is a good idea to integrate as is.  I'd prefer to see an interface more like SDL_anim (http://tamale.net/SDL_anim/).  That interface isn't entirely to my liking either.
Comment 2 Sam Lantinga 2007-07-12 20:17:09 UTC
Yes, SDL_image is really meant for single images, not animation or image sets.