Re: how to update the gtk lib??



On Sat, Jul 20, 2002 at 12:55:44PM +0800, é? è? wrote:
> Because the previous version of glib and gtk in my system is 1.2,i
> want to use the new function of gtk2.0.So i try to update the lib,but
> no success.Here's my process:
> 
> Fisrt,compile and install the glib2.0.0 and gtk2.0.0
> 
> Second,add path in the ld.so.config and run ldconfig,and i see these 
> information:
> 
> /opt/gtk/lib:
> 	libgdk_pixbuf_xlib-2.0.so.0 -> libgdk_pixbuf_xlib-2.0.so.0.0.0
> 	libgtk-x11-2.0.so.0 -> libgtk-x11-2.0.so.0.0.0
> 	libgdk-x11-2.0.so.0 -> libgdk-x11-2.0.so.0.0.0
> 	libgdk_pixbuf-2.0.so.0 -> libgdk_pixbuf-2.0.so.0.0.0
> /opt/glib/lib:
> 	libgthread-2.0.so.0 -> libgthread-2.0.so.0.0.0
> 	libgmodule-2.0.so.0 -> libgmodule-2.0.so.0.0.0
> 	libgobject-2.0.so.0 -> libgobject-2.0.so.0.0.0
> 	libglib-2.0.so.0 -> libglib-2.0.so.0.0.0
> 
> but the glib-config and gtk-config shell in the /usr/bin/ is still for
> glib1.2 and gtk1.2,at every time the configure of my code will use the 
> two config shell to identify the library.I try to modify them for 2.0,
> but have no effect,and it had cause the 1.2 version lost.

That is because the 2.x version of GTK+ and GLib no longer use the
*-config files. The newer versions use pkg-config to get the
configuration information, since that provides a more consistent
interface for a large number of packages.

Note, also, that your code will probably not quite work out of the box
if you build against the new versions of the libraries, since there were
a number of incompatible changes.

Have a look at http://developer.gnome.org/dotplan/porting/ for the
changes you will need to make to your build infrastructure and code.

Cheers,
Malcolm



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]