This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Building ktorrent 3.1.6 on ubuntu 8.10 x64_86

Tags: None
(comma "," separated)
User avatar
Alien Bob
Registered Member
Posts
4
Karma
0

Tue Jan 27, 2009 6:58 pm
MoDaX wrote:The previous patch is incompatible with cmake 2.4. This one is:

http://pastebin.com/f18d8ce01


With this patch (well adding the two lines to the two CMakeLists.txt manually) and the most recent source tarball I get this right at the beginning:

Code: Select all
-- Building KTorrent with DHT support (-DENABLE_DHT_SUPPORT=false to disable)
CMake Error at libbtcore/CMakeLists.txt:185 (set_target_properties):
  set_target_properties called with incorrect number of arguments.


-- Building logviewer plugin (-DENABLE_LOGVIEWER_PLUGIN=false to disable)


...etc

Eric

Last edited by Alien Bob on Tue Jan 27, 2009 6:59 pm, edited 1 time in total.
MoDaX
Registered Member
Posts
241
Karma
0
OS

Tue Jan 27, 2009 6:59 pm
I cannot believe it. The only way this can be true if ${QT_QTCORE_LIBRARY} is empty. Which it should not be. You can remove btcore line, but ktcore one is essential.
George
Moderator
Posts
5421
Karma
1

Tue Jan 27, 2009 7:07 pm
This is getting interesting ...

Anyway, had a look at CMakeLists.txt of mediaplayer plugin, and added some more libraries, which should make that compile to. So here goes the fourth attempt :

http://ktorrent.org/downloads/3.1.6/kto ... -4.tar.bz2
arny
Registered Member
Posts
4
Karma
0

Tue Jan 27, 2009 7:16 pm
The first patch from MoDaX is working and ktorrent compile.

The -3 ktorrent is not compile:

Code: Select all
Linking CXX shared library ../lib/libktupnp.so                                                                                             
[ 43%] Built target ktupnp                                                                                                                 
[ 43%] Generating logviewerpluginsettings.h, logviewerpluginsettings.cpp                                                                   
Generating logviewer.moc                                                                                                                   
Generating logprefpage.moc                                                                                                                 
Generating logviewerplugin.moc                                                                                                             
[ 44%] Generating ui_logprefwidget.h                                                                                                       
Scanning dependencies of target ktlogviewerplugin                                                                                           
[ 44%] Building CXX object plugins/logviewer/CMakeFiles/ktlogviewerplugin.dir/ktlogviewerplugin_automoc.o                                   
[ 44%] Building CXX object plugins/logviewer/CMakeFiles/ktlogviewerplugin.dir/logviewerplugin.o                                             
[ 45%] Building CXX object plugins/logviewer/CMakeFiles/ktlogviewerplugin.dir/logflags.o                                                   
[ 45%] Building CXX object plugins/logviewer/CMakeFiles/ktlogviewerplugin.dir/logviewer.o                                                   
[ 45%] Building CXX object plugins/logviewer/CMakeFiles/ktlogviewerplugin.dir/logprefpage.o                                                 
[ 45%] Building CXX object plugins/logviewer/CMakeFiles/ktlogviewerplugin.dir/logviewerpluginsettings.o                                     
Linking CXX shared module ../../lib/ktlogviewerplugin.so                                                                                   
CMakeFiles/ktlogviewerplugin.dir/logviewerplugin.o: In function `kt::LogViewerPlugin::unload()':
logviewerplugin.cpp:(.text+0x36f): undefined reference to `bt::RemoveLogMonitor(bt::LogMonitorInterface*)'
CMakeFiles/ktlogviewerplugin.dir/logviewerplugin.o: In function `kt::LogViewerPlugin::load()':
logviewerplugin.cpp:(.text+0x4a5): undefined reference to `bt::AddLogMonitor(bt::LogMonitorInterface*)'
CMakeFiles/ktlogviewerplugin.dir/logviewer.o: In function `kt::LogViewer::~LogViewer()':
logviewer.cpp:(.text+0x12b): undefined reference to `bt::LogMonitorInterface::~LogMonitorInterface()'
logviewer.cpp:(.text+0x158): undefined reference to `bt::LogMonitorInterface::~LogMonitorInterface()'
CMakeFiles/ktlogviewerplugin.dir/logviewer.o: In function `kt::LogViewer::~LogViewer()':
logviewer.cpp:(.text+0x1eb): undefined reference to `bt::LogMonitorInterface::~LogMonitorInterface()'
logviewer.cpp:(.text+0x210): undefined reference to `bt::LogMonitorInterface::~LogMonitorInterface()'
CMakeFiles/ktlogviewerplugin.dir/logviewer.o: In function `kt::LogViewer::~LogViewer()':
logviewer.cpp:(.text+0x27b): undefined reference to `bt::LogMonitorInterface::~LogMonitorInterface()'
CMakeFiles/ktlogviewerplugin.dir/logviewer.o:logviewer.cpp:(.text+0x2a0): more undefined references to `bt::LogMonitorInterface::~LogMonitorInterface()' follow
CMakeFiles/ktlogviewerplugin.dir/logviewer.o: In function `kt::LogViewer::LogViewer(QWidget*)':
logviewer.cpp:(.text+0x2e8): undefined reference to `bt::LogMonitorInterface::LogMonitorInterface()'
logviewer.cpp:(.text+0x366): undefined reference to `bt::LogMonitorInterface::~LogMonitorInterface()'
CMakeFiles/ktlogviewerplugin.dir/logviewer.o: In function `kt::LogViewer::LogViewer(QWidget*)':
logviewer.cpp:(.text+0x398): undefined reference to `bt::LogMonitorInterface::LogMonitorInterface()'
logviewer.cpp:(.text+0x416): undefined reference to `bt::LogMonitorInterface::~LogMonitorInterface()'
CMakeFiles/ktlogviewerplugin.dir/logviewer.o:(.data.rel.ro._ZTIN2kt9LogViewerE[typeinfo for kt::LogViewer]+0x28): undefined reference to `typeinfo for bt::LogMonitorInterface'
collect2: ld returned 1 exit status
make[2]: *** [lib/ktlogviewerplugin.so] Error 1
make[1]: *** [plugins/logviewer/CMakeFiles/ktlogviewerplugin.dir/all] Error 2
make: *** [all] Error 2



