编译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。

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值