Click to See Complete Forum and Search --> : GTK+ Installation help
CKarl
07-22-2003, 03:55 PM
I'm trying to install GTK+ on my Mandrake system and I got all the packages I need;
gtk+-2.2.2.tar.gz
pango-1.2.3.tar.gz
glib-2.2.2.tar.gz
atk-1.2.4.tar.gz
Then I go to the GTK+ installation webpage I do wat they say untill I try to "./configure", hes the error I get:
checking for glib-2.0 >= 2.1.4 atk >= 1.0.1 pango >= 1.0.1... 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
configure: error: Library requirements (glib-2.0 >= 2.1.4 atk >= 1.0.1 pango >= 1.0.1) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.
Where do I need to put them? Do I need to unzip them somewhere? PLZ help.
THX :D;
CKarl
ph34r
07-22-2003, 04:10 PM
Why not just get the RPMS?
As a note, for RPM based distros (Redhat, mandrake, etc) it is best if you install just about anything via rpm, especially if you plan on installing other software via rpm that requires whatever else - this way, it is present in the rpm database.
CKarl
07-22-2003, 04:22 PM
where is the .rpm version of GTK+?
I like RPMs they're kool, fast and easy.
dkeav
07-22-2003, 04:49 PM
umm why dont you visit plf.zarb.org
i think setting up urpmi would help you emensly
set it up like the site helps you to do, then just use urpmi to istall whatever
so after you set it up open a console, su to root
and run #urpmi gtk+2
that will install it and all dependencies
CKarl
07-22-2003, 05:19 PM
I did everything it said on the website and then I typed 'urpmi gtk+2' in and it said everything is installed! Does that mean I can start useing GTK+???
Originally posted by CKarl
I did everything it said on the website and then I typed 'urpmi gtk+2' in and it said everything is installed! Does that mean I can start useing GTK+???
Yea I think so :D
Try and tell us..
CKarl
07-22-2003, 05:33 PM
I tryed doing a smiple example to make a 200X200 pixel window when I got these errors(and I also show you wat I typed in to compile):
[karl@localhost gtk+_test]$ gcc gtk.c -o gtk `pkg-config --cflags --libs gtk+-2.0`
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
gtk.c:1:21: gtk/gtk.h: No such file or directory
gtk.c: In function `main':
gtk.c:6: `GtkWidget' undeclared (first use in this function)
gtk.c:6: (Each undeclared identifier is reported only once
gtk.c:6: for each function it appears in.)
gtk.c:6: `window' undeclared (first use in this function)
gtk.c:10: `GTK_WINDOW_TOPLEVEL' undeclared (first use in this function)
I don't know wat this means :(
dkeav
07-22-2003, 05:59 PM
you need to download the development packages, gtk-devel ect ect
CKarl
07-22-2003, 06:46 PM
Why don't they have it in the RPM? :mad: and where do I get it? :(
Feanor
07-22-2003, 07:51 PM
Originally posted by CKarl
Perhaps you should add the directory containing `gtk+-2.0.pc'
to the PKG_CONFIG_PATH environment variable
Try (bash): export PKG_CONFIG_PATH=path to gtk+-2.0.pc
and see if that helps. I've only ever installed gtkmm2 on rh9 (not currently) but I remember it took ages because of all the dependencies but I did get the simple 'hello world' to compile in the end. :)
CKarl
07-22-2003, 09:37 PM
where should I use that command? as root? where?
I get a error when I do at /home/karl/ :
[karl@localhost karl]$ export PKG_CONFIG_PATH=path to gtk+-2.0.pc
bash: export: `gtk+-2.0.pc': not a valid identifier
davholla
07-23-2003, 09:19 AM
Carl,
I had these problems with Mandrake as well.
Try doing this
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
as root and then :-
run ldconfig as root.
Have a look on the forums there should be more information, if I find the tutorial that someone wrote, I will post a link to it good luck.
If anyone with the time and ability wants to write a help file about this it would probably be really useful
David
CKarl
07-23-2003, 09:50 AM
when I typed those in it didn't bring back anyout put(on the screen) I'll try compileing now...
edit: Nope, theres no directiory called "gtk" in /usr/include :(
CKarl
07-23-2003, 12:49 PM
maybe I should give up on GTK+ too.... :(
davholla
07-23-2003, 02:35 PM
http://developer.gnome.org/doc/API/2.2/gtk/gtk-building.html
Try the above link and good luck.
The export thing won't output anything... Have you tried again after you did the export? If so post what errors are you getting.
Don't give up :D