List Info

Thread: debug libpng build with warnings




debug libpng build with warnings
country flaguser name
Canada
2007-02-19 20:48:30
Hello

Could someone tell me how to build a libpng on Linux so that
it displays 
errors, warnings and debug messages?

Right now I just edit the configure-generated makefile and
change 
CPPFLAGS to `CPPFLAGS =  -DPNG_DEBUG=3` This way I get debug
output and 
errors but no warnings at all.

I suspect there is a cleaner way to do this and a simple
solution, can 
someone tell me what it is please?

Thanks in advance,

Andrew

------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
png-mng-implement mailing list
png-mng-implementlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/png-m
ng-implement

Re: debug libpng build with warnings
country flaguser name
United States
2007-02-19 21:27:36
At 09:48 PM 2/19/2007 -0500, Andrew Smith wrote:
>Hello
>
>Could someone tell me how to build a libpng on Linux so
that it displays 
>errors, warnings and debug messages?
>
>Right now I just edit the configure-generated makefile
and change 
>CPPFLAGS to `CPPFLAGS =  -DPNG_DEBUG=3` This way I get
debug output and 
>errors but no warnings at all.
>

You are on the right track for debug messages.  Normally
libpng will give
you the errors and warnings by default, unless you use
replacement
error and warning callbacks that don't show them to you. 
For example
if you are building mozilla there are callbacks in
nsPNGDecoder.cpp
that discard the error and warning messages unless you
define PR_LOGGING
in which case they are put into a log file.

Glenn

------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
png-mng-implement mailing list
png-mng-implementlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/png-m
ng-implement

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )