making sure the right libraries are found

Matt Rogers mattr at kde.org
Tue Apr 4 22:21:07 CEST 2006


On Tue, Apr 04, 2006 at 02:43:39PM -0400, Brad King wrote:
> Brad King wrote:
> > 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.
> 
> This is now fixed in CVS CMake.
> 
> -Brad

Thanks, will test.
--
Matt



More information about the Kde-buildsystem mailing list