On Sun, Sep 4, 2011 at 5:32 AM, Vadim Zhukov <persg...@gmail.com> wrote: > Hello all. > > While playing with phonon update (KDE 4.7.0 is on the horizont, actually), > I stepped in a problem: not all variable names work in pkg-config. > Here is normal case: > > $ cat /usr/local/lib/pkgconfig/phonon.pc ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this path
> prefix=/usr/local > exec_prefix=/usr/local > libdir=/usr/local/lib > includedir=/usr/local/include > buildsystemdir=/usr/local/share/phonon-buildsystem/ > > Name: Phonon > Description: Phonon library needed to build applications > Version: 4.5.0 > Requires: QtCore QtGui QtDBus > Libs: -L${libdir} -lphonon > Cflags: -I${includedir} > $ PKG_CONFIG_PATH=/usr/local/lib/qt4/pkgconfig pkg-config --variable and this path ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ are not the same. > libdir phonon > /usr/local/lib/qt4 Also compare libdir value in your cat output vs pkg-config output. See Nigel Taylor's response as well. --patrick > > And here is problematic call: > $ PKG_CONFIG_PATH=/usr/local/lib/qt4/pkgconfig pkg-config --variable > buildsystemdir phonon > > Just another variable name, and we get no output here, but error code is 0. > Same happens when no variable with specified name found - dunno if this > is by design. > > Is this a known problem? After a brief look, didn't found any > suscpious in pkg-config code. > > -- > WBR, > Vadim Zhukov