LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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

Reply
 
LinkBack Search this Thread
Old 04-27-2005, 03:58 AM   #1
grayFalcon
Member
 
Registered: Jan 2003
Distribution: Debian
Posts: 68

Rep: Reputation: 15
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
 
Old 04-27-2005, 04:53 AM   #2
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 70
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.
 
Old 04-27-2005, 05:20 AM   #3
grayFalcon
Member
 
Registered: Jan 2003
Distribution: Debian
Posts: 68

Original Poster
Rep: Reputation: 15
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...
 
Old 04-27-2005, 05:40 AM   #4
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
in a terminal:

pkg-config --help

to see your options.

pkg-config --modversion glib-2.0

will give you glib's version
 
Old 04-27-2005, 05:50 AM   #5
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu 10.04
Posts: 9,196

Rep: Reputation: 190Reputation: 190
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?
 
Old 04-27-2005, 03:27 PM   #6
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
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.
 
Old 04-27-2005, 04:23 PM   #7
grayFalcon
Member
 
Registered: Jan 2003
Distribution: Debian
Posts: 68

Original Poster
Rep: Reputation: 15
Thanks a lot, this kinda clears things up
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
conflicting glib versions and glib-config scius Linux - Software 5 06-03-2008 02:35 AM
Glib & GTK+ versions 1.2.10 & 2.4.0 RaVilj Linux - Software 9 06-18-2004 05:30 PM
glib & gtk headers Donald1000 Solaris / OpenSolaris 1 06-08-2003 12:19 PM
Installing GTK+-2.0.6 & GLIB-2.0.6 Kryptow Linux - Newbie 5 09-06-2002 08:33 AM
missing gtk & glib - config elite Linux - Newbie 2 04-12-2002 06:22 PM


All times are GMT -5. The time now is 03:00 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration