On 09/04/11 13:32, Vadim Zhukov 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
> 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
> libdir phonon
> /usr/local/lib/qt4
> 
> 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
> 
> 
Hi,

/usr/local/lib/pkgconfig/phonon.pc maybe, is not the same as
/usr/local/lib/qt4/pkgconfig/phonon.pc

My contents are these

$ cat /usr/local/lib/qt4/pkgconfig/phonon.pc
prefix=/usr/local/lib/qt4
exec_prefix=${prefix}
libdir=${prefix}
includedir=/usr/local/include/X11/qt4/phonon
qt_config=lex yacc warn_on uic resources qt warn_on release link_prl
def_files_disabled exceptions no_mocdepend release stl qt_no_framework
system-sqlite release shared dll largefile stl precompile_header mmx sse
sse2 sse3 dylib create_prl link_prl depend_includepath QTDIR_build
use_libmysqlclient_r qt_install_headers qt warn_on depend_includepath
qmake_cache target_qt hide_symbols create_libtool create_pc explicitlib
hide_symbols moc thread dbusadaptors dbusinterfaces shared dll
moc_location=/usr/local/lib/qt4/bin/moc
uic_location=/usr/local/lib/qt4/bin/uic
rcc_location=/usr/local/lib/qt4/bin/rcc
lupdate_location=/usr/local/lib/qt4/bin/lupdate
lrelease_location=/usr/local/lib/qt4/bin/lrelease

Name: Phonon
Description: Phonon Library
Version: 4.4.0
Libs: -L${libdir} -lphonon
Libs.private: -L/usr/local/lib/qt4 -L/usr/X11R6/lib
-L/usr/local/lib/mysql -L$(LOCALBASE)/lib  -lQtDBus -L/usr/local/lib/qt4
-L/usr/X11R6/lib -L/usr/local/lib/mysql -L$(LOCALBASE)/lib -lQtXml
-lQtGui -L$(X11BASE)/lib -lQtCore  -pthread
Cflags: -DQT_SHARED -I/usr/local/include/X11/qt4 -I${includedir}
Requires: QtCore QtGui QtNetwork QtDBus



Nigel

Reply via email to