Amiga.org

Operating System Specific Discussions => Linux PPC discussion => Topic started by: levelLORD on November 03, 2003, 06:12:32 PM

Title: glib and gtk problem (linux)
Post by: levelLORD on November 03, 2003, 06:12:32 PM
Hello there!

Is there anyone here who did have problems with gtk+ 2.2.4 and glib 2.2.3? Compiling and installation of these files went fine (./configure, make, make install), but after that whenever I want to compile something new, ./configure starts crying about missing glib 2.x and pointing that I do have glib 1.x, but it requires 2.x. I linked everything through ld.so.conf, pkg-config --list-all is reading gtk+-2.0 and glib-2.0, everything looks normal, ldconfig -v is also showing glib 2.x and gtk 2.0, but like I said, I can't install nothing. Does anyone had a similar problem? I'm running Linux Red Hat 9 on x86 platform. I'll appreciate any help or advise about this, since I have no idea anymore how to deal with this problem. Thank you.

Best regards,

levelLORD
Title: Re: glib and gtk problem (linux)
Post by: levelLORD on November 04, 2003, 09:24:54 PM
Well, it's hard to believe that no one knows an answer to my problem... Not even one suggestion?

Regards,

levelLORD
Title: Re: glib and gtk problem (linux)
Post by: Speelgoedmannetje on November 04, 2003, 11:15:07 PM
We sincerely do not (want to) know where you are talking about

Prosit! :pint:
Title: Re: glib and gtk problem (linux)
Post by: NoFastMem on November 04, 2003, 11:17:06 PM
That is sooo mean. It just makes me want to cry! :cry:
Title: Re: glib and gtk problem (linux)
Post by: Speelgoedmannetje on November 04, 2003, 11:19:31 PM
Cmon! I like amiga because I do not have to fuss around with it and now here on the forum some fancy pants gonna ask us about linux thingies
Title: Re: glib and gtk problem (linux)
Post by: that_punk_guy on November 04, 2003, 11:21:04 PM
I've seen this kinda thing in Linux, and tbh I didn't have the patience to go through fixing it, I was just experimenting with  Linux to see what the fuss was about... and, IMO aside from the admirable GNU culture, not much.

I can only suggest trying the Linux forums. Try and pick one where they're not so mean about newbies first though.

@NoFastMem

Don't be sad... :-(
Title: Re: glib and gtk problem (linux)
Post by: NoFastMem on November 04, 2003, 11:22:47 PM
Quote

Speelgoedmannetje wrote:
Cmon! I like amiga because I do not have to fuss around with it and now here on the forum some fancy pants gonna ask us about linux thingies


You are making me feel sad. I cannot express the pain in my fevered brain as I reach for another Kleenex and attempt to choke back the bitter tears...
Title: Re: glib and gtk problem (linux)
Post by: Speelgoedmannetje on November 04, 2003, 11:34:27 PM
Quote

NoFastMem wrote:
Quote

Speelgoedmannetje wrote:
Cmon! I like amiga because I do not have to fuss around with it and now here on the forum some fancy pants gonna ask us about linux thingies


You are making me feel sad. I cannot express the pain in my fevered brain as I reach for another Kleenex and attempt to choke back the bitter tears...


Why? do you like Linux then? Fussing around with directories with names like asgijser4ts_43q5? And having "toys", in the main menu?
Title: Re: glib and gtk problem (linux)
Post by: NoFastMem on November 04, 2003, 11:39:20 PM
No. But I don't think you should be mean about it :-(

It's like driving in your car, missing the stop sign and falling in love... just to get knocked down. It's the thought that keeps us alive, and makes us want to try. Empathy is next to godliness. Not that I am religious. I feel betrayed by the lies I was told as a child. Heaven doesn't exist... when we die, we are gone, forever consumed by the night.

It just makes me feel so sad. :cry:
Title: Re: glib and gtk problem (linux)
Post by: Speelgoedmannetje on November 04, 2003, 11:43:09 PM
I do not fall in love and I do not believe in any religion whatsoever so whats your point?

