gtk-config vs pkg-config

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.


On Thu, 2002-09-12 at 16:14, Dirk Will wrote:
> Hi there,

> I installed gtk+-2.0.6 and now I want to install some more packages like
> gimp, gaim and so on.

> As i am running (for example):
> "./configure --prefix=/opt/pd/Programme/gimp-1.2.3 --enable perl --enable
> python"
> all i receive is a message like:
> checking for GTK - version >= 1.2.8... no
> *** The gtk-config script installed by GTK could not be found
> *** If GTK was installed in PREFIX, make sure PREFIX/bin is in
> *** your path, or set the GTK_CONFIG environment variable to the
> *** full path to gtk-config.
> configure: error: Test for GTK failed. See the file 'INSTALL' for help.

> well, the INSTALL file is still talking about gtk-config...

> as i found out in the web after a long stroll today i have to use pkgconfig
> instead. But how?

> It wont work like 
> "pkg-config --libs --cflags gtk+-2.0.6 > ./configure
> --prefix=/opt/pd/Programme/gimp-1.2.3 --enable-perl --enable-python"
> or just running the pkg_config string 
> "pkg-config --libs --cflags gtk+-2.0.6"
> and after it the configure string.

> The pages i found all tell me to use pkg-config, but not how to use it
> together with configure.

> I have set the Path Variables and so on, like
> LD_LIBRARY_PATH, PKG_CONFIG_PATH, CPP_FLAGS that i have found in the various
> README and INSTALL Files, but how to tell the configure to use the
> infromation of pkgconfig?

> That question is propably very trivial for the most of you, on the other
> hand i didn't find any answer nowhere but more often some other asking questions
> in that direction.

> Anyway, thanks a lot....

> Bye, Dirk.

> -- 
> GMX - Die Kommunikationsplattform im Internet.
> http://www.gmx.net

> _______________________________________________
> gtk-devel-list mailing list
> gtk-devel-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-devel-list

-- 
Olivier <fourdan xfce org> http://www.xfce.org
-----------------------------------------------------------------------
XFce is a lightweight desktop environment for various *NIX systems.
Designed for productivity, it loads and executes applications fast,
while conserving system resources. XFce is all free software, released
under GNU General Public License. Available from http://www.xfce.org

 

from : http://mail.gnome.org/archives/gtk-devel-list/2002-September/msg00054.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值