Re: Cannot make pango-1.10.2

On Tue, 31 Jan 2006, Frank Naumann wrote:

> Hello!
> > cairosimple.o(.text+0x1f4): In function `main':
> > /home/sakari/amule/pango-1.10.2/examples/cairosimple.c:82: undefined
> > reference to `cairo_surface_write_to_png'
> > collect2: ld returned 1 exit status
> >
> > [...]
> >
> > Would anyone know what is wrong?
> Cairo must be configured and compiled with png support. Cairo png support 
> is disabled if the cairo configure script doesn't find the png library on 
> your system.

OK; thank you. I didn't realize the problem because Cairo could be built
and installed without PNG support. Now, looking at the .configure script's
output, it is easy to see: 
cairo will be compiled with the following surface backends:
  Xlib: yes
  Quartz: no
  XCB: no
  Win32: no
  PostScript: no
  PDF: no
  glitz: no

the following font backends:
  FreeType: yes
  Win32: no
  ATSUI: no

and the following features:
  PNG functions: no

The reason for that 'no' on the last line seems to be
checking for XrmFinalize... no
checking for some Win32 platform... no
configure: WARNING: Could not find libpng in the pkg-config search path
configure: WARNING: "*** To run the tests
checking for FONTCONFIG... yes

But how does one make pkg-config find libpng? There is a libpng in
/usr/lib, which should be a pretty reasonable place for pkg-config
to search, would it not?

Or should I just give up on Cairo? I think I saw something to the
effect that Cairo is not absolutely needed for gtk+? 

And no, I'm not at all clear on what Cairo does. I just want to
compile a program called aMule. But that program seems to rely on
tons and tons of stuff that is not installed on the systems at hand.
It all starts with something called wxWindows.

Sakari Aaltonen

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]