Re: Developing with GTK+2.0 (1.3.6)



Otto Wyss <otto wyss bluewin ch> writes:
> Compiling/making/installing went smooth and testgtk showed version 1.3.6.
> 
> Do I guess right that install doesn't move the .pc files to the
> pkg-config directory or establish an appropriate path.  If yes could
> this be documented somewhere?

"man pkg-config" documents PKG_CONFIG_PATH and pkg-config in general.

> Well I copied all .pc files ("cp -av /usr/src/gtk+-all-1.3.6/*/*.pc
> /usr/lib/pkgconfig/") manually 

That isn't right. ;-) make install works fine as far as I know.

The install should have placed some of the .pc files into
prefix/lib/pkgconfig/. What do you have there?

Then you should set your PKG_CONFIG_PATH environment variable to find
those files in prefix/lib/pkgconfig, just as you probably set PATH and
LD_LIBRARY_PATH and so on for that prefix.

>and made "pkg-config --modversion
> gtk+-2.0" and get the following:
> 
>   Package gdk-x11-2.0-uninstalled was not found in the pkg-config search path.
>   Perhaps you should add the directory containing `gdk-x11-2.0-uninstalled.pc'
>   to the PKG_CONFIG_PATH environment variable
>   Package 'gdk-x11-2.0-uninstalled', required by 'GTK+ Uninstalled', not found
> 
> What's wrong? "gdk-x11-2.0-uninstalled.pc" does not exist. Could
> anyone send me this file?
> 

The problem is that you installed gtk+-2.0-uninstalled.pc, I believe.
As you might guess by the name, it is not supposed to be
installed. ;-)

"pkg-config --list-all" is useful for debugging, it shows what
pkg-config can find.

Havoc




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