gtk+-1.2 not compitable gtk+-2.0

本文介绍了从GTK+1.2迁移到GTK+2.0的过程,强调了两者之间的不兼容性,并提供了具体的迁移步骤。对于希望更新其应用程序以使用GTK+2.0的开发者来说,这是一份宝贵的资源。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >


Dirk,

gtk+-1.2 and gtk+-2.0 aren't compatible, you cannot just replace
gtk+-1.2 with gtk+-2.0 and recompile (ie the application must have been
ported to gtk+-2.0, and in that case, the developpers will modify the
configure script so that it will invoke pkg-config properly)

For example, gimp-1.3.x (unstable developpment branch) uses gtk+2.0
while gimp 1.2.x (stable branch) still uses gtk+-1.2

If you plan to port your application to gtk+-2.0, you can use 

  CFLAGS=`pkg-config gtk+-2.0 --cflags`
  LIBS=`pkg-config gtk+-2.0 --libs`

in place of gtk+-1.2 that was invoked like :

  CFLAGS=`gtk-config --cflags`
  LIBS=`gtk-config --libs`

in your Makefile. But, usually, porting an application to gtk+-2.0 is a
lot more than just replacing the compilation flags ;-)

Hope that helps, 

Cheers,
Olivier.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值