Both cmake and scons don't work for me.

Questions, problems and discussion about compiling FreeOrion.

Moderator: Oberlus

Message
Author
User avatar
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.

#16 Post by Geoff the Medio »

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.

qubodup
Space Krill
Posts: 8
Joined: Sun Sep 30, 2007 9:27 am
Location: Berlin, Germany

Re: Both cmake and scons don't work for me.

#17 Post by qubodup »

According to http://libpng.sourceforge.net/ANNOUNCE-1.4.0.txt

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.
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 :) ).

Gyph
Space Krill
Posts: 1
Joined: Thu Jun 03, 2010 9:58 am

Re: Both cmake and scons don't work for me.

#18 Post by Gyph »

For the png errors on the GiGi compile you have to edit / patch 2 files:

Code: Select all

/src/GIL/extension/io/png_dynamic_io.hpp
/src/GIL/extension/io/png_io_private.hpp
search and replace in your favorite editor or with sed these patterns:

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
It will then compile.

ykuligin
Space Krill
Posts: 1
Joined: Thu Aug 19, 2010 6:52 am

Re: Both cmake and scons don't work for me.

#19 Post by ykuligin »

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".

User avatar
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.

#20 Post by Geoff the Medio »

ykuligin wrote:I've checked out rev 3740 and the problem with libagraph is still here. Do you plan to commit your solution?
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.

Post Reply