making sure the right libraries are found
Brad King
brad.king at kitware.com
Fri Mar 31 22:27:05 CEST 2006
Matt Rogers wrote:
> 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
[snip]
> -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
[snip]
> -Wl,-rpath,/home/kde/installs/trunk/lib:/home/kde/trunk/build/KDE/kdevelop/lib:/home/qt/4.1/lib:/usr/local/lib:/lib
[snip]
> How do I get this fixed?
Clearly the link directories are listed in the wrong order. This is
likely a CMake issue which I'll investigate. It is supposed to
automatically compute a safe order but there is a bug in that it doesn't
take into account libraries that will be present after the project
builds. I don't know why no one has encountered this before.
-Brad
More information about the Kde-buildsystem
mailing list