qt-copy compilation problem on x86_64

Andras Mantia amantia at kde.org
Wed Sep 20 13:29:45 BST 2006


On Wednesday 20 September 2006 14:45, Simon Hausmann wrote:
> Can you run configure through bash -x? It must come from /somewhere/
> :)


I found the problem. I use a script to set up the KDE4 environment, 
which had the following lines:
export DBUSDIR=/usr
export PKG_CONFIG_PATH=$DBUSDIR/lib/pkgconfig:$KDEDIR/lib/pkgconfig/:
$QTDIR/lib/:$PKG_CONFIG_PATH

This put the /usr/lib/pkgconfig ahead of /usr/lib64/pkgconfig. 

Funny enough, in both cases pkg-config --libs dbus-1 returns only the 
-ldbus-1, but the configure check put -L/usr/lib in QT_LIBS_DBUS in the 
first case, which in the second case it has only "-ldbus-1". Here are 
the lines when running through bash -x.

1) PKG_CONFIG_PATH=$DBUSDIR/lib/pkgconfig: ... 
+ pkg-config --atleast-version=0.62 dbus-1
++ pkg-config --cflags dbus-1
+ QT_CFLAGS_DBUS='-I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include  '
++ pkg-config --libs dbus-1
+ QT_LIBS_DBUS='-L/usr/lib -ldbus-1  '
+ /data/development/sources/kde-trunk/qt-copy/config.tests/unix/compile.test /data/development/sources/kde-trunk/qt-copy/mkspecs/linux-g++-64 
no /data/development/sources/kde-trunk/qt-copy /data/development/sources/kde-trunk/qt-copy 
config.tests/unix/dbus dbus -I/usr/include/dbus-1.0 
-I/usr/lib/dbus-1.0/include -L/usr/lib -ldbus-1
+ CFG_QDBUS=yes
+ QMakeVar set QT_CFLAGS_DBUS '-I/usr/include/dbus-1.0 
-I/usr/lib/dbus-1.0/include  '
+ case "$1" in
+ eq==
+ echo QT_CFLAGS_DBUS = '-I/usr/include/dbus-1.0 
-I/usr/lib/dbus-1.0/include  '
+ QMakeVar set QT_LIBS_DBUS '-L/usr/lib -ldbus-1  '
+ case "$1" in
+ eq==
+ echo QT_LIBS_DBUS = '-L/usr/lib -ldbus-1  '


2) PKG_CONFIG_PATH=$DBUSDIR/lib64/pkgconfig: ... 

++ pkg-config --cflags dbus-1
+ QT_CFLAGS_DBUS='-I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include  
'
++ pkg-config --libs dbus-1
+ QT_LIBS_DBUS='-ldbus-1  '
+ /data/development/sources/kde-trunk/qt-copy/config.tests/unix/compile.test /data/development/sources/kde-trunk/qt-copy/mkspecs/linux-g++-64 
no /data/development/sources/kde-trunk/qt-copy /data/development/sources/kde-trunk/qt-copy 
config.tests/unix/dbus dbus -I/usr/include/dbus-1.0 
-I/usr/lib64/dbus-1.0/include -ldbus-1
+ CFG_QDBUS=yes
+ QMakeVar set QT_CFLAGS_DBUS '-I/usr/include/dbus-1.0 
-I/usr/lib64/dbus-1.0/include  '
+ case "$1" in
+ eq==
+ echo QT_CFLAGS_DBUS = '-I/usr/include/dbus-1.0 
-I/usr/lib64/dbus-1.0/include  '
+ QMakeVar set QT_LIBS_DBUS '-ldbus-1  '
+ case "$1" in
+ eq==
+ echo QT_LIBS_DBUS = '-ldbus-1  '


I'm still unsure how that -L/usr/lib appears in case 1), but well... it 
seems after all it was the fault of my environment setup script.

Andras
-- 
Quanta Plus developer - http://quanta.kdewebdev.org
K Desktop Environment - http://www.kde.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20060920/2a3a1d7a/attachment.sig>


More information about the kde-core-devel mailing list