btw, have a tissue from a real tissueclub member poor sod!
Title: Re: glib and gtk problem (linux)
Post by: bhoggett on November 04, 2003, 11:57:20 PM
@Speelgoedmannetje wrote:

Quote
Cmon! I like amiga because I do not have to fuss around with it and now here on the forum some fancy pants gonna ask us about linux thingies

You did bother to read which forum you're posting to, right?

It's not often you see posts on Amiga.org being flamed for being on-topic.
 :-?
Title: Re: glib and gtk problem (linux)
Post by: Speelgoedmannetje on November 05, 2003, 12:03:27 AM
All right all right my sincere apologies I was a bit too reactive reading glibthisthat
Title: Re: glib and gtk problem (linux)
Post by: Tomas on November 05, 2003, 12:11:43 AM
Quote
Cmon! I like amiga because I do not have to fuss around with it and now here on the forum some fancy pants gonna ask us about linux thingies

Well linux is all you can run on the AmigaONE atm.. This board also allows alternative OS discussions..

If you wont help/cant then just ignore/say you cannot help him, rather than bashing the person who do use it.
Title: Re: glib and gtk problem (linux)
Post by: Tomas on November 05, 2003, 12:13:15 AM
Quote
Why? do you like Linux then? Fussing around with directories with names like asgijser4ts_43q5? And having "toys", in the main menu?

eh?? you sure cannot have tried it out....
Title: Re: glib and gtk problem (linux)
Post by: Tomas on November 05, 2003, 12:14:39 AM
Quote

levelLORD wrote:
Hello there!

Is there anyone here who did have problems with gtk+ 2.2.4 and glib 2.2.3? Compiling and installation of these files went fine (./configure, make, make install), but after that whenever I want to compile something new, ./configure starts crying about missing glib 2.x and pointing that I do have glib 1.x, but it requires 2.x. I linked everything through ld.so.conf, pkg-config --list-all is reading gtk+-2.0 and glib-2.0, everything looks normal, ldconfig -v is also showing glib 2.x and gtk 2.0, but like I said, I can't install nothing. Does anyone had a similar problem? I'm running Linux Red Hat 9 on x86 platform. I'll appreciate any help or advise about this, since I have no idea anymore how to deal with this problem. Thank you.

Best regards,

levelLORD

I had a similar problem with mandrake once, sadly do not recall how i was able to solve it... I am pretty new to linux myself.
Title: Re: glib and gtk problem (linux)
Post by: Speelgoedmannetje on November 05, 2003, 12:16:58 AM
Quote

If you wont help/cant then just ignore/say you cannot help him, rather than bashing the person who do use it.


I didn't meant to bash him, I meant to bash Linux.
Title: Re: glib and gtk problem (linux)
Post by: bhoggett on November 05, 2003, 12:21:30 AM
@levelLORD

I have no real idea what the problem might be, not having encountered it myself, but out of curiosity, did you install glib before or after gtk+?

The configure script will configure your makefile according to your system, so if you installed gtk+ first, it may be linked to glib v1 as you had not installed glib 2 at that point.

The order in which things are installed makes quite a bit of difference under Linux, particularly if you're installing from source.
Title: Re: glib and gtk problem (linux)
Post by: levelLORD on November 05, 2003, 03:04:34 AM
@Speelgoedmannetje

Sorry dude, I'll have to ignore your socially incorrect behavior ;)

@NoFastMem

Quote
That is sooo mean. It just makes me want to cry!


:))) It's all right, he don't know what he's talking about }:)))

@that_punk_guy

Quote
I can only suggest trying the Linux forums. Try and pick one where they're not so mean about newbies first though.


Yeah, but I was thinking to give it a try here first, and after that linux forums. I'm hanging here all the time, and I know that there is a lot of linux ppl who can give me some answers. If windows users get 'em (answers), why not linux? And about that newbie thing... I'm not offended or something, but I just don't talk that much ;)

