Re: GTK+-2.2.4 together with GTK+-1.2.10

export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

then configure your gtk2 program.  Also make sure /usr/local/lib is in
/etc/ file and that you ran ldconfig so that the system can
find the library files.  Once you do that, gtk2 programs will always
compile and build.  gtk1 and gtk2 don't clash.  This ought to be in the
FAQ, since it's asked every couple of weeks.

basically pkg-config defaults to looking in /usr/lib/pkgconfig when you
build a new gtk2 program.  Since you've compiled from source, it's in
/usr/local/lib/pkgconfig.  I recommend you install the binary packages
fro gtk2 from your distro maintainer.  Then you won't encounter these
types of problems.


On Mon, 2003-09-15 at 10:56, an unknown sender wrote:
> Hi,
> I Installed GTK+-2.2.4(from source) and found that some of the applications I 
> tried to install didn't like 2.2- so I had to install GTK+1.2.10. And finally 
> that worked.
> Now I tries to get some apps work that uses GTK2.2... But the configure-script 
> can't find it.
> I installed the GTK+-2.2.4 straight off. No options was used.
> The config-script claims that it can't find ../gtk/gtk.h Of course it can't, 
> it is stored at /usr/local/include/gtk-2.0/gtk/gtk.h.
> So what to do or what should I done it?
> I know both libraries should be able to co-exist.
> Please help , thanks.
> /Lars-Göran Andersson
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
Michael Torrie <torriem chem byu edu>

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