The second patch is not working:

Code: Select all
-- Looking for statvfs64 - found
CMake Error at libbtcore/CMakeLists.txt:185 (set_target_properties):
  set_target_properties called with incorrect number of arguments.


-- Building logviewer plugin (-DENABLE_LOGVIEWER_PLUGIN=false to disable)
-- Building infowidget plugin (-DENABLE_INFOWIDGET_PLUGIN=false to disable)
--    Compiling GeoIP support directly into InfoWidget plugin
-- Building upnp plugin (-DENABLE_UPNP_PLUGIN=false to disable)
-- Building search plugin (-DENABLE_SEARCH_PLUGIN=false to disable)
-- Building webinterface plugin (-DENABLE_WEBINTERFACE_PLUGIN=false to disable)
-- Building scanfolder plugin (-DENABLE_SCANFOLDER_PLUGIN=false to disable)
-- Building ipfilter plugin (-DENABLE_IPFILTER_PLUGIN=false to disable)
-- Building stats plugin (-DENABLE_STATS_PLUGIN=false to disable)
-- Building bwscheduler plugin (-DENABLE_BWSCHEDULER_PLUGIN=false to disable)
-- Building mediaplayer plugin (-DENABLE_MEDIAPLAYER_PLUGIN=false to disable)
-- Building zeroconf plugin (-DENABLE_ZEROCONF_PLUGIN=false to disable)
-- Looking for dgettext
-- Looking for dgettext - found
-- Found Gettext: built in libc
-- Configuring incomplete, errors occurred!
make: *** No targets specified and no makefile found.  Stop.
User avatar
Alien Bob
Registered Member
Posts
4
Karma
0

Tue Jan 27, 2009 7:25 pm
George wrote:This is getting interesting ...

Anyway, had a look at CMakeLists.txt of mediaplayer plugin, and added some more libraries, which should make that compile to. So here goes the fourth attempt :

http://ktorrent.org/downloads/3.1.6/kto ... -4.tar.bz2



This one built 100% correct on KDE 4.2.0, thanks!

Eric
arny
Registered Member
Posts
4
Karma
0

Tue Jan 27, 2009 7:38 pm
George wrote:This is getting interesting ...

Anyway, had a look at CMakeLists.txt of mediaplayer plugin, and added some more libraries, which should make that compile to. So here goes the fourth attempt :

http://ktorrent.org/downloads/3.1.6/kto ... -4.tar.bz2


Works && Thanks!
vasiauvi
Registered Member
Posts
7
Karma
0

Sat Apr 25, 2009 7:09 pm
Can anyone help me please?
I have tried to compile ktorrent freom here http://ktorrent.org/forum/viewtopic.php?t=2714 and i've got this error:
Code: Select all
[ 85%] Built target ktsyndicationplugin
[ 86%] Built target ktupnpplugin
[ 98%] Built target ktorrent
In file included from /home/paula/Documents/kitts/ktorrent-3.2.1/plugins/mediaplayer/mediaview.cpp:29:
/usr/local/include/taglib/fileref.h:107: error: ‘File’ declared as a ‘virtual’ field
/usr/local/include/taglib/fileref.h:107: error: expected ‘;’ before ‘*’ token
/usr/local/include/taglib/fileref.h:127: error: expected `)' before ‘fileName’
/usr/local/include/taglib/fileref.h:136: error: expected `)' before ‘*’ token
/usr/local/include/taglib/fileref.h:179: error: expected ‘;’ before ‘*’ token
/usr/local/include/taglib/fileref.h:216: error: ‘StringList’ does not name a type
/usr/local/include/taglib/fileref.h:250: error: expected ‘;’ before ‘*’ token
/home/paula/Documents/kitts/ktorrent-3.2.1/plugins/mediaplayer/mediaview.cpp: In member function ‘void kt::MediaView::metaDataChanged()’:
/home/paula/Documents/kitts/ktorrent-3.2.1/plugins/mediaplayer/mediaview.cpp:151: error: no matching function for call to ‘TagLib::FileRef::FileRef(char*, bool, TagLib::AudioProperties::ReadStyle)’
/usr/local/include/taglib/fileref.h:141: note: candidates are: TagLib::FileRef::FileRef(const TagLib::FileRef&)
/usr/local/include/taglib/fileref.h:116: note:                 TagLib::FileRef::FileRef()
make[2]: *** [plugins/mediaplayer/CMakeFiles/ktmediaplayerplugin.dir/mediaview.o] Error 1
make[1]: *** [plugins/mediaplayer/CMakeFiles/ktmediaplayerplugin.dir/all] Error 2
make: *** [all] Error 2

I don't understand what you have said above but i really want to compile the newest version of ktorrent.
Can you help me?
Thank you!


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], q.ignora, watchstar