编译gtk+2.14

gtk的官方网站:http://www.gtk.org/download-linux.html

 

按照它说的,要编译多个依赖项,pango、cairo、glib,它们可能又依赖atk、apr、pixman等。

 

总之,我跌跌撞撞编译通过了。以下两点值得注意:

 

  1. 在编译pango时,要加参数:./configure --enable-pangocairo
    否则,你刚才编译好的pango,gtk就是认不出来。
  2. 在编译gtk时,./configure --disable-cups,否则会出现“cups-config present but cups/cups.h missing”的错误
    据gtk官方说明“--disable-cups and --enable-cups.  By default the configure script will try to build the cups print backend if the cups libraries are found. These options can be used to explicitly control whether the cups print backend should be built.”所以,这里,我直接去掉了cups。

 

 

你可能感兴趣的:(html,linux)