Re: gtk



> You don't really use pkg-config directly; the configure scripts for
> what you're installing use it.  You merely provide some external
> direction for it.
>
> Basic idea:  packages provided pkg-config files (for example, gtk
> +-2.0.pc).  These files tell pkg-config how to tell the build system
> for another package how to build and link against the first package.
> Now, to find those files, pkg-config must know where they are.
> They're installed to $PREFIX/pkgconfig by packages.  So, if glib is
> installed in /opt/gtk2, and you want to link GTK against that glib,
> you'd run GTK's configure script like so:
>
> $ PKG_CONFIG_PATH="/opt/gtk2/lib/pkgconfig:$PKG_CONFIG_PATH" ./
> configure <configure args as normal>
>
> thereby setting the environment variable on the command line.
> Optionally, you can set it in your .bashrc, .bash_profile, or
> whatever the initialization script for your shell is.
>
> - Michael

    I have just compiled and installed pkg-config. Starting over again. Next
I'm going to compile gettext. I don't know if I'll need libintl or not. I
might just need to make some sym links for it. I tey to put as much as I can
in /usr rather than /usr/local.

Bill





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