[Kde-pim] Link problem with KABC
Robin Atwood
robin at binro.org
Tue Jul 7 20:24:51 BST 2009
>I am sure this a no-brainer but I cannot the error. I am starting to update
> my address book app to kDE4 and have:
>
>adbk = KABC::StdAddressBook::self();
>
>and in my CMakeLists.txt
>
>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.
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