[pkg-config] Glib not found

Dan Nicholson dbn.lists at gmail.com
Tue Mar 23 08:47:03 PDT 2010


On Tue, Mar 23, 2010 at 8:34 AM, Vincenzo Urso Miano
<ursomiano at googlemail.com> wrote:
> Hello
> I am trying to compile a fortran source file which uses plplot. A
> graphic library.
>
> I type:
> ________________________________________________________________________________________________
> cd c:"\Program Files\plplot\share\plplot5.9.5\examples\f77"
> set PKG_CONFIG_LIBDIR=c:\GTK\Glib\bin;"C:\Program
> Files\plplot\bin";"C:\Program Files\plplot\lib\pkgconfig";c:"\Program
> Files\plplot\bin"
> c:\win-bash\win-bash
> bash$ gcc -o test x01f.f `pkg-config --libs --cflags plplotd`
> ______________________________________________________________________________________________
>
>
> c:\GTK\Glib\bin is the path to libglib-2.0-0.dll
> "C:\Program Files\plplot\bin" is the path to libplplotd.dll
> C:\Program Files\plplot\lib\pkgconfig is the path to plplotd.pc
>
> I get an error because glib is not found glib-2.0-0

I'm just guessing, but you need to get the glib-2.0.pc file in the
pkg-config search path, too. Try export
PKG_CONFIG_PATH="c:\GTK\Glib\lib\pkgconfig:C:\Program
Files\plplot\lib\pkgconfig". Not sure about the backslashes, though.

--
Dan


More information about the pkg-config mailing list