On Thursday 18 May 2006 00:42, Michaël Larouche wrote:
> Le May 17, 2006 17:38, Conrad Hoffmann a écrit :
> > hi.
> >
> > i am currently trying to get kopete trunk to compile, but i am having
> > some trouble with linking. i have a recent svn version of qt-copy,
> > kdelibs4_snapshot and kopete, cmake 2.4.1 beta and gcc 3.4.6 (Gentoo
> > 3.4.6-r1, ssp-3.4.5-1.0, pie-8.7.9).
> >
> > first, the libpapillon test failed to link, i then configured kopete to
> > be compiled w/o messenger, but then jabber fails to link.
> > (due to a _huge_ amount of undefined references, mainly stuff like
> > XMPP::*).
> >
> > this is my first attempt to compile kopete trunk w/ cmake, and i don't
> > know much about it. i used VERBOSE=1, and this is the command that fails:
> >
> > cd /home/kde4rad/source/trunk/kdenetwork/build/kopete/protocols/jabber
> > && /usr/bin/c++  -fPIC  -Wnon-virtual-dtor -Wno-long-long -
> > ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith
> > -Wwrite-strings -Wformat-security -fno-exceptions -fno-check- new
> > -fno-common -fvisibility=hidden -g3 -fno-inline -Wl,--fatal-warnings
> > -avoid-version -Wl,--no-undefined -lc -shared -Wl,-soname
> > ,kopete_jabber.so -o ../../../lib/kopete_jabber.so
> > "CMakeFiles/kopete_jabber.dir/ui/dlgjabbersendraw.o"
> > "CMakeFiles/kopete_jabber. dir/ui/jabberaddcontactpage.o"
> > "CMakeFiles/kopete_jabber.dir/ui/dlgjabbervcard.o"
> > "CMakeFiles/kopete_jabber.dir/ui/dlgjabberservic es.o"
> > "CMakeFiles/kopete_jabber.dir/ui/dlgjabberregister.o"
> > "CMakeFiles/kopete_jabber.dir/ui/dlgjabberbrowse.o" "CMakeFiles/kopete
> > _jabber.dir/ui/jabbereditaccountwidget.o"
> > "CMakeFiles/kopete_jabber.dir/ui/jabberregisteraccount.o"
> > "CMakeFiles/kopete_jabber.dir/ ui/jabberchooseserver.o"
> > "CMakeFiles/kopete_jabber.dir/ui/dlgjabberchangepassword.o"
> > "CMakeFiles/kopete_jabber.dir/ui/dlgjabbercha troomslist.o"
> > "CMakeFiles/kopete_jabber.dir/ui/dlgjabberchatjoin.o"
> > "CMakeFiles/kopete_jabber.dir/dlgchatroomslist.o" "CMakeFiles/
> > kopete_jabber.dir/dlgchatroomslist.moc.o"
> > "CMakeFiles/kopete_jabber.dir/dlgchatjoin.o"
> > "CMakeFiles/kopete_jabber.dir/dlgchatjoin.m oc.o"
> > "CMakeFiles/kopete_jabber.dir/jabberprotocol.o"
> > "CMakeFiles/kopete_jabber.dir/jabberaccount.o"
> > "CMakeFiles/kopete_jabber.dir /jabberresource.o"
> > "CMakeFiles/kopete_jabber.dir/jabberresourcepool.o"
> > "CMakeFiles/kopete_jabber.dir/jabberbasecontact.o" "CMakeFi
> > les/kopete_jabber.dir/jabbercontact.o"
> > "CMakeFiles/kopete_jabber.dir/jabbergroupcontact.o"
> > "CMakeFiles/kopete_jabber.dir/jabbergro upmembercontact.o"
> > "CMakeFiles/kopete_jabber.dir/jabbercontactpool.o"
> > "CMakeFiles/kopete_jabber.dir/jabberformtranslator.o" "CMake
> > Files/kopete_jabber.dir/jabberformlineedit.o"
> > "CMakeFiles/kopete_jabber.dir/jabberchatsession.o"
> > "CMakeFiles/kopete_jabber.dir/jab bergroupchatmanager.o"
> > "CMakeFiles/kopete_jabber.dir/jabberfiletransfer.o"
> > "CMakeFiles/kopete_jabber.dir/jabbercapabilitiesmanager .o"
> > "CMakeFiles/kopete_jabber.dir/jabbertransport.o"
> > "CMakeFiles/kopete_jabber.dir/jabberbookmarks.o"
> > "CMakeFiles/kopete_jabber.di r/jabberclient.o"
> > "CMakeFiles/kopete_jabber.dir/jabberconnector.o"
> > "CMakeFiles/kopete_jabber.dir/jabberbytestream.o"  -L/usr/local /lib
> > -L/home/kde4rad/kde/lib
> > -L/home/kde4rad/source/trunk/kdenetwork/build/kopete/protocols/jabber/lib
> >ir is -L/home/kde4rad/source/ trunk/kdenetwork/build/lib
> > -L/home/kde4rad/source/trunk/qt-copy/lib -L/lib -L/usr/X11R6/lib
> > -lQtCore_debug -lpthread -lkdecore -lQ tXml_debug -lkdeui -lkutils
> > -lkparts -lkio -lkde3support -lqca -lkopete -liris_kopete -lkutils
> > -lkparts -lkde3support -lkabc -lkre sources -lkio -lkdeui -lkdefx
> > -lkwalletclient -lkdesu -lkdecore -lSM -lICE -lSM -lICE -lX11 -lXext
> > -lXft -lXau -lXdmcp -lXpm -lX11 -lXext -lXft -lXau -lXdmcp -lXpm -lutil
> > -lDCOP -lz -lbz2 -lresolv -ldl -lXtst -lfam -lXss -lXrender
> > -lQtCore_debug -lpthread -lQt Gui_debug -lQt3Support_debug
> > -lQtNetwork_debug -lQtXml_debug -lidn -lqca
> >
> > if somebody could give me any advide here, that would be awesome.
> > if nothing else, i would really like to know how to tell cmake how to
> > exclude e.g. the jabber plugin from compilation.
> > btw, make went through oscar for example just fine, so i really hope its
> > not just my stupidity here...
> >
> > many thanks, conrausch
>
> Hmmm, maybe -lqca use the old QCA 1.x and not QCA 2.0 (which is Qt4)