@Speelgoedmannetje

Quote
All right all right my sincere apologies I was a bit too reactive reading glibthisthat


Apologies accepted ;)

@Tomas

You did have the same problem? Are you sure that you can not remember how you manage to solve that? Even a small thing can probably lead me to fix this very annoying problem.

@bhoggett

Quote
I have no real idea what the problem might be, not having encountered it myself, but out of curiosity, did you install glib before or after gtk+?


Very well. First, I did install dependencies, libpng (jpeg, pkg-config & tiff I did have already), after that i proceed with pango and atk (can't remember which order), and finally, glib-2.2.3 and after that gtk+-2.2.4. I'm not sure, but I think that u can not install glib-223 without gtk+-224, ie there will be errors during configuration.

Quote
The configure script will configure your makefile according to your system, so if you installed gtk+ first, it may be linked to glib v1 as you had not installed glib 2 at that point.  The order in which things are installed makes quite a bit of difference under Linux, particularly if you're installing from source.


The biggest problem that I'm encountering is not with gtk and glib installation, it is with everything else that I'd like to compile and requires new glib and new gtk. It looks like glib223 and gtk224 are not linked, but they are. OK, this is what pkg-config prints in the terminal window:

pkg-config --list-all
. . . . . . . . . . . . .
glib-2.0            GLib - C Utility Library
gtk+-2.0            GTK+ - GIMP Tool Kit (x11 target)
. . . . . . . . . . . . .

And also ldconfig -v is showing glib-2.0 and gtk+2.0 as a linked library, but as I try to configure/compile let's say LiVES, this is what I got:

checking for pkg-config... (cached) /usr/bin/pkg-config
checking for gtk+-2.0 >= 1.3.13... Package gtk+-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-2.0' found

configure: error: Library requirements (gtk+-2.0 >= 1.3.13) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.

This is for gtk, and the same thing is with glib when I try to configure cdtools for xcdroast. If there is something else, just ask, I'll be glad to answer ;)

Thanks in advance!!!

cheers to @

levelLORD
Title: Re: glib and gtk problem (linux)
Post by: Cymric on November 05, 2003, 11:15:03 AM
Well, obviously the problem is not residing with the linker or the installation of gtk; ldconfig doesn't make mistakes. The problem is that pkg-config is acting up. What bothers me a little is that the configure-script is using /usr/bin/pkg-config; on my system, where I installed gtk from sources, it's residing in /usr/local/bin. Is there perhaps a second pkg-config on your system which is configured with the older version information? A second possibility I can think of is that the script is using cached information, so it doesn't go out searching for where the program truly resides. Try a 'which pkg-config' and note the directory it returns. Also, run 'make clean' before attempting to reconfigure gtk.
Title: Re: glib and gtk problem (linux)
Post by: Emufreak on November 05, 2003, 12:46:06 PM
I had a similar Problem with gtk+ and UAE. After i deleted config.cache in the UAE-Source directory it worked fine.  Here the link to my thread

http://www.amiga.org/forums/showthread.php?t=3288

Title: Re: glib and gtk problem (linux)
Post by: levelLORD on November 10, 2003, 08:33:30 PM
@Cymric

Dude, pointing at pkg-config was brilliant idea! Trying out 'which pkg-config' showed that old pkg-config was linked (the one which is coming with RH9 installation) and not the new one that I installed, so I fixed that and it is actually working :))) After that, configuring and installation was just a breeze. Thanks man, I really appreciate your help, and sorry for a slow reply, I was very, very busy these days.

regards,

levelLORD
Title: Re: glib and gtk problem (linux)
Post by: levelLORD on November 10, 2003, 08:40:54 PM
@Emufreak

Thanks Emufreak, but it wasn't nothing like that. Whenever I was trying to install software, I did it from the fresh source directory, but thanks anyways for your help ;)

regards,

levelLORD