dborth / sdl-wii

SDL for Wii
http://wiibrew.org/wiki/SDL_Wii
47 stars 16 forks source link

LIBPNG VERSION #39

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

I think the current version of SDLlib was compiled with a wrong libpng version. 
The correct version should be 1.4.1 which is used in DEVKITPRO before 30 july 
2011 or 1.5.4 used after that date. If the compilation is made with 1.5.4 
version (best choice), some source code must be modified since from 1.5.0 it is 
not anymore possible to access the png_struct and png_info data structures as 
made in some SDLlib code (see Portability Note in libpng website).

Original issue reported on code.google.com by olimpier...@gmail.com on 5 Aug 2011 at 9:56

GoogleCodeExporter commented 9 years ago
I'm aware of the changes in 1.5.x. The posted version was compiled against 
1.4.x and it works fine for me with my own compiled libpng. I haven't tried it 
with the libpng posted on devkitpro, but there's no problem with the libs 
posted here.

Original comment by dborth@gmail.com on 6 Aug 2011 at 5:47

GoogleCodeExporter commented 9 years ago
FRODO which is based on SDL does not work with the posted libSDL version and 
libpng 1.4.1 (and 1.5.4) version. I was obliged to compile SDLlib with 1.4.1 
libpng to make it work. I don't konow if this a FRODO issue or SDL requires the 
same libpng version as that used to compile the program. Which libpng version 
is used in the posted SDLlib? 

Original comment by olimpier...@gmail.com on 7 Aug 2011 at 12:18

GoogleCodeExporter commented 9 years ago
Looks like I compiled against libpng 1.2.44.

Original comment by dborth@gmail.com on 7 Aug 2011 at 4:05

GoogleCodeExporter commented 9 years ago
I think it is a SDL/libpng issue. I found a lot of posts discussing this issue.

http://www.linuxquestions.org/questions/linux-software-2/problem-with-libpng-840
821/
http://www.linuxquestions.org/questions/slackware-14/libpng-error-incompatible-l
ibpng-version-in-application-and-library-894222/
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=153813

Also libpng website gives a warning:

http://www.libpng.org/pub/png/pngfaq.html#mismatch

Original comment by olimpier...@gmail.com on 9 Aug 2011 at 10:39