trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: March 2012

Re: [trinity-devel] digikam - error: invalid use of incomplete type 'png_struct {aka struct png_struct_def}'

From: "David C. Rankin" <drankinatty@...>
Date: Wed, 28 Mar 2012 18:41:46 -0500
On 03/28/2012 05:59 PM, David C. Rankin wrote:
> pngformattype.cpp: In function 'void Gwenview::setup_qt(TQImage&, png_structp,
> png_infop)':
> pngformattype.cpp:293:15: error: invalid use of incomplete type 'png_info {aka
> struct png_info_def}'
> /usr/include/png.h:724:16: error: forward declaration of 'png_info {aka struct

Darrell,

  It seems to be stumbling on this code:

#if PNG_LIBPNG_VER_MAJOR>1 || ( PNG_LIBPNG_VER_MAJOR==1 && PNG_LIBPNG_VER_MINOR>=4 )
		    info_ptr->trans_alpha[i]
#else
 		    info_ptr->trans[i]
#endif

  Not being able to read any this stuff any better than I can, shouldn't the
patch also got rid of the above code completely? The info_ptr->trans_alpha[i]
has to be removed and replaced with palette[i].red (.green,.blue) stuff right?

-- 
David C. Rankin, J.D.,P.E.