[Kde-pim] Link problem with KABC

Tobias Koenig tokoe at kde.org
Tue Jul 7 21:03:57 BST 2009


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.

Ciao,
Tobias
-- 
Separate politics from religion and economy!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20090707/1fc4caa6/attachment.sig>
-------------- next part --------------
_______________________________________________
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