Error compiling Webkit: something to do with glib

Using applications, configuring, problems
Post Reply
Message
Author
User avatar
DaveS
Posts: 3685
Joined: Thu 09 Oct 2008, 16:01
Location: UK

Error compiling Webkit: something to do with glib

#1 Post by DaveS »

Desperately trying to compile webkit but cant get past this error:

Code: Select all

checking for GLIB... configure: error: Package requirements (glib-2.0 >= 2.21.3
                  gobject-2.0 >= 2.0
                  gthread-2.0 >= 2.0) were not met:

Requested 'glib-2.0 >= 2.21.3' but version of GLib is 2.18.3

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables GLIB_CFLAGS
and GLIB_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
Been on this for a week now. I HAVE compiled and installed glib 2.22 from here
http://ftp.gnome.org/pub/gnome/sources/glib/2.22/
But it makes no difference. :(

tubby
Posts: 317
Joined: Sat 24 Jan 2009, 15:49

glib

#2 Post by tubby »

Would the latest pet from here help? ftp://distro.ibiblio.org/pub/linux/dist ... ackages-4/

User avatar
DaveS
Posts: 3685
Joined: Thu 09 Oct 2008, 16:01
Location: UK

#3 Post by DaveS »

Thanks for taking the time Tubby. No luck though......... seems crazy.
Spup Frugal HD and USB
Root forever!

npierce
Posts: 858
Joined: Tue 29 Dec 2009, 01:40

#4 Post by npierce »

When you looked at the pkg-config man page and then tried

Code: Select all

pkg-config --cflags --libs glib-2.0
to see what the response was, what was it?

User avatar
DaveS
Posts: 3685
Joined: Thu 09 Oct 2008, 16:01
Location: UK

#5 Post by DaveS »

npierce wrote:When you looked at the pkg-config man page and then tried

Code: Select all

pkg-config --cflags --libs glib-2.0
to see what the response was, what was it?
This is what came up:

Code: Select all

-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include  -lglib-2.0
Spup Frugal HD and USB
Root forever!

User avatar
DaveS
Posts: 3685
Joined: Thu 09 Oct 2008, 16:01
Location: UK

#6 Post by DaveS »

Getting nowhere now, so giving up. Heck, I am such a doombrain.............
Spup Frugal HD and USB
Root forever!

npierce
Posts: 858
Joined: Tue 29 Dec 2009, 01:40

#7 Post by npierce »

Okay, so it doesn't look like the linker is looking anywhere special for libglib-2.0. Let's see what we find when we look in some standard places. Try these commands:

Code: Select all

echo $LIBRARY_PATH
echo $LD_LIBRARY_PATH
ls -l /lib/libglib-2.0*
ls -l /usr/lib/libglib-2.0*
ls -l /usr/local/lib/libglib-2.0*

User avatar
DaveS
Posts: 3685
Joined: Thu 09 Oct 2008, 16:01
Location: UK

#8 Post by DaveS »

OK, I get this:

Code: Select all

# echo $LD_LIBRARY_PATH 
/lib:/usr/lib:/usr/X11R7/lib:/root/my-applications/lib:/opt/qt4/lib:/opt/mozilla.org/lib:/usr/lib/seamonkey:/opt/samba/lib
# ls -l /lib/libglib-2.0* 
ls: cannot access /lib/libglib-2.0*: No such file or directory
# ls -l /usr/lib/libglib-2.0* 
-rwxr-xr-x 1 root root    957 2009-06-11 16:49 /usr/lib/libglib-2.0.la
lrwxrwxrwx 1 root root     23 2009-10-16 01:33 /usr/lib/libglib-2.0.so -> libglib-2.0.so.0.1800.3
lrwxrwxrwx 1 root root     23 2010-04-22 10:59 /usr/lib/libglib-2.0.so.0 -> libglib-2.0.so.0.2200.2
lrwxrwxrwx 1 root root     23 2010-04-21 18:39 /usr/lib/libglib-2.0.so.0.1800.3 -> libglib-2.0.so.0.2200.2
-rwxr-xr-x 1 root root 751300 2009-10-24 14:16 /usr/lib/libglib-2.0.so.0.2200.2
# ls -l /usr/local/lib/libglib-2.0*
Spup Frugal HD and USB
Root forever!

npierce
Posts: 858
Joined: Tue 29 Dec 2009, 01:40

#9 Post by npierce »

Hi Dave,

I guess you sent your earlier post while I was writing my last post, so I didn't notice it. I didn't mean to push you into continuing if you are getting tired of this. I know how frustrating things get after working on them a long while. If you want to stop, feel free to ignore the rest of this post.

But if you want to try one more thing just to see if it helps, read on. . .

The links in /usr/lib look a little unconventional. libglib-2.0.so points to another link named libglib-2.0.so.0.1800.3, which in turn points to libglib-2.0.so.0.2200.2, the actual library.

I'm not sure how the library version is determined when gcc is run, but if it looks at the name of the link in the middle, that might be enough to confuse it into thinking that you have the older version still installed. I suggest changing libglib-2.0.so to point to libglib-2.0.so.0, like so:

Code: Select all

rm /usr/lib/libglib-2.0.so
ln -s libglib-2.0.so.0 /usr/lib/libglib-2.0.so
Unless you have a specific reason for having the links as you have them, this change is probably worth trying. I'm not sure if it will help, but it's worth a shot.

--npierce

User avatar
DaveS
Posts: 3685
Joined: Thu 09 Oct 2008, 16:01
Location: UK

#10 Post by DaveS »

npierce wrote:Hi Dave,

I guess you sent your earlier post while I was writing my last post, so I didn't notice it. I didn't mean to push you into continuing if you are getting tired of this. I know how frustrating things get after working on them a long while. If you want to stop, feel free to ignore the rest of this post.

But if you want to try one more thing just to see if it helps, read on. . .

The links in /usr/lib look a little unconventional. libglib-2.0.so points to another link named libglib-2.0.so.0.1800.3, which in turn points to libglib-2.0.so.0.2200.2, the actual library.

I'm not sure how the library version is determined when gcc is run, but if it looks at the name of the link in the middle, that might be enough to confuse it into thinking that you have the older version still installed. I suggest changing libglib-2.0.so to point to libglib-2.0.so.0, like so:

Code: Select all

rm /usr/lib/libglib-2.0.so
ln -s libglib-2.0.so.0 /usr/lib/libglib-2.0.so
Unless you have a specific reason for having the links as you have them, this change is probably worth trying. I'm not sure if it will help, but it's worth a shot.

--npierce
Thanks again, but still get the same error..................
Spup Frugal HD and USB
Root forever!

npierce
Posts: 858
Joined: Tue 29 Dec 2009, 01:40

#11 Post by npierce »

I did some reading and found out that pkg-config doesn't try to find out what version of a library is actually installed. It just looks in a text file (in this case, /usr/lib/pkgconfig/glib-2.0.pc). If the entry for "Version:" in the file doesn't match the actual version installed, pkg-config returns the wrong information.

That file should have been automatically updated when you compiled and installed glib 2.22, but something must have gone wrong.

Since you recently installed glib-2.22.2-p4.pet, the simplest way to fix this is to install ftp://distro.ibiblio.org/pub/linux/dist ... 2.2-p4.pet, which contains a correct copy of the /usr/lib/pkgconfig/glib-2.0.pc text file.

User avatar
DaveS
Posts: 3685
Joined: Thu 09 Oct 2008, 16:01
Location: UK

#12 Post by DaveS »

npierce wrote:I did some reading and found out that pkg-config doesn't try to find out what version of a library is actually installed. It just looks in a text file (in this case, /usr/lib/pkgconfig/glib-2.0.pc). If the entry for "Version:" in the file doesn't match the actual version installed, pkg-config returns the wrong information.

That file should have been automatically updated when you compiled and installed glib 2.22, but something must have gone wrong.

Since you recently installed glib-2.22.2-p4.pet, the simplest way to fix this is to install ftp://distro.ibiblio.org/pub/linux/dist ... 2.2-p4.pet, which contains a correct copy of the /usr/lib/pkgconfig/glib-2.0.pc text file.
Thanks.... that fixed it, so now on to the next error, something about ICU :)
Spup Frugal HD and USB
Root forever!

