Hi!

The vigra library included in hugin-2010.0.0 doesn't compile against
png-1.4.2.
It uses the png_set_gray_1_2_4_to_8() function that was deprecated in
png-1.0.18 (2004) and png-1.2.9 (2006) and removed in png-1.4.0. The
official porting instructions at 
http://www.libpng.org/pub/png/src/libpng-1.2.x-to-1.4.x-summary.txt
recommend replacing it with png_set_expand_gray_1_2_4_to_8().

Here's a patch:

--- src/foreign/vigra/vigra_impex/png.cxx.orig  2010-03-02
23:17:21.000000000 +0000
+++ src/foreign/vigra/vigra_impex/png.cxx
@@ -271,8 +271,8 @@ namespace vigra {
         // expand gray values to at least one byte size
         if ( color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8 ) {
             if (setjmp(png->jmpbuf))
-
vigra_postcondition( false,png_error_message.insert(0, "error in
png_set_gray_1_2_4_to_8(): ").c_str());
-            png_set_gray_1_2_4_to_8(png);
+
vigra_postcondition( false,png_error_message.insert(0, "error in
png_set_expand_gray_1_2_4_to_8(): ").c_str());
+            png_set_expand_gray_1_2_4_to_8(png);
             bit_depth = 8;
         }


Please include it in the next release, thanks.
 Thomas

-- 
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/hugin-ptx

Reply via email to