Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
04-27-2005, 04:58 AM
|
#1
|
Member
Registered: Jan 2003
Distribution: Debian
Posts: 69
Rep:
|
glib & gtk old versions?
Hello!
The problem in my other post seems to be going a lot deeper...
To make it short: I have compiled and installed new versions (2.4) of glib and gtk+ a while ago. Now I found out that glib-config --version and gtk-config --version both say 1.2.10. I downloaded glib 2.4 again, compiled and installed it, glib-config --version still says 1.2.10. Any idea what may be wrong?
Thanks a lot in advance,
-Wojtek
|
|
|
04-27-2005, 05:53 AM
|
#2
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
glib 1.x and glib 2.x as well as gtk 1.x and 2.x are different and can coexist on a system. I am sure your gtk2 and glib2 installation is fine because I have them installed on my system but the version of glib-config is listed as 1.2.10.
|
|
|
04-27-2005, 06:20 AM
|
#3
|
Member
Registered: Jan 2003
Distribution: Debian
Posts: 69
Original Poster
Rep:
|
Thanks!
How do I find out then if I have glib 2.4 or 2.6 installed? I have a problem (getting lots of unknown symbol: g_assert_warning errors) that I have read elsewhere may be caused by glib and gtk+ 2.6 and solved by going back to glib and gtk+ 2.4. This could be hard though if I can;t find out which version I actually have installed...
|
|
|
04-27-2005, 06:40 AM
|
#4
|
Senior Member
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973
Rep:
|
in a terminal:
pkg-config --help
to see your options.
pkg-config --modversion glib-2.0
will give you glib's version
|
|
|
04-27-2005, 06:50 AM
|
#5
|
LQ Guru
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211
Rep:
|
In /usr/include I have directories for glib-1.2and glib-2.0 ... presumably future updates will create new directories. I note that in /usr/lib/glib/include there is a header file called glibconfig.h which lists, among other things, major version 1, minor version 2 etc ... i.e. 1.2.10 so glib-config --version returns 1.2.10
presumably there is a way of updating this.
glib-config --cflags returns
-I/usr/include/glib-1.2 -I/usr/lib/glib/include
but what if we want to use glib-2.0 or whatever? Shouldn't this be:
-I/usr/include/glib-2.0 ...
glib-config --libs returns
-L/usr/lib -lglib
which seems OK no matter what.
so what is going on here?
|
|
|
04-27-2005, 04:27 PM
|
#6
|
Senior Member
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973
Rep:
|
the 2.x.x of the gnome libs do not use xxxx-config scripts, they use pkg-config. if you want to use glib-2.x instead of 1.x, use pkg-config, if you want to use the 1.x libs, use glib-config.
|
|
|
04-27-2005, 05:23 PM
|
#7
|
Member
Registered: Jan 2003
Distribution: Debian
Posts: 69
Original Poster
Rep:
|
Thanks a lot, this kinda clears things up
|
|
|
All times are GMT -5. The time now is 04:08 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|