So where did you install glib? If you didn't ./configure --prefix-/somewhere it will install in the default location, /usr/local , which brings me to the next questions, what is your PKG_CONFIG_PATH? To find out, type in
and if its not set, set it as a list of all the pkgconfig folders on your computer. This does it for me.