Am Freitag 22 Januar 2010 schrieb Daniel Isenmann:
-------- Original-Nachricht --------
Datum: Fri, 22 Jan 2010 11:18:35 +0100 Von: "Daniel Isenmann" <daniel.isenmann@gmx.de> An: Public mailing list for Arch Linux development <arch-dev-public@archlinux.org> Betreff: Re: [arch-dev-public] wesnoth issue with png
-------- Original-Nachricht --------
Datum: Fri, 22 Jan 2010 11:10:02 +0100 Von: Tobias Powalowski <t.powa@gmx.de> An: Public mailing list for Arch Linux development
<arch-dev-public@archlinux.org>
Betreff: [arch-dev-public] wesnoth issue with png
Hi guys need some help on wesnoth, tools/exploder_utils.cpp: In function 'void save_image(surface, const std::string&)': tools/exploder_utils.cpp:177: error: 'png_voidp_NULL' was not declared
in
this scope tools/exploder_utils.cpp:178: error: 'png_error_ptr_NULL' was not
declared
in this scope make[2]: *** [tools/exploder_utils.o] Error 1
affected codepart: png_struct* png_ptr = png_create_write_struct (PNG_LIBPNG_VER_STRING, (png_voidp)png_voidp_NULL, png_error_ptr_NULL, png_error_ptr_NULL);
snip from changelog of 1.4 libpng b. We removed the typecasted NULL definitions such as
#define png_voidp_NULL (png_voidp)NULL
If you used these in your application, just use NULL instead.
so what should i add?
thanks greetings tpowa
Just what the changelog say, use NULL. So change the method to:
png_struct* png_ptr = png_create_write_struct (PNG_LIBPNG_VER_STRING, (png_voidp)NULL, png_error_ptr_NULL, png_error_ptr_NULL);
Maybe you have to change "the png_error_ptr_NULL" to NULL also.
Daniel
Was there something mentioned about the "png_error_ptr_NULL" in the changelog? Because this is also affected. I have overseen the error message from the compiler for it.
no, no mention about it setting to NULL makes it compile though. greetings tpowa -- Tobias Powalowski Archlinux Developer & Package Maintainer (tpowa) http://www.archlinux.org tpowa@archlinux.org