cairo built against libpng16
| Newsgroups | gmane.comp.lib.cairo |
|---|---|
| Message-ID | <[email protected]> |
Hi,
simple program attached seems to have different results when
cairo is built against libpng15 and when it is built against
libpng16*):
cairo-libpng15-changeroot> ./cairo-fail tmp.png
PNG image read.
cairo-libpng16-changeroot> ./cairo-fail tmp.png
Error reading PNG image tmp.png: out of memory
The difference between changeroots are really only libpng version:
@@ -141,9 +141,9 @@ libpcrecpp0-8.31-5.1.x86_64
libpcreposix0-8.31-5.1.x86_64
libpixman-1-0-0.28.2-3.1.x86_64
libpixman-1-0-devel-0.28.2-3.1.x86_64
-libpng15-15-1.5.14-1.1.x86_64
-libpng15-compat-devel-1.5.14-1.1.x86_64
-libpng15-devel-1.5.14-1.1.x86_64
+libpng16-16-1.6.0-25.1.x86_64
+libpng16-compat-devel-1.6.0-25.1.x86_64
+libpng16-devel-1.6.0-25.1.x86_64
libpopt0-1.16-20.1.x86_64
libppl9-0.11.2-15.1.x86_64
libppl_c4-0.11.2-15.1.x86_64
cairo-libpng1{5,6}-changeroot> rpm -q cairo-devel
cairo-devel-1.12.14-0.x86_64
Petr
*) This boiled down when building perl-Cairo against cairo(libpng16).
40-th test from CairoSurface.t failed. In turn that means that second
test from the following doesn't succed.
use strict;
use warnings;
use Test::More tests => 2;
use constant IMG_WIDTH => 256;
use constant IMG_HEIGHT => 256;
use Cairo;
my $surf = Cairo::ImageSurface->create ('rgb24', IMG_WIDTH,
IMG_HEIGHT);
is ($surf->write_to_png ('tmp.png'), 'success');
$surf = Cairo::ImageSurface->create_from_png ('tmp.png');
is ($surf->status, 'success');
--
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
tmp.png
(image/png, 288 B) - not displayed
cairo-fail.c
(text/x-c, 405 B)
#include <stdio.h>
#include <cairo/cairo.h>
int main(int argc, char *argv[])
{
cairo_surface_t *surface;
surface = cairo_image_surface_create_from_png(argv[1]);
if (cairo_surface_status(surface))
fprintf(stderr, "Error reading PNG image %s: %s\n",
argv[1], cairo_status_to_string (cairo_surface_status(surface)));
else
fprintf(stderr, "PNG image read.\n");
return 0;
}
signature.asc
(application/pgp-signature, 198 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iEYEARECAAYFAlFJfnwACgkQGevYtT2kPwO+zACfSu3Z/cgIar2ojBfrLMeYCDyA d0sAn3DYe2wz5q+4YB4eCiaMm+NrOsCn =CaYc -----END PGP SIGNATURE-----