A bit of googling suggests that "png_set_gray_1_2_4_to_8 was renamed to png_set_expand_gray_1_2_4_to_8" so could try adding a line to define one as the other.
I expect more of this sort of error to appear though, so it would probably be easier to build against libpng 1.2.
Both cmake and scons don't work for me.
Moderator: Oberlus
- Geoff the Medio
- Programming, Design, Admin
- Posts: 13603
- Joined: Wed Oct 08, 2003 1:33 am
- Location: Munich
Re: Both cmake and scons don't work for me.
According to http://libpng.sourceforge.net/ANNOUNCE-1.4.0.txt
Doesn't this mean that png_set_expand_gray_1_2_4_to_8 can be used with libpng 1.2.9 as well? In that case, it would seem to make sense to use the 'new name' in freeorion.
In any case, changing the function name allowed me to compile without errors!
I can't start the game yet, I'm getting an OGRE error, this might be due to some recent updates. I'll recompile OGRE and report back if the problems won't be resolved in another thread.
Thank you for bearing with me GtM, I'll thank you by recording a FO gameplay video or two (and not having the video deleted this time ).
Code: Select all
m. The function png_set_gray_1_2_4_to_8() was removed. It has been
deprecated since libpng-1.0.18 and 1.2.9, when it was replaced with
png_set_expand_gray_1_2_4_to_8() because the former function also
expanded palette images.
In any case, changing the function name allowed me to compile without errors!
I can't start the game yet, I'm getting an OGRE error, this might be due to some recent updates. I'll recompile OGRE and report back if the problems won't be resolved in another thread.
Thank you for bearing with me GtM, I'll thank you by recording a FO gameplay video or two (and not having the video deleted this time ).
Re: Both cmake and scons don't work for me.
For the png errors on the GiGi compile you have to edit / patch 2 files:
search and replace in your favorite editor or with sed these patterns:
It will then compile.
Code: Select all
/src/GIL/extension/io/png_dynamic_io.hpp
/src/GIL/extension/io/png_io_private.hpp
Code: Select all
png_infopp_NULL *with* NULL
int_p_NULL *with* NULL
png_set_gray_1_2_4_to_8 *with* png_set_expand_gray_1_2_4_to_8
Re: Both cmake and scons don't work for me.
Hi!
I've checked out rev 3740 and the problem with libagraph is still here. Do you plan to commit your solution?
I use Debian "Squeeze".
I've checked out rev 3740 and the problem with libagraph is still here. Do you plan to commit your solution?
I use Debian "Squeeze".
- Geoff the Medio
- Programming, Design, Admin
- Posts: 13603
- Joined: Wed Oct 08, 2003 1:33 am
- Location: Munich
Re: Both cmake and scons don't work for me.
It's a GiGi issue, not a FreeOrion issue, and the GiGi maintainer is rather busy at the moment and not likely to make such a change soon.ykuligin wrote:I've checked out rev 3740 and the problem with libagraph is still here. Do you plan to commit your solution?