[pkg-config] Glib not found

Alan W. Irwin irwin at beluga.phys.uvic.ca
Fri Apr 2 09:19:55 PDT 2010

On 2010-04-02 10:56+0100 Vincenzo Urso Miano wrote:

> @ Alan - Thank you for the detailed post. It was really helpful.

You are welcome.

> bash$ gcc -o test.exe a.f `pkg-config --libs --cflags plplotd-f77`

Wrong compiler which you discovered for yourself in a later post
by using g77 instead.

> I also typed the following on cmd
> -----------------------
> cd C:\GTK\Glib\bin
> set PKG_CONFIG_PATH=C:\plplot\lib\pkgconfig
> win-bash
> pkg-config --libs --cflags plplotd-f77
> -----------------------
> The result looks healthy, now:
> -----------------------
> -IC:/plplot/include/plplot  -LC:/plplot/lib -lplplotf77d -lplplotf77cd
> -lplplotd  -lcsirocsa -lqsastime
> -----------------------

Looks good.  Glad you got pkg-config to work on this platform.

Remember that the PLplot build configures the plplotd-f77.pc and plplotd.pc
files so they will be different and pkg-config will act differently
depending on how you specify the overall configuration of PLplot.  For
example, the above is what you should get for the dynamic devices case, but
if you turn that off, then the code for dynamic devices is brought inside
the principal PLplot library, and suddenly it has lots more dependencies
including possibly glib.  So if you ever have trouble with this again,
please look carefully at (a) your overall PLplot configuration and (b) the
configured plplotd-f77.pc and plplotd.pc files and also any further *.pc
files pkg-config brings into the chain of *.pc files via their REQUIRES.

I think this concludes the pkg-config part of this, and further questions
should be asked on plplot-general.

Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project

Linux-powered Science

More information about the pkg-config mailing list