[cairo] PNG backend problem on compiling cairo

Woenkee Sohn wksohn at gmail.com
Thu Nov 1 10:41:16 PDT 2007


Thank you !!


Now I got another problem. I'm a very beginner for compiling cairo :)

error message --------------------------

checking for cairo's PNG backend...
configure: WARNING: Could not find libpng in the pkg-config search path
checking whether cairo's PNG backend could be enabled... no
configure: error: requested PNG backend could not be enabled


Woenkee.


----- Original Message ----- 
From: "Adrian Johnson" <ajohnson at redneon.com>
To: "Woenkee Sohn" <wksohn at gmail.com>
Cc: <cairo at cairographics.org>
Sent: Thursday, November 01, 2007 5:57 AM
Subject: Re: [cairo] pixman >= 0.9.4 is required


> Woenkee Sohn wrote:
>>
>> Hi,
>>
>>
>> I'm trying to compile Cairo on Cygwin, Windows Vista.
>>
>> When I executed ./configure, I got the following message.
>>
>> configure: error: pixman >= 0.9.4 is required
>>
>> So I installed pixman by myself again, but still same.
>>
>> Did anyone have a solution about this ?
>>
>>
>> Thank you,
>>
>> Andy.
>
> The following works for me using cygwin on Windows XP:
>
> Apply the attached patch to make pixman build a shared library.
>
> $ cd pixman
> $ ./configure --prefix=/usr/local
> $ make install
> $ cd ../cairo
> $ PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./configure --prefix=/usr/local
> $ make install
>
>


--------------------------------------------------------------------------------


> From 23112a5bdccb3f2a9c88164c136fcbd6a04bad51 Mon Sep 17 00:00:00 2001
> From: Adrian Johnson <ajohnson at redneon.com>
> Date: Thu, 1 Nov 2007 23:03:28 +1030
> Subject: [PATCH] Make cygwin create a shared library
>
> ---
> pixman/Makefile.am |    2 +-
> pixman/pixman.def  |   60 
> ++++++++++++++++++++++++++++++++++++++++++++++++++++
> 2 files changed, 61 insertions(+), 1 deletions(-)
> create mode 100644 pixman/pixman.def
>
> diff --git a/pixman/Makefile.am b/pixman/Makefile.am
> index 66283a2..3850be6 100644
> --- a/pixman/Makefile.am
> +++ b/pixman/Makefile.am
> @@ -1,5 +1,5 @@
> lib_LTLIBRARIES = libpixman-1.la
> -libpixman_1_la_LDFLAGS = -version-info $(LT_VERSION_INFO)
> +libpixman_1_la_LDFLAGS = -version-info 
> $(LT_VERSION_INFO) -no-undefined -export-symbols pixman.def
> libpixman_1_la_LIBADD = @DEP_LIBS@ -lm
> libpixman_1_la_SOURCES = \
>  pixman.h \
> diff --git a/pixman/pixman.def b/pixman/pixman.def
> new file mode 100644
> index 0000000..4985e01
> --- /dev/null
> +++ b/pixman/pixman.def
> @@ -0,0 +1,60 @@
> +EXPORTS
> +pixman_region_set_static_pointers
> +pixman_region_init
> +pixman_region_init_rect
> +pixman_region_init_with_extents
> +pixman_region_fini
> +pixman_region_translate
> +pixman_region_copy
> +pixman_region_intersect
> +pixman_region_union
> +pixman_region_union_rect
> +pixman_region_subtract
> +pixman_region_inverse
> +pixman_region_contains_point
> +pixman_region_contains_rectangle
> +pixman_region_not_empty
> +pixman_region_extents
> +pixman_region_n_rects
> +pixman_region_rectangles
> +pixman_region_equal
> +pixman_region_selfcheck
> +pixman_region_reset
> +pixman_region_init_rects
> +pixman_blt
> +pixman_fill
> +pixman_image_create_solid_fill
> +pixman_image_create_linear_gradient
> +pixman_image_create_radial_gradient
> +pixman_image_create_conical_gradient
> +pixman_image_create_bits
> +pixman_image_ref
> +pixman_image_unref
> +pixman_image_set_clip_region
> +pixman_image_set_has_client_clip
> +pixman_image_set_transform
> +pixman_image_set_repeat
> +pixman_image_set_filter
> +pixman_image_set_source_clipping
> +pixman_image_set_alpha_map
> +pixman_image_set_component_alpha
> +pixman_image_set_accessors
> +pixman_image_set_indexed
> +pixman_image_get_data
> +pixman_image_get_width
> +pixman_image_get_height
> +pixman_image_get_stride
> +pixman_image_get_depth
> +pixman_image_fill_rectangles
> +pixman_compute_composite_region
> +pixman_image_composite
> +pixman_sample_ceil_y
> +pixman_sample_floor_y
> +pixman_edge_step
> +pixman_edge_init
> +pixman_line_fixed_edge_init
> +pixman_rasterize_edges
> +pixman_add_traps
> +pixman_add_trapezoids
> +pixman_rasterize_trapezoid
> +LIBRARY libpixman-1.dll
> -- 
> 1.5.3.2
>
> 



More information about the cairo mailing list