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 17:59:30 -0500
On 03/28/2012 04:49 PM, Darrell Anderson wrote:
>> The patch isn't a 1-for-1 fix for TDE, but I'll see if I can
>> digest what they did and replicate it in tde gwenview :)
> 
> I'm running a fresh full build right now. I massaged the gwenview patch for Trinity. I'm still building against libpng 1.4.9 but at least we'll know whether the patch adversely affects backwards compatibility.
> 
> Updated patch:
> 
> http://humanreadable.nfshost.com/trinity/patches/tqt-fixes/gwenview-libpng15-tde.diff
> 
> Darrell
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: trinity-devel-unsubscribe@...
> For additional commands, e-mail: trinity-devel-help@...
> Read list messages on the web archive: http://trinity-devel.pearsoncomputing.net/
> Please remember not to top-post: http://trinity.pearsoncomputing.net/mailing_lists/#top-posting
> 
> 

Hmm,

  Not quite yet... Patch applied and:

/bin/sh ../../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../..
 -I./.. -I/opt/trinity/include -I/opt/tqt3/include -I. -include tqt.h
-D_LARGEFILE64_SOURCE -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wno-long-long -Wundef
-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W
-Wpointer-arith -O2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector
--param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wformat-security
-Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new
-fno-common -I/usr/include/tqt  -MT pngformattype.lo -MD -MP -MF
.deps/pngformattype.Tpo -c -o pngformattype.lo pngformattype.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -I/opt/trinity/include
-I/opt/tqt3/include -I. -include tqt.h -D_LARGEFILE64_SOURCE -DQT_THREAD_SUPPORT
-D_REENTRANT -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE
-Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -O2 -march=x86-64
-mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4
-D_FORTIFY_SOURCE=2 -Wformat-security -Wmissing-format-attribute
-Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common
-I/usr/include/tqt -MT pngformattype.lo -MD -MP -MF .deps/pngformattype.Tpo -c
pngformattype.cpp  -fPIC -DPIC -o .libs/pngformattype.o
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
png_info_def}'
make[3]: *** [pngformattype.lo] Error 1
make[3]: Leaving directory `/build/src/gwenview/src/gvcore'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/build/src/gwenview/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/build/src/gwenview'
make: *** [all] Error 2

  Got to pick up my kiddos from swimming, back shortly...

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