making sure the right libraries are found

Matt Rogers mattr at kde.org
Fri Mar 31 06:07:51 CEST 2006


Hi,

When attempting to build kdevelop with an older version of the installed 
library in the prefix, cmake/make/ld/whatever doesn't seem to pick up the 
right library to use. Rather than using the library I just built, it uses the 
previously installed one. Here's the output from make:

Linking CXX executable kdevassistant
cd /home/kde/trunk/build/KDE/kdevelop/src && /usr/bin/cmake -P 
CMakeFiles/kdevassistant.dir/c
make_clean_target.cmake
cd /home/kde/trunk/build/KDE/kdevelop/src && /usr/bin/c++    
-Wnon-virtual-dtor -Wno-long-lon
g -ansi -Wundef -Wcast-align -Wconversion -Wchar-subscripts -Wall -W 
-Wpointer-arith -Wwrite-
strings -Wformat-security -fno-exceptions -fno-check-new -fno-common -g3 
-fno-inline  -fPIC "
CMakeFiles/kdevassistant.dir/main_assistant.o" 
"CMakeFiles/kdevassistant.dir/kdevassistantext
ension.o"   -o kdevassistant -rdynamic -L/home/kde/installs/trunk/lib 
-L/home/kde/trunk/build
/KDE/kdevelop/lib -L/home/qt/4.1/lib -L/usr/local/lib -L/lib -lQtCore_debug 
-lpthread -lQt3Su
pport_debug -lQtGui_debug -lSM -lICE -lSM -lICE -lX11 -lXext -lXau -lXdmcp 
-lXpm -lX11 -lXext
 -lXau -lXdmcp -lXpm -lutil -lDCOP -lz -lresolv -lidn -lbz2 -lQtXml_debug 
-lagg -ldl -lXtst -
lkdecore -lkdevshell -lprofileengine -lkdevutil -lkdevinterfaces -ldb 
-lkdevwidgets -lnewui -
lkdecore -lkhtml -lkdeprint -lkde3support -lkutils -lkjs -lm -lpcre 
-lpcreposix -ljpeg -lungi
f -lpng -lktexteditor -lkdocument -lkparts -lkio -lkdeui -lkdefx 
-lkwalletclient -lkdesu -lkd
ecore -lQt3Support_debug -lQtGui_debug -lSM -lICE -lSM -lICE -lX11 -lXext 
-lXau -lXdmcp -lXpm
 -lX11 -lXext -lXau -lXdmcp -lXpm -lutil -lDCOP -lQtCore_debug -lpthread -lz 
-lresolv -lidn -
lbz2 -lQtXml_debug -lagg -ldl -lXtst -lfam -lacl -lattr 
-Wl,-rpath,/home/kde/installs/trunk/l
ib:/home/kde/trunk/build/KDE/kdevelop/lib:/home/qt/4.1/lib:/usr/local/lib:/lib
/usr/bin/ld: warning: libkdeui.so.4, needed 
by /home/kde/installs/trunk/lib/libkdevshell.so,
may conflict with libkdeui.so.5
/usr/bin/ld: warning: libkdefx.so.4, needed 
by /home/kde/installs/trunk/lib/libkdevshell.so,
may conflict with libkdefx.so.5
/usr/bin/ld: warning: libkdecore.so.4, needed 
by /home/kde/installs/trunk/lib/libkdevshell.so
, may conflict with libkdecore.so.5
/usr/bin/ld: warning: libkdecore.so.4, needed 
by /home/kde/installs/trunk/lib/libkdevshell.so
, may conflict with libkdecore.so.5
/usr/bin/ld: warning: libkdecore.so.4, needed 
by /home/kde/installs/trunk/lib/libkdevshell.so
, may conflict with libkdecore.so.5
/usr/bin/ld: warning: libDCOP.so.4, needed 
by /home/kde/installs/trunk/lib/libkdevshell.so, m
ay conflict with libDCOP.so.5
/usr/bin/ld: warning: libDCOP.so.4, needed 
by /home/kde/installs/trunk/lib/libkdevshell.so, m                      ay 
conflict with libDCOP.so.5
/home/kde/installs/trunk/lib/libkdevwidgets.so: undefined reference to 
`KMimeType::pixmapForU                       RL(KUrl const&, unsigned int, 
KIcon::Group, int, int, QString*)'
/home/kde/installs/trunk/lib/libkdevshell.so: undefined reference to 
`KActionCollection::acti                       on(char const*, char const*) 
const'
collect2: ld returned 1 exit status

it would appear at first glance that the rpath specified is in the wrong order 
as the build dir should be first. This is of course if the order of 
directories in rpath matters.

How do I get this fixed?

Thanks
--
Matt


More information about the Kde-buildsystem mailing list