Click to See Complete Forum and Search --> : jeeeez installing GTK+ grrr


mikerob283
01-23-2004, 11:08 PM
ok this is a little irritating but i'm not gonna give up... best thing to do is ask you guys for a little help...

i under stand that you must point the paths in linux so that other programs can find the neccesary libs/pkgconfigs etc...

ok so i'm " ./configure --prefix=/opt/gtk " gtk+ and it says

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

so what do i do? i type
PKG_CONFIG_PATH="/opt/glib/lib/pkgconfig"
export PKG_CONFIG_PATH

then i run " ./configure --prefix=/opt/gtk " again

then it says the same thing but for ATK
ugh
so i type

PKG_CONFIG_PATH="/opt/atk/lib/pkgconfig"
export PKG_CONFIG_PATH

and then run ./configure again and it goes back to missing GLIB ... jeeez wheres the PKG_CONFIG_PATH and LD_LIBRARY_PATH files so i can just add a line in there pointing to BOTH directories?

niales
01-24-2004, 02:23 AM
I don't know the files, maybe /etc/ld.so.conf for the LD_LIBRARY_PATH. Otherwise, try this. It works with PATH.


PKG_CONFIG_PATH="/opt/glib/lib/pkgconfig:/opt/atk/lib/pkgconfig"
export PKG_CONFIG_PATH

then add it too your ~/.bashrc

-niales

psi42
01-24-2004, 03:13 AM
Originally posted by mikerob283
i type
PKG_CONFIG_PATH="/opt/glib/lib/pkgconfig"
export PKG_CONFIG_PATH

then i run " ./configure --prefix=/opt/gtk " again

then it says the same thing but for ATK
ugh
so i type

PKG_CONFIG_PATH="/opt/atk/lib/pkgconfig"
export PKG_CONFIG_PATH

and then run ./configure again and it goes back to missing GLIB

What is happening is that when you set the search path to /opt/atk/lib/pkgconfig it no longer searches in the glib directory.

This probably isn't the best solution, but what will probably work is setting it to search in all said directories, as in


export PKG_CONFIG_PATH="/opt/glib/lib/pkgconfig:/opt/atk/lib/pkgconfig"


and any additional paths it asks for, colon separated...


~psi42