Building Pango with Cairo support

Thomas Lann picture Thomas Lann · Feb 14, 2014 · Viewed 10.7k times · Source

I'm attempting to build a new version of wireshark 1.10 on a RHEL5 box with the intent of making an RPM so that customers that I support can install it. Possibly others if I can find a place to host it.

WS1.10 depends on GTK+ as well as several other libraries that aren't supported by the available rpm packages. Therefore, I have to build them by hand. GTK+ needs pango(1.24.5) with cairo(1.8.8) support.

After having built and installed a newer version of cairo from source, a ./configure of pango gives the following error

checking for CAIRO... yes
checking which cairo font backends could be used... none
configure: Disabling cairo support

and then at the end ./configure displays

configuration:
        backends: X

I can verify that Cairo is installed by looking at the pkg_config in my /usr/local/lib.
I've even taken a look at the pango config.log. But I don't see anything that is any different then the messages I copypasta'ed above.

What are some places I should be looking to figure out a less terse error message? I'm kind of at a loss troubleshooting this.

Answer

Xiao Jia picture Xiao Jia · Apr 23, 2014

I encountered this issue today and solved it by installing HARFBUZZ, which is mentioned in the README file of Pango. After installation of Harfbuzz we have access to FreeType. So follow this procedure:

  1. Build and install FreeType
  2. Build and install fontconfig
  3. Build and install Cairo (after ./configure please make sure freetype and fontconfig are found)
  4. Build and install Harfbuzz
  5. Build and install Pango