[Kde-pim] Link problem with KABC
Robin Atwood
robin at binro.org
Tue Jul 7 01:05:14 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 am following the Akonadi resources tutorial but am obviously missing
>something!
Using "make VERBOSE=1" I see:
Linking CXX executable kall
cd /usr/src/dev/kde4/kall-0.8/build/src && /usr/bin/cmake -E cmake_link_script
CMakeFiles/kall.dir/link.txt --verbose=1
/usr/bin/c++ -O2 -march=native -mtune=native -fomit-frame-pointer -pipe -
Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts
-Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -fno-check-new -
fno-common -Woverloaded-virtual -fvisibility=hidden -fvisibility-inlines-
hidden -O2 -g -fPIC -Wl,--enable-new-dtags
CMakeFiles/kall.dir/kall_automoc.o CMakeFiles/kall.dir/main.o
CMakeFiles/kall.dir/configdialogimp.o CMakeFiles/kall.dir/dialdialogimp.o
CMakeFiles/kall.dir/kall.o CMakeFiles/kall.dir/kallglobals.o
CMakeFiles/kall.dir/logviewdialogimp.o CMakeFiles/kall.dir/modemcomms.o
CMakeFiles/kall.dir/statusdialogimp.o -o kall -rdynamic -L/usr/kde/4.2/lib64
-L/usr/lib64/qt4 /usr/kde/4.2/lib64/libkdecore.so.5.2.0
/usr/kde/4.2/lib64/libkdeui.so.5.2.0
/usr/kde/4.2/lib64/libkde3support.so.4.2.0 /usr/kde/4.2/lib64/libkio.so.5.2.0
/usr/kde/4.2/lib64/libkutils.so.4.2.0 /usr/lib64/qt4/libQt3Support.so
/usr/kde/4.2/lib64/libkio.so.5.2.0 /usr/kde/4.2/lib64/libkdeui.so.5.2.0
/usr/kde/4.2/lib64/libkdecore.so.5.2.0 /usr/lib64/qt4/libQtDBus.so
/usr/lib64/qt4/libQtCore.so -lpthread /usr/lib64/qt4/libQtSvg.so
/usr/lib64/qt4/libQtNetwork.so /usr/lib64/qt4/libQtXml.so
/usr/lib64/qt4/libQtGui.so -Wl,-
rpath,/usr/kde/4.2/lib64:/usr/lib64/qt4::::::::::::::::: -Wl,-rpath-
link,/usr/kde/4.2/lib64
CMakeFiles/kall.dir/kallglobals.o: In function `KallGlobals':
/usr/src/dev/kde4/kall-0.8/src/kallglobals.cpp:31: undefined reference to
`KABC::StdAddressBook::self()'
/usr/src/dev/kde4/kall-0.8/src/kallglobals.cpp:31: undefined reference to
`KABC::StdAddressBook::self()'
collect2: ld returned 1 exit status
No sign of kabc and those colons look suspicious. What's wrong here?
TIA
-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