RE: problems compiling gtk3

I just recently built gtk3 from source myself    (and did not hit your problem).

I'd say it's most likely that your PKG_CONFIG_PATH is unset
and therefore inconsistent with where you've installed your packages (/usr/local)

So you would need to re-build,   but first
  export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:/usr/lib/pkgconfig"

You can diagnose it with ldd -v of your  -
Here's output of mine (my prefix is /usr/gtk3) -
see how the reference is resolved to a libglib under the same place /usr/gtk3
That's what you should be looking for except your place is /usr/local


/root:0 nm /usr/gtk3/lib/ | fgrep -e  g_source_get_time
         U g_source_get_time
/root:0 ldd -v /usr/gtk3/lib/ | fgrep glib => /usr/gtk3/lib/ (0xb7525000)
/root:0 nm /usr/gtk3/lib/ | fgrep -e  g_source_get_time
0003d8e0 T g_source_get_time

> Subject: Re: problems compiling gtk3
> From: jbialk MIT EDU
> To: ian liu88 gmail com
> Date: Tue, 15 Mar 2011 21:12:25 -0400
> CC: gtk-list gnome org
> > Where did you installed the dependencies?
> > You must set some environment variables, so it links with the correct
> > *.so files:
> >
> >
> > BASE=$HOME/Build
> > export PATH=$BASE/bin:$PATH
> > export PKG_CONFIG_PATH=$BASE/lib/pkgconfig:$PKG_CONFIG_PATH
> >
> In installed them in the default auto-configured spot. i.e. I ran
> ./configure
> make
> sudo make install
> In my case it turns out to be /usr/local/lib/
> I checked pkg-config --libs glib-2.0 and the output was
> -L/usr/local/lib/glib-2.0 so I don't think I should have to export those
> variables. I just reinstalled the system after screwing something up so
> I will try that next though. Thanks for the suggestion.
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]