[Kde-pim] Link problem with KABC

Robin Atwood robin at binro.org
Wed Jul 8 16:44:56 BST 2009


On Wednesday 08 July 2009, Tobias Koenig wrote:
> On Wed, Jul 08, 2009 at 02:24:51AM +0700, Robin Atwood wrote:
> Hej,
>
> > >target_link_libraries(kall ${KDE4_KDECORE_LIBS}
> > >	${KDE4_KDEUI_LIBS}
> > >	${QT_LIBRARIES}
> > >	${QT_QT3SUPPORT_LIBRARY}
> > >	${KDE4_KABC_LIBS}
> > >	${KDE4_AKONADI_LIBS})
> > >
> > >but at the link step I get:
> > >
> > >/usr/src/dev/kde4/kall-0.8/src/kallglobals.cpp:31: undefined reference
> > > to `KABC::StdAddressBook::self()'
> >
> > I have no idea what the difference is but coding:
> >
> > target_link_libraries(kall ${KDE4_KDECORE_LIBS} kdeui kabc etc...
> >
> > solved the problem. DOn't really understand this cmake stuff.
>
> Your CMakeLists.txt was missing the command to search for the pim libraries
> (see Allens email), so the variable ${KDE4_KABC_LIBS} was empty.

Ah, that's what was missing! Thanks, it was driving me mad.

Cheers
-Robin
-- 
----------------------------------------------------------------------
Robin Atwood.

"Ship me somewheres east of Suez, where the best is like the worst,
 Where there ain't no Ten Commandments an' a man can raise a thirst"
         from "Mandalay" by Rudyard Kipling
----------------------------------------------------------------------









_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/



More information about the kde-pim mailing list