LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Xmms configure can't find glib (https://www.linuxquestions.org/questions/linux-newbie-8/xmms-configure-cant-find-glib-266081/)

shootempolitely 12-13-2004 07:19 PM

Xmms configure can't find glib
 
Hi,
I'm new to Linux and I'm trying to get glib2.0 installed. I've spent days trying to get it to work (I'm not kidding I've just finished exams and have nothing better to do with my time) and have just urn out of ideas and places to look for them.

Basically I think it's installed, but no program dependent on it can seem to find it. The glib2.0 instillation itself went off with no error and I assume it's installed.

However whenever I run ./configure for Xmms I get the following message:

checking for GLIB - version >= 1.2.2... no
*** The glib-config script installed by GLIB could not be found
*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GLIB_CONFIG environment variable to the
*** full path to glib-config.
configure: error: *** GLIB >= 1.2.2 not installed - please install first ***

After reading up on the subject I found that this could be solved by setting my PKG_CONFIG_PATH variable to where my glib-2.0.pc file was located. So I did:

$ PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
$ export PKG_CONFIG_PATH

I can do this by putting it into a terminal but for some reason it doesn't work if I put it in .bashrc but no matter what method I get the same error as above. I've googled till I can't google no more and can't find the answer.

Here are the pkg-config commands and their outputs.

$ pkg-config --cflags glib-2.0
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include

$ pkg-config --libs glib-2.0
-L/usr/local/lib -lglib-2.0

I have checked these directories and there are glib files but the problem is I have NO WAY of knowing if they are the right file or what. I assume they are.

Apparently I can pass the values above to the ./configure for xmms but again I don't know how.

ANY help would be greatly appreciated as this is driving me insane.

Thanks.
Lewis.

qwijibow 12-13-2004 07:57 PM

People will probably dissagree with me, but here are my views on compiling porgrams from source coce...

If you are using a Binary Distro, stick with binary installs.
if you are using a source distro, use the source luke !!!!

for example.. lets say you install X from source code,
not only will X be installed, but also the X source code is installed.

if you install X from a binary package, only x is installed, NOT the X source code.

so after installing X from a binary package, anny attempt to install a porgram that relies on X will fail, since the source code is missing... then you have to go back and install X source code seperatly from X and AGH !!! its a mess !

when i was a linux newbie, i got loads of error compiling things saying XYZ wasnt installed... when i knew it was.. and to fix it i had to go back and install XYZ-devel (SOMTHING-devel on rpm's means the source code to the binary package)

ANYWAYS....
what distro did you install ????

All the major Distro's have Xmms pre-compiled and available for installing from the distro's install cd.
unless you are using a source distro like Gentoo, i would always recomend using binary packages to install things.

shootempolitely 12-13-2004 08:35 PM

Hi,
I'm using Mandrake 10.1. I believe the rpm is available for install but if possible I would like to be able to get this sorted. I'm trying to learn and although binaries may be the easy way I wouldn't feel right using them unless I could do it the hard way too. After all not everything has binaries availiable right? And ones that don't I'm getting the feeling rely heavily on this GTK....thing.

Anyway thank you for your reply but since my post I discovered something that makes me very VERY stupid in that Xmms doesn't work with glib 2.0 but rather need glib 1.x. Which means hours of fiddling with variables and other rubbish means f*#ck all. So yay.

The problem now is that I can't make glib1.0.10. The configure runs fine but the make bombs out with the following...

(I'm not sure exactly where the error starts so I just copied the last few lines)

gcc -DHAVE_CONFIG_H -I. -I. -I. -DG_LOG_DOMAIN=g_log_domain_glib -g -O2 -Wall -D_REENTRANT -c gstrfuncs.c -fPIC -DPIC -o .libs/gstrfuncs.lo
gstrfuncs.c: In function `g_printf_string_upper_bound':
gstrfuncs.c:870: error: syntax error before string constant
gstrfuncs.c:1037: error: syntax error before string constant
gstrfuncs.c:1080: error: syntax error before string constant
gstrfuncs.c:1111: error: syntax error before string constant
make[2]: *** [gstrfuncs.lo] Error 1
make[2]: Leaving directory `/home/scs3ljt/glib-1.2.10'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/scs3ljt/glib-1.2.10'
make: *** [all-recursive-am] Error 2

Any help appreciated as theres not a lot to search on for this.

Thanks
Lewis.

qwijibow 12-13-2004 09:28 PM

OOPS......
i actually knew that, sorry, i forgot to mention beep-media-player

beep-media-player is identicle to xmms, (with a different default skin)
but is compiled againsed the 2.0 glib library.

see http://beepmp.sourceforge.net/

note that its somtimes called things like BMP or Beep-MP

think of beep-media-player as xmms 2
from what i understand, beep-media-player was created from XMMS source code.

as for your inability to compile Glib 1.x i wouldnt worry about it too much,
as im sure you know, its old has has been replaced with glib 2.x


All times are GMT -5. The time now is 02:32 PM.