LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-29-2004, 03:10 PM   #1
Boudewijn
Member
 
Registered: Nov 2003
Location: The Netherlands
Distribution: MDK: 10,10.1,10_amd64,9.2,9.1 . Debian: sarge,woody, Gentoo (X86 amd64 Sparc)
Posts: 219

Rep: Reputation: 30
compiling gaim using custom glib dir


Hi,

I'm trying to compile GAIM (newest version):

checking for GLIB - version >= 2.0.0... no
*** Could not run GLIB test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GLIB is incorrectly installed.
configure: error:
*** GLib 2.0 is required to build Gaim; please make sure you have the GLib
*** development headers installed. The latest version of GLib is
*** always available at http://www.gtk.org/.
debian:/home/boudewijn/gaim-1.0.3#

This is the result of the configure script.
I've already done configure make and (as root) make install on glib (newest version).

Glib is in /home/boudewijn/glib-2.2.3

How can I tell the configure script to look over there??

I've tried this in the gaim diectory:

LDFLAGS=/home/boudewijn/glib-2.2.3/ ./configure

which didn't work. By the way; I'm using debian sarge

Last edited by Boudewijn; 11-29-2004 at 03:23 PM.
 
Old 11-29-2004, 03:51 PM   #2
Ironica
Member
 
Registered: Jan 2003
Distribution: LFS
Posts: 64

Rep: Reputation: 15
I think it uses pkg-config to check glib version. Try running:
pkg-config glib-2.0 --modversion
Does it print the version of glib? If not, then you have to give pkg-config some information about your package, glib-2.0.
Just checked out the pkg-config man page. Look inside the directory /usr/lib/pkgconfig (or maybe /usr/local/lib/pkgconfig or different, depending where pkg-config is installed). From what I can figure, you have to create a file in there named glib-2.0.pc. Look at some of the other files in that directory, for examples of how to do it.
 
Old 11-29-2004, 04:28 PM   #3
Boudewijn
Member
 
Registered: Nov 2003
Location: The Netherlands
Distribution: MDK: 10,10.1,10_amd64,9.2,9.1 . Debian: sarge,woody, Gentoo (X86 amd64 Sparc)
Posts: 219

Original Poster
Rep: Reputation: 30
debian:/home/boudewijn/glib-2.2.3# pkg-config glib-2.0 --modversion
Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glib-2.0' found


ah ok

I'll try addding the glib dir to the pkg_config_path variable:


env PKG_CONFIG_PATH=/home/boudewijn/glib-2.2.3

gives this as output (a lot more but this is the one relevant line)
PKG_CONFIG_PATH=/home/boudewijn/glib-2.2.3
so it seems ok to me


But I'm still getting the same error from GAIM's configure

So Icreated the .pc file:

debian:/usr/lib/pkgconfig# more glib-2.2.3.pc
libdir=/home/boudewijn/glib-2.2.3/

Name: glib-2.0
Version: 2.2.3


Didn't work either

Last edited by Boudewijn; 11-29-2004 at 04:47 PM.
 
Old 11-29-2004, 04:51 PM   #4
Ironica
Member
 
Registered: Jan 2003
Distribution: LFS
Posts: 64

Rep: Reputation: 15
But does that directory (/home/boudewijn/glib-2.2.3) contain the glib-2.0.pc file? I think you'll need to create it. The contents should be something like:
Code:
prefix=/home/boudewijn/glib-2.2.3
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

glib_genmarshal=glib-genmarshal
gobject_query=gobject-query
glib_mkenums=glib-mkenums

Name: GLib
Description: C Utility Library
Version: 2.2.3
Libs: -L${libdir} -lglib-2.0  
Cflags: -I${includedir}/glib-2.0 -I${libdir}/glib-2.0/include
It sounds like the PKG_CONFIG_PATH variable needs to point to the directory where glib-2.0.pc file is, not where glib itself is.

Edit - It should be named glib-2.0.pc, not glib-2.2.3.pc.

Last edited by Ironica; 11-29-2004 at 04:53 PM.
 
Old 11-29-2004, 04:59 PM   #5
Boudewijn
Member
 
Registered: Nov 2003
Location: The Netherlands
Distribution: MDK: 10,10.1,10_amd64,9.2,9.1 . Debian: sarge,woody, Gentoo (X86 amd64 Sparc)
Posts: 219

Original Poster
Rep: Reputation: 30
ok. just copied your example file into /usr/lib/pkgconfig
and called it: glib-2.0.pc

Afterwards I've set the PKG_CONFIG_PATH to /usr/lib/pkgconfig.

Then I ran configure , which still spawned an error.
 
Old 11-30-2004, 02:53 PM   #6
Boudewijn
Member
 
Registered: Nov 2003
Location: The Netherlands
Distribution: MDK: 10,10.1,10_amd64,9.2,9.1 . Debian: sarge,woody, Gentoo (X86 amd64 Sparc)
Posts: 219

Original Poster
Rep: Reputation: 30
Ok, this evening I got on with the problem:

I've looked at my mandrake box's glib-2.0.pc and made the following one for my new debian machine (where I want to compile gaim):

glib-2.0.pc

prefix=/home/boudewijn
exec_prefix=/home/boudewijn
libdir=/home/boudewijn/glib-2.2.3
includedir=/home/boudewijn/glib-2.2.3

glib_genmarshal=glib-genmarshal
gobject_query=gobject-query
glib_mkenums=glib-mkenums

Name: GLib
Description: C Utility Library
Version: 2.2.3
Libs: -L${libdir} -lglib-2.0
Cflags: -I${includedir}/glib-2.0 -I${libdir}/glib-2.0/include

I've put this file in /usr/lib/pkgconfig .

pkg-config --modversion glib-2.0 return 2.2.3 so that seems correct to me.

Has anyone got a clue about what I'm doing wrong?
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Glib dir? Error in config for 3.3.2 arts drache777 Linux - Newbie 1 01-13-2005 08:17 PM
Compiling GAIM says i need GLib 2.0, yet i have GLib 2.4 MadSkillzMan Linux - Newbie 3 07-10-2004 04:10 AM
Compiling GAIM 0.78 on Debian | GLIB 2.0 Errors muzicman82 Linux - Software 0 06-05-2004 05:41 AM
GAIM 0.62 and GLib kko88 Linux - Software 9 05-23-2003 03:33 PM
glib 2.0.0 and gaim 0.59 GT I.N.C Linux - Newbie 2 07-10-2002 12:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:18 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration