[cairo] Installing Cairo on Macbook 10.6.3

David Arnold dwarnold45 at suddenlink.net
Thu May 6 17:49:19 PDT 2010


All,

I need help installing Cairo on my Macbook Pro running 10.6.3.

For pixman-0.18.0:

./configure
make
sudo make install

Went well.

For cairo-1.8.10:

./configure

had problems. First attempt did not create a makefile and ended with:

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

I found somewhere on the web the following advice:

export png_REQUIRES="libpng"

Now ./configure ends with:

cairo (version 1.8.10 [release]) will be compiled with:

The following surface backends:
  Image:         yes (always builtin)
  Xlib:          yes
  Xlib Xrender:  yes
  Quartz:        yes
  Quartz-image:  no (disabled, use --enable-quartz-image to enable)
  XCB:           no (disabled, use --enable-xcb to enable)
  Win32:         no (requires a Win32 platform)
  OS2:           no (disabled, use --enable-os2 to enable)
  PostScript:    yes
  PDF:           yes
  SVG:           yes
  glitz:         no (disabled, use --enable-glitz to enable)
  BeOS:          no (disabled, use --enable-beos to enable)
  DirectFB:      no (disabled, use --enable-directfb to enable)

The following font backends:
  User:          yes (always builtin)
  FreeType:      no (requires fontconfig)
  Win32:         no (requires a Win32 platform)
  Quartz:        yes

The following functions:
  PNG functions: yes

And the following internal features:
  gcov support:  no
  test surfaces: no (disabled, use --enable-test-surfaces to enable)
  ps testing:    yes
  pdf testing:   no (requires poppler-glib >= 0.9.2)
  svg testing:   no (requires librsvg-2.0 >= 2.15.0)

But "make" ends with:

david-arnolds-macbook-pro-2:cairo-1.8.10 darnold$ make
make  all-recursive
Making all in src
make  all-am
../doltcompile gcc -DHAVE_CONFIG_H -I. -I..  -I. -I/usr/local/include/pixman-1                          -g -O2 -MT cairo-xlib-display.lo -MD -MP -MF .deps/cairo-xlib-display.Tpo -c -o cairo-xlib-display.lo cairo-xlib-display.c
cairo-xlib-display.c:41:35: error: fontconfig/fontconfig.h: No such file or directory
make[3]: *** [cairo-xlib-display.lo] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2


Any suggestions to get this to compile?

Thanks.

David.




More information about the cairo mailing list