trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: March 2012

digikam - error: invalid use of incomplete type 'png_struct {aka struct png_struct_def}'

From: "David C. Rankin" <drankinatty@...>
Date: Tue, 27 Mar 2012 09:08:54 -0500
Tim, Darrell,

  Ran into an error building digikam. Is this due to libpng or digikam? How to fix?:

libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../../.. -I/opt/trinity/include
-I/opt/tqt3/include -I. -include tqt.h -I../../../../digikam/libs/dimg
-I../../../../digikam/libs/dimg/filters -I../../../../digikam/libs/curves
-I../../../../digikam/libs/levels -I../../../../digikam/libs/histogram
-I../../../../digikam/libs/whitebalance -I../../../../digikam/libs/dmetadata
-I../../../../digikam/digikam -I/opt/trinity/include -I/opt/trinity/include
-DQT_THREAD_SUPPORT -D_REENTRANT -fno-tree-pre -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 -fpermissive -Wformat-security
-Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new
-fno-common -I/usr/include/tqt -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST
-DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -DQT_CLEAN_NAMESPACE -MT
pngloader.lo -MD -MP -MF .deps/pngloader.Tpo -c pngloader.cpp  -fPIC -DPIC -o
.libs/pngloader.o
pngloader.cpp: In member function 'virtual bool Digikam::PNGLoader::load(const
TQString&, Digikam::DImgLoaderObserver*)':
pngloader.cpp:123:9: error: invalid use of incomplete type 'png_struct {aka
struct png_struct_def}'
/usr/include/png.h:855:16: error: forward declaration of 'png_struct {aka struct
png_struct_def}'
pngloader.cpp:410:99: warning: invalid conversion from 'char**' to 'png_bytepp
{aka unsigned char**}' [-fpermissive]
pngloader.cpp: In member function 'virtual bool Digikam::PNGLoader::save(const
TQString&, Digikam::DImgLoaderObserver*)':
pngloader.cpp:529:9: error: invalid use of incomplete type 'png_struct {aka
struct png_struct_def}'
/usr/include/png.h:855:16: error: forward declaration of 'png_struct {aka struct
png_struct_def}'
pngloader.cpp:602:132: warning: invalid conversion from 'char*' to
'png_const_bytep {aka const unsigned char*}' [-fpermissive]
pngloader.cpp:662:39: warning: deprecated conversion from string constant to
'png_charp {aka char*}' [-Wwrite-strings]
pngloader.cpp: In member function 'long int
Digikam::PNGLoader::formatStringList(char*, size_t, const char*, __va_list_tag*)':
pngloader.cpp:970:55: warning: function might be possible candidate for
'gnu_printf' format attribute [-Wmissing-format-attribute]
pngloader.cpp: In member function 'virtual bool Digikam::PNGLoader::load(const
TQString&, Digikam::DImgLoaderObserver*)':
pngloader.cpp:90:41: warning: ignoring return value of 'size_t fread(void*,
size_t, size_t, FILE*)', declared with attribute warn_unused_result
[-Wunused-result]
make[5]: *** [pngloader.lo] Error 1
make[5]: Leaving directory `/build/src/digikam/digikam/libs/dimg/loaders'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/build/src/digikam/digikam/libs/dimg'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/build/src/digikam/digikam/libs'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/build/src/digikam/digikam'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/build/src/digikam'
make: *** [all] Error 2


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