npierce
Posts: 858
Joined: Tue 29 Dec 2009, 01:40

#13 Post by npierce »

:)

Yay!

You're welcome. I'm glad we got it fixed!

User avatar
DaveS
Posts: 3685
Joined: Thu 09 Oct 2008, 16:01
Location: UK

#14 Post by DaveS »

npierce wrote::)

Yay!

You're welcome. I'm glad we got it fixed!
Yay! Thanks again. Not simple is it!
Spup Frugal HD and USB
Root forever!

npierce
Posts: 858
Joined: Tue 29 Dec 2009, 01:40

#15 Post by npierce »

No, not at all simple.

And as the years go by, things seem to keep getting less and less simple. The irony is that folks think that they are making things simpler by automating stuff. Well, when it works it is simpler. But when something goes wrong, watch out! Trying to figure out what went wrong with it can be a nightmare.

Of course, things never go wrong! :lol:

tubby
Posts: 317
Joined: Sat 24 Jan 2009, 15:49

#16 Post by tubby »

If you haven`t sorted ICU yet download it direct from the ICU site and it compiles very easy but you may need a 4.2 release not the current 4.4.

User avatar
DaveS
Posts: 3685
Joined: Thu 09 Oct 2008, 16:01
Location: UK

#17 Post by DaveS »

Hey Tubby. Thanks........ I had done that and failed of course, so am taking a bit of a break to experiment with 4.4 LOL.
Spup Frugal HD and USB
Root forever!

Post Reply