Hello, I'm trying to port the OTR plugin to the new QT4/KDE4/Kopete-svn Interface.
I used am2cmake to generate CMakeLists.txt. After some changes in this file I
started porting the code. It is now in a stage where it compiles fine with
the new API and cmake. But while linking, cmake cannot find any of the
Kopete's and KDE's libraries.
src/CMakeLists.txt says:
link_directories( ${KDE4_LIB_DIR} ${KDE4_LIB_DIR}/kde4
${CMAKE_CURRENT_BINARY_DIR} )
build/CMakeFiles/kotr.dir/link.txt says:
/usr/bin/c++ -fPIC -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 -fvisibility=hidden -O2 -g
-Wl,--fatal-warnings -Wl,--no-undefined -lc -shared -Wl,-soname,libkotr.so.1
-o
lib/libkotr.so.1.0.0 "CMakeFiles/kotr.dir/kotr_automoc.o"
"CMakeFiles/kotr.dir/otrlchatinterface.o"
"CMakeFiles/kotr.dir/otrlconfinterface.o" -L/usr/local/lib -L/usr/kde/svn/lib
-L/usr/kde/svn/lib/kde4
-L/home/dreadhead/Develop/4kopete_otr/kopete_otr/trunk/kopete_otr/build
-L/usr/lib/qt4 -lQtCore -lpthread -lQtNetwork -lQtDBus -lQtXml -lutil -lz
-lresolv -lkdecore -lotr
As you can see the directories "/usr/kde/svn/lib/" and "/usr/kde/svn/lib/kde4"
are included in the link-call and all KDE4 and Kopete-stuff is installed
there. But when executing this command cmake fails with hundreds of error
messages like this:
undefined reference to `Kopete::ChatSession::members() const'
undefined reference to `Kopete::Contact::contactId() const'
...
Could anyone please help me solving this issue?
Thanks!
Michael
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ kopete-devel mailing list [email protected] https://mail.kde.org/mailman/listinfo/kopete-devel
