[Fluxus] libpng issues in git

Dave Foster dave.foster at gmail.com
Sun Feb 28 18:22:21 PST 2010


Hi all,

Having some issues compiling latest git
(5404d9111835587b416118d56ca0955c40152282) on Linux (Arch).  It appears to
be related to a recent libpng upgrade (the horror, what a crazy lib that
is).  My system has libpng as 1.4.0-2, and it appears to have installed a
new packaged called "libpng12" which appears to be from the 1.2 series of
releases (1.2.40-1).  I get a lot of deprecation notices:

libfluxus/src/PNGLoader.cpp: In static member function 'static unsigned
char* Fluxus::PNGLoader::Load(const std::string&, unsigned int&, unsigned
int&, Fluxus::PixelFormat&)':
libfluxus/src/PNGLoader.cpp:49: warning: 'png_info_struct::width' is
deprecated (declared at /usr/include/png.h:632)
libfluxus/src/PNGLoader.cpp:49: warning: 'png_info_struct::width' is
deprecated (declared at /usr/include/png.h:632)
libfluxus/src/PNGLoader.cpp:50: warning: 'png_info_struct::height' is
deprecated (declared at /usr/include/png.h:633)
libfluxus/src/PNGLoader.cpp:50: warning: 'png_info_struct::height' is
deprecated (declared at /usr/include/png.h:633)
libfluxus/src/PNGLoader.cpp:51: warning: 'png_info_struct::bit_depth' is
deprecated (declared at /usr/include/png.h:639)
libfluxus/src/PNGLoader.cpp:51: warning: 'png_info_struct::bit_depth' is
deprecated (declared at /usr/include/png.h:639)
libfluxus/src/PNGLoader.cpp:52: warning: 'png_info_struct::color_type' is
deprecated (declared at /usr/include/png.h:640)
libfluxus/src/PNGLoader.cpp:52: warning: 'png_info_struct::color_type' is
deprecated (declared at /usr/include/png.h:640)
libfluxus/src/PNGLoader.cpp:94: warning: 'png_struct_def::color_type' is
deprecated (declared at /usr/include/png.h:1150)
libfluxus/src/PNGLoader.cpp:94: warning: 'png_struct_def::color_type' is
deprecated (declared at /usr/include/png.h:1150)
libfluxus/src/PNGLoader.cpp: In static member function 'static void
Fluxus::PNGLoader::Save(const std::string&, unsigned int, unsigned int,
Fluxus::PixelFormat, unsigned char*)':
libfluxus/src/PNGLoader.cpp:172: error: 'text_ptr' was not declared in this
scope

Then this error at the end.  I know libpng is a nightmare to deal with
(fought it several times on my own projects), how do you think this should
be addressed in fluxus?

thanks,
dave
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pawfal.org/pipermail/fluxus-pawfal.org/attachments/20100228/0ffd6039/attachment-0002.htm>


More information about the Fluxus mailing list