Linking problems on FreeBSD

Andreas Pakulat apaku at gmx.de
Mon Feb 11 08:27:41 CET 2008


On 10.02.08 16:36:20, David Johnson wrote:
> On Sunday 10 February 2008, Andreas Pakulat wrote:
> > On 10.02.08 15:55:43, David Johnson wrote:
> > > "CMakeFiles/kcm_filetypes.dir/kserviceselectdlg.o" -L/usr/local/lib
> > > -L/usr/local/kde4/lib -lQtCore -lpthread -lkdecore -lkdeui -lkio -lkparts
> > > -lQtCore -lpthread -lkdecore -lkpty -lQtXml -lQt3Support -lQtCore
> > > -lpthread -lkdecore -lkdeui -lkio -lkfile -lkde3support -lutil -lkdecore
> > > -lkdeui -lQtSvg -lSM -lICE -lX11 -lXext -lXft -lXau -lXdmcp -lXpm -lXtst
> > > -lXcursor -lXfixes -lkio -lstreamanalyzer -lstreams -lfam -lXrender
> > > -lkdecore -lQtNetwork -lz -lbz2 -lintl -lsolid -lQtCore -lpthread
> > > -lQtDBus -lQtXml -lQtGui
> >
> > So the linker call is actually correct.
> 
> No, because /usr/local/lib is before /user/local/kde4/lib. That's why it's
> picking up KDE3 libs out of /usr/local/lib. With
> link_directories(${KDE4_LIB_DIR}), /usr/local/kde4/lib comes first, and it
> works.

Sorry, I mixed up the order of the two lines, while reading it :)

Andreas

-- 
Your talents will be recognized and suitably rewarded.


More information about the Kde-buildsystem mailing list