at first i thought you were right, since the qca1 libs are in /usr/X11R6/lib, 
which is included in the command above. but i specified the exact path in 
ccmake advanced mode (actually, it was already there) and even renamed the 
qca1 libs before compilation, and it didn't help. also, it seems the 
undefined references are only within a single plugin (like the tests can't 
link against the plugin lib). Here is the output when trying to build the 
messenger plugin:

Linking CXX executable connection_test
cd 
/home/kde4rad/source/trunk/kdenetwork/build/kopete/protocols/messenger/libpapillon/tests
 
&& /usr/bin/cmake -P CMakeFiles/connection_test.dir/cmake_clean_target.cmake
cd 
/home/kde4rad/source/trunk/kdenetwork/build/kopete/protocols/messenger/libpapillon/tests
 
&& /usr/bin/c++    -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align 
-Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security 
-fno-exceptions -fno-check-new -fno-common -fvisibility=hidden -g3 -fno-inline  
-fPIC "CMakeFiles/connection_test.dir/connection_test.o"   -o 
connection_test -rdynamic -L/usr/local/lib -L/home/kde4rad/kde/lib 
-L/home/kde4rad/source/trunk/kdenetwork/build/kopete/protocols/messenger/libpapillon/tests/..
 -L/home/kde4rad/source/trunk/kdenetwork/build/lib 
-L/home/kde4rad/source/trunk/qt-copy/lib -lpapillon_kopete -lQtCore_debug 
-lpthread -lQtNetwork_debug -lQtTest_debug -lpapillon_kopete -lQtXml_debug 
-lqca 
-Wl,-rpath,/usr/local/lib:/home/kde4rad/kde/lib:/home/kde4rad/source/trunk/kdenetwork/build/kopete/protocols/messenger/libpapillon/tests/..:/home/kde4rad/source/trunk/kdenetwork/build/lib:/home/kde4rad/source/trunk/qt-copy/lib
CMakeFiles/connection_test.dir/connection_test.o: In function 
`FakeConnection':
/home/kde4rad/source/trunk/kdenetwork/kopete/protocols/messenger/libpapillon/tests/connection_test.cpp:32:
 
undefined reference to 
`Papillon::Connection::Connection(Papillon::ClientStream*, QObject*)'
<snip many more undefined references, all in Papillon>

any other ideas?
regards, conrausch
-- 
[EMAIL PROTECTED]
http://conrausch.doesntexist.org
JabberID: [EMAIL PROTECTED]

# support cryptography! public key:
http://elise.no-ip.com/ch.gmx.asc

BOFH Excuse #208:

Your mail is being routed through Germany ... and they're censoring us.

Attachment: pgppTKtcVDGPR.pgp
Description: PGP signature

_______________________________________________
kopete-devel mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kopete-devel

Reply via email to