I was having problems building libpangocairo. I had the latest cairo, I had freetype installed, I had fontconfig intalled, but everytime I ran configure on pango, it would tell me yes I had cairo, but it was being disabled because there were no backends to use. After trudging through pango configure, I finally figured out that my “fontconfig” was not a high enough version to even test for FreeType, and so it was there were no cairo font backends to use, and so it didn’t build pangocairo and the only error was no cairo backends (when clearly there was!) anyway, if after you google the other posts, and don’t find a solution, update for fontconfig package.

2 Comments

  1. kibirango says:

    I am having exactly the same problem

    on try to make the cairo it gives me the error below
    root@gatway:/usr/local/src/cairo-1.10.2# ./configure –prefix=$INSTALL_DIR –enable-xlib=no –enable-win32=no –enable-symbol-lookup=yes CFLAGS=”-O3 -fPIC”

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

    The following surface backends:
    Image: yes (always builtin)
    Recording: yes (always builtin)
    Tee: no (disabled, use –enable-tee to enable)
    XML: no (disabled, use –enable-xml to enable)
    Skia: no (disabled, use –enable-skia to enable)
    Xlib: no (disabled, use –enable-xlib to enable)
    Xlib Xrender: no (requires –enable-xlib)
    Qt: no (disabled, use –enable-qt to enable)
    Quartz: no (requires CoreGraphics framework)
    Quartz-image: no (disabled, use –enable-quartz-image to enable)
    XCB: no (disabled, use –enable-xcb to enable)
    Win32: no (disabled, use –enable-win32 to enable)
    OS2: no (disabled, use –enable-os2 to enable)
    CairoScript: no (disabled, use –enable-script to enable)
    PostScript: yes
    PDF: yes
    SVG: yes
    OpenGL: no (disabled, use –enable-gl to enable)
    BeOS: no (disabled, use –enable-beos to enable)
    DirectFB: no (disabled, use –enable-directfb to enable)
    OpenVG: no (disabled, use –enable-vg to enable)
    DRM: no (disabled, use –enable-drm to enable)

    The following font backends:
    User: yes (always builtin)
    FreeType: yes
    Fontconfig: yes
    Win32: no (disabled, use –enable-win32 to enable)
    Quartz: no (requires CoreGraphics framework)

    The following functions:
    PNG functions: yes
    GLEW functions: no (not required by any backend)
    GLX functions: no (not required by any backend)
    WGL functions: no (not required by any backend)
    EGL functions: no (not required by any backend)
    X11-xcb functions: no (disabled, use –enable-xlib-xcb to enable)
    XCB-drm functions: no (disabled, use –enable-xcb-drm to enable)
    XCB-shm functions: no (requires –enable-xcb)
    DRM-Xr functions: no (disabled, use –enable-drm-xr to enable)

    The following features and utilities:
    cairo-trace: yes
    cairo-script-interpreter: yes

    And the following internal features:
    pthread: yes
    gtk-doc: no
    gcov support: no
    symbol-lookup: yes
    test surfaces: no (disabled, use –enable-test-surfaces to enable)
    ps testing: no (requires libspectre)
    pdf testing: no (requires poppler-glib >= 0.13.3)
    svg testing: no (requires librsvg-2.0 >= 2.15.0)

    *** No native surface backends enabled for your platform. It is strongly
    *** recommended that you enable the native surface backend feature for your
    *** platform.

    on try to make the pangocairo it gives me the error below
    CCLD pango-view
    ../pango/.libs/libpangocairo-1.0.so: undefined reference to `cairo_ft_font_options_substitute’
    ../pango/.libs/libpangocairo-1.0.so: undefined reference to `cairo_ft_font_face_create_for_pattern’
    collect2: ld returned 1 exit status
    make[3]: *** [pango-view] Error 1
    make[3]: Leaving directory `/usr/local/src/pango-1.28.4/pango-view’
    make[2]: *** [all] Error 2
    make[2]: Leaving directory `/usr/local/src/pango-1.28.4/pango-view’
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/usr/local/src/pango-1.28.4′
    make: *** [all] Error 2
    Could someone help on how to go over these errors

    Thanx in advance

  2. cameron says:

    are you using a current version of fontconfig?

    Cameron

Leave